[Mailman-Users] Debugging user unknown

Mark Sapiro mark at msapiro.net
Sat Feb 17 13:35:02 EST 2018


On 02/17/2018 06:09 AM, Alexander wrote:
> 
> I am trying to setup mailman on my linux server running postfix and
> virtual host integration. So far I have updated main.cf to include:
> 
> alias_database = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases

It isn't necessary to include hash:/var/lib/mailman/data/aliases in
alias_database. It only says that /var/lib/mailman/data/aliases.db will
be updated if you issue a "newaliases" or "sendmail -bi" command which
isn't needed as Mailman issues the appropriate "postalias" command
whenever it updates /var/lib/mailman/data/aliases.


> alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases

Good.


> virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
> pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf,
> hash:/var/lib/mailman/data/virtual-mailman


You have hash:/var/lib/mailman/data/virtual-mailman listed twice.

Do you have "XXX.com" in virtual_alias_domains? You probably need this
unless "XXX.com" is in virtual_mailbox_domains.


> Ran genaliases to create /var/lib/mailman/data/aliases and
> /var/lib/mailman/data/virtual-mailman which seem to contain the correct
> settings
> 
> However emails to mailmain at domain and list-staff at domain are bounced with
> unknown user:
> 
> Feb 17 22:01:32 tinyturtle postfix/virtual[1404]: 5F4DE460402:
> to=<mailman at XXX.com>, relay=virtual, delay=0.12, delays=0.04/0/0/0.09,
> dsn=5.1.1, status=bounced (unknown user: "mailman at XXX.com")
> Feb 17 22:06:18 tinyturtle postfix/virtual[1731]: 3D12D460402:
> to=<list-staff at XXX.com>, relay=virtual, delay=0.08,
> delays=0.03/0.01/0/0.04, dsn=5.1.1, status=bounced (unknown user:
> "list-staff at XXX.com")
> 
> Since postfix/virtual is doing the bouncing I am suspected that the
> mapping (virtual-mailman) was picked up, and that i cannot find the
> mapping in aliases, but I could be wrong here.


Postfix virtual is the delivery agent for virtual_mailbox_domains, not
virtual_alias_domains.

It is possible to use virtual_alias_maps to map addresses that are in a
virtual_mailbox_domain, see
<http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox>, so I'm not
sure why this isn't working, but if you still have issues after reading
the above link, post the output from 'postconf -n'.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list