[Mailman-Users] genaliases not updating aliases file

Maria McKinley maria at shadlen.org
Sat Sep 1 02:20:20 CEST 2012

Hi there,

I am having difficulty getting genaliases to work. When I run it, it 
outputs a list of my mailing lists, but it does not change the file 
/var/lib/mailman/data/aliases or aliases.db

I am using postfix, and have the following in my main.cf file

alias_maps = hash:/etc/aliases, ldap:ldapdata, 
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases

virtual_alias_maps = hash:/etc/postfix/virtual,
virtual_alias_domains = $virtual_alias_maps

I believe when I set this up I was not using virtual aliases, but can't 
find documentation on this anymore, and not sure how to tell for sure. I 
think it does not matter if I do or not, since I only have one domain 
that I am using for mailman. I am using postfix-to-mailman.py, since I 
have this line in /etc/postfix/master.cf

mailman   unix  -       n       n       -       -       pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}

In postfix-to-mailman.py it gives instructions for virtual aliases, but 
not for non-virtual aliases, so maybe now I have to use virtual aliases 
if I am using postfix-to-mailman.py?

I am confused by somewhat conflicting documentation. In mm_cfg.py, it says:

# Uncomment if you use Postfix virtual domains (but not
# postfix-to-mailman.py), but be sure to see
# /usr/share/doc/mailman/README.Debian first.

But then in postfix-to-mailman.py, it says
# /etc/mailman/mm_cfg.py
#    MTA = Postfix # So that mailman generates the recipients table

The README was not particularly helpful in this case.

The stuff for mailman in main.cf (in addition to the alias stuff above) is

# stuff for mailman
relay_domains = lists.shadlen.org
transport_maps = hash:/etc/postfix/transport
mailman_destination_recipient_limit = 1

I have this in /etc/postfix/transport:
lists.example.com   mailman:

Can anyone help make sense of this?


More information about the Mailman-Users mailing list