Re: [Mailman-Users] User unknown error on gentoo
Thanks. this resolved my problem On 08/03/2018 15:48, Mark Sapiro wrote: On 03/07/2018 11:34 PM, Alexander wrote: On 08/03/2018 13:53, Mark Sapiro wrote:> On 03/07/2018 09:26 PM, 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 mail...@xxx.com mail...@xxx.com mailman-ad...@xxx.com mailman-ad...@xxx.com mailman-boun...@xxx.com mailman-boun...@xxx.com mailman-conf...@xxx.com mailman-conf...@xxx.com mailman-j...@xxx.com mailman-j...@xxx.com mailman-le...@xxx.com mailman-le...@xxx.com mailman-ow...@xxx.com mailman-ow...@xxx.com mailman-requ...@xxx.com mailman-requ...@xxx.com mailman-subscr...@xxx.com mailman-subscr...@xxx.com mailman-unsubscr...@xxx.com mailman-unsubscr...@xxx.com # STANZA END: mailman # STANZA START: 704staff # CREATED: Thu Feb 22 22:07:59 2018 704st...@xxx.com 704st...@xxx.com 704staff-ad...@xxx.com 704staff-ad...@xxx.com 704staff-boun...@xxx.com 704staff-boun...@xxx.com 704staff-conf...@xxx.com 704staff-conf...@xxx.com 704staff-j...@xxx.com 704staff-j...@xxx.com 704staff-le...@xxx.com 704staff-le...@xxx.com. 704staff-ow...@xxx.com 704staff-ow...@xxx.com 704staff-requ...@xxx.com 704staff-requ...@xxx.com 704staff-subscr...@xxx.com 704staff-subscr...@xxx.com 704staff-unsubscr...@xxx.com 704staff-unsubscr...@xxx.com # STANZA END: 704staff I think this is the issue. It appears you have set VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'XXX.com' in mm_cfg.py. This is wrong. It is usually OK to not set this in mm_cfg.py and leave it at the default None, but if you have to set it, you need to set it to something in mydestination such as 'localhost'. I.e. it MUST be a local domain, not a virtual domain. -- 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
Re: [Mailman-Users] User unknown error on gentoo
On 03/07/2018 11:34 PM, Alexander wrote: > On 08/03/2018 13:53, Mark Sapiro wrote:> On 03/07/2018 09:26 PM, >> 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 > mail...@xxx.com mail...@xxx.com > mailman-ad...@xxx.com mailman-ad...@xxx.com > mailman-boun...@xxx.com mailman-boun...@xxx.com > mailman-conf...@xxx.com mailman-conf...@xxx.com > mailman-j...@xxx.com mailman-j...@xxx.com > mailman-le...@xxx.com mailman-le...@xxx.com > mailman-ow...@xxx.com mailman-ow...@xxx.com > mailman-requ...@xxx.com mailman-requ...@xxx.com > mailman-subscr...@xxx.com mailman-subscr...@xxx.com > mailman-unsubscr...@xxx.com mailman-unsubscr...@xxx.com > # STANZA END: mailman > > # STANZA START: 704staff > # CREATED: Thu Feb 22 22:07:59 2018 > 704st...@xxx.com 704st...@xxx.com > 704staff-ad...@xxx.com 704staff-ad...@xxx.com > 704staff-boun...@xxx.com 704staff-boun...@xxx.com > 704staff-conf...@xxx.com 704staff-conf...@xxx.com > 704staff-j...@xxx.com 704staff-j...@xxx.com > 704staff-le...@xxx.com 704staff-le...@xxx.com. > 704staff-ow...@xxx.com 704staff-ow...@xxx.com > 704staff-requ...@xxx.com 704staff-requ...@xxx.com > 704staff-subscr...@xxx.com 704staff-subscr...@xxx.com > 704staff-unsubscr...@xxx.com 704staff-unsubscr...@xxx.com > # STANZA END: 704staff I think this is the issue. It appears you have set VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'XXX.com' in mm_cfg.py. This is wrong. It is usually OK to not set this in mm_cfg.py and leave it at the default None, but if you have to set it, you need to set it to something in mydestination such as 'localhost'. I.e. it MUST be a local domain, not a virtual domain. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter 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
Re: [Mailman-Users] User unknown error on gentoo
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, hash:/var/lib/mailman/data/virtual-mailman postconf -n |grep virtual virtual_alias_maps = pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf, hash:/var/lib/mailman/data/virtual-mailman virtual_gid_maps = static:1001 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = pgsql:/etc/postfix/pgsql_virtual_domains_maps.cf virtual_mailbox_limit = 5120 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 mail...@xxx.com mail...@xxx.com mailman-ad...@xxx.com mailman-ad...@xxx.com mailman-boun...@xxx.com mailman-boun...@xxx.com mailman-conf...@xxx.com mailman-conf...@xxx.com mailman-j...@xxx.com mailman-j...@xxx.com mailman-le...@xxx.com mailman-le...@xxx.com mailman-ow...@xxx.com mailman-ow...@xxx.com mailman-requ...@xxx.com mailman-requ...@xxx.com mailman-subscr...@xxx.com mailman-subscr...@xxx.com mailman-unsubscr...@xxx.com mailman-unsubscr...@xxx.com # STANZA END: mailman # STANZA START: 704staff # CREATED: Thu Feb 22 22:07:59 2018 704st...@xxx.com 704st...@xxx.com 704staff-ad...@xxx.com 704staff-ad...@xxx.com 704staff-boun...@xxx.com 704staff-boun...@xxx.com 704staff-conf...@xxx.com 704staff-conf...@xxx.com 704staff-j...@xxx.com 704staff-j...@xxx.com 704staff-le...@xxx.com 704staff-le...@xxx.com 704staff-ow...@xxx.com 704staff-ow...@xxx.com 704staff-requ...@xxx.com 704staff-requ...@xxx.com 704staff-subscr...@xxx.com 704staff-subscr...@xxx.com 704staff-unsubscr...@xxx.com 704staff-unsubscr...@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 lisn...@xxx.com to listname in virtual-mailman, it should > work. What is the Postfix error message in this case? The bounce back reports: <704st...@xxx.com>: unknown user: "704st...@xxx.com" And the log reports: postfix/virtual[16361]: 45CCE460281: to=<704st...@xxx.com>, relay=virtual, delay=0.16, delays=0.09/0.01/0/0.07, dsn=5.1.1, status=bounced (unknown user: "704st...@xxx.com") > -- 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
Re: [Mailman-Users] User unknown error on gentoo
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. as well as a sample of the content of /var/lib/mailman/data/virtual-mailman If XXX.com is a virtual_alias_domain or a virtual_mailbox_domain, it shouldn't be in my_destination. If you have XXX.com in virtual_alias_domains and your list addresses are mapped from lisn...@xxx.com to listname in virtual-mailman, it should work. What is the Postfix error message in this case? -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter 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
[Mailman-Users] User unknown error on gentoo
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. So far I have included the following settings and verified the content of hte alias databases is correct: 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, hash:/var/lib/mailman/data/virtual-mailman Thanks in advance -- 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