[Mailman-Users] User unknown error on gentoo

Alexander alex at spottedmouse.com
Thu Mar 8 02:34:38 EST 2018

On 08/03/2018 13:53, Mark Sapiro wrote:> On 03/07/2018 09:26 PM, 
Alexander wrote:
 >> Without including my domain explicitly under mydestination all virtual
 >> accounts work successfully, however mailman reports user unknown
 >> Results in mailman list user unknown error
 >> mydomain = XXX.com
 >> mydestination = $myhostname, localhost.$mydomain, localhost
 >> As suggested here
 >> (https://forums.gentoo.org/viewtopic-t-134833-start-0.html) I added the
 >> domain explicitly
 >> mydomain = XXX.com
 >> mydestination = $myhostname, localhost.$mydomain, localhost, XXX.com
 >> Now mailman works, but all virtual users are rejected with unknown user
 >> Any suggestion on how to support both vitual users and mailman lists.
 > Please post the output from 'postconf -n'. Also specific Postfix log
 > messages might be helpful.

postconf -n |grep mailman
alias_database = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
virtual_alias_maps = pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf, 

postconf -n |grep virtual
virtual_alias_maps = pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf, 
virtual_gid_maps = static:1001
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql_virtual_mailbox_maps.cf
virtual_transport = virtual
virtual_uid_maps = static:1001

 > as well as a sample of the content of 
/var/lib/mailman/data/virtual-mailman# STANZA START: mailman
# CREATED: Thu Feb 22 22:07:59 2018
mailman at XXX.com              mailman at XXX.com
mailman-admin at XXX.com        mailman-admin at XXX.com
mailman-bounces at XXX.com      mailman-bounces at XXX.com
mailman-confirm at XXX.com      mailman-confirm at XXX.com
mailman-join at XXX.com         mailman-join at XXX.com
mailman-leave at XXX.com        mailman-leave at XXX.com
mailman-owner at XXX.com        mailman-owner at XXX.com
mailman-request at XXX.com      mailman-request at XXX.com
mailman-subscribe at XXX.com    mailman-subscribe at XXX.com
mailman-unsubscribe at XXX.com  mailman-unsubscribe at XXX.com
# STANZA END: mailman

# STANZA START: 704staff
# CREATED: Thu Feb 22 22:07:59 2018
704staff at XXX.com              704staff at XXX.com
704staff-admin at XXX.com        704staff-admin at XXX.com
704staff-bounces at XXX.com      704staff-bounces at XXX.com
704staff-confirm at XXX.com      704staff-confirm at XXX.com
704staff-join at XXX.com         704staff-join at XXX.com
704staff-leave at XXX.com        704staff-leave at XXX.com
704staff-owner at XXX.com        704staff-owner at XXX.com
704staff-request at XXX.com      704staff-request at XXX.com
704staff-subscribe at XXX.com    704staff-subscribe at XXX.com
704staff-unsubscribe at XXX.com  704staff-unsubscribe at XXX.com
# STANZA END: 704staff

 > If XXX.com is a virtual_alias_domain or a virtual_mailbox_domain, it 
shouldn't be in my_destination.XXX.com is used for both local system 
accounts as well as virtual accounts.

virtual_mailbox_domains contains XXX.com.

 > If you have XXX.com in virtual_alias_domains and your list addresses are
 > mapped from lisname at XXX.com to listname in virtual-mailman, it should
 > work. What is the Postfix error message in this case?

The bounce back reports:
<704staff at XXX.com>: unknown user: "704staff at XXX.com"

And the log reports:
postfix/virtual[16361]: 45CCE460281: to=<704staff at XXX.com>, 
relay=virtual, delay=0.16, delays=0.09/0.01/0/0.07, dsn=5.1.1, 
status=bounced (unknown user: "704staff at XXX.com")


More information about the Mailman-Users mailing list