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@domain and list-staff@domain are bounced with
> unknown user:
> 
> Feb 17 22:01:32 tinyturtle postfix/virtual[1404]: 5F4DE460402:
> to=<mail...@xxx.com>, relay=virtual, delay=0.12, delays=0.04/0/0/0.09,
> dsn=5.1.1, status=bounced (unknown user: "mail...@xxx.com")
> Feb 17 22:06:18 tinyturtle postfix/virtual[1731]: 3D12D460402:
> to=<list-st...@xxx.com>, relay=virtual, delay=0.08,
> delays=0.03/0.01/0/0.04, dsn=5.1.1, status=bounced (unknown user:
> "list-st...@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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to