mailman postfix ldap virtual user
Hi all
I have searched the list archives but i can't send email to the any mail list which handled by mailman. User backend is ldap and there is no local user on the server and there are 4 virtual domains. Postfix main.cfconfiguration is below and also hostname ise mail.example.com.
# vi /etc/postfix/main.cf ... ... mydestination = $myhostname, localhost.$mydomain, localhost mydomain = example.com myhostname = mail.example.com
virtual_alias_maps = hash:/etc/mail/aliases, hash:/usr/local/mailman/data/aliases virtual_gid_maps = static:501 virtual_mailbox_base = /home/ virtual_mailbox_domains = example.com, example.org virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf virtual_transport = dovecot ... ...
Mailman mm_cfg.py is below
# vi /usr/lib/mailman/Mailman/mm_cfg.py
MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'example.com' DEFAULT_URL_HOST = 'mail.example.com'
VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.com']
DEFAULT_URL_PATTERN = 'http://%s/' PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/archives/%(listname)s'
But when i send to the test@example.com mail list adresses , postfix returns to me "unknown user" and when i look at the postfix log deeper, it seems
# tail -f /var/log/postfix.log ... status=bounced (unknown user: "|/usr/lib/mailman/mail/mailman post test@example.com") ...
Best Regards
participants (4)
-
Geoff Shang
-
Gökhan Alkan
-
Mark Sapiro
-
Stephen J. Turnbull