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 = 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
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
# STANZA END: mailman
# STANZA START: 704staff
# CREATED: Thu Feb 22 22:07:59 2018
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
# 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 [email protected] to listname in virtual-mailman, it should
> work. What is the Postfix error message in this case?
The bounce back reports:
<[email protected]>: unknown user: "[email protected]"
And the log reports:
postfix/virtual[16361]: 45CCE460281: to=<[email protected]>,
relay=virtual, delay=0.16, delays=0.09/0.01/0/0.07, dsn=5.1.1,
status=bounced (unknown user: "[email protected]")
>
------------------------------------------------------
Mailman-Users mailing list [email protected]
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