[Mailman-Users] Mail transport postfix with dovecot and virtual domains

Roland Miyamoto roland.miyamoto at gmx.net
Wed Apr 1 23:51:53 CEST 2015


Dear Mailman community,

Sorry to bother you again.
I am using postfix and dovecot with mysql style virtual users and
aliases and one virtual domain "mydom.ain" on my Debian server.
And it has worked fine so far.
My local domain is localdom.ain
I dumped my postfix configuration below.

I am now trying to set up Mailman lists with the same virtual domain
"mydom.ain" following http://list.org/mailman-install/node12.html and
http://list.org/mailman-install/postfix-virtual.html
But since I have "virtual_transport=dovecot" in my /etc/postfix/main.cf,
as Mark suggested in msg62067.html, I followed


http://wiki.list.org/DOC/Mailman%20-%20Postfix%20integration%20with%20Mailman%20generated%20transport%20or%20other%20maps

(without much understanding).
The resulting files in /var/lib/mailman/data are dumped below.

When sending mail from me at gmx.net to mailman at mydom.ain
I get the following delivery failure notice:

5.1.1 <mailman at mydom.ain>: Recipient address rejected: User unknown in
virtual mailbox table

So it seems that mapping for the mailman addresses does not take effect,
let alone mail transport to mailman.
Any hints are appreciated.

  Thanks in advance!

-----------------------------------------------
Dumps of postconf, local-users, virtual-mailman,
virtual_to_transport and transport-mailman
-----------------------------------------------

$ postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
dovecot_destination_recipient_limit = 1
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
local_recipient_maps = hash:/etc/postfix/local-users
mail_spool_directory = /var/mail/
mailbox_size_limit = 0
mydomain = $myhostname
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
recipient_delimiter = +
smtp_tls_CAfile = /etc/ssl/certs/mydom.ain.ca.pem
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/mydom.ain.crt
smtpd_tls_key_file = /etc/ssl/private/mydom.ain.key
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/var/lib/mailman/data/transport-mailman
virtual_alias_maps = mysql:/etc/postfix/virtual-aliases.cf
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = mysql:/etc/postfix/virtual-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/virtual-users.cf
virtual_transport = dovecot

$ cat /etc/postfix/local-users
linuxuser OK
root OK

$ ll /var/lib/mailman/data
total 68
drwxrwsr-x 2 list list  4096 Apr  1 21:41 ./
drwxrwsr-x 8 root list  4096 Mar 30 22:40 ../
-rw-rw---- 1 list list  1132 Apr  1 21:41 aliases
-rw-rw---- 1 list list 12288 Apr  1 21:41 aliases.db
-rw-rw-r-- 1 root list    10 Mar 30 22:40 last_mailman_version
-rw-r--r-- 1 root list 14100 Jun 16  2012 sitelist.cfg
-rw-rw-r-- 1 list list  1124 Apr  1 21:41 transport-mailman
-rw-rw-r-- 1 list list 12288 Apr  1 21:41 transport-mailman.db
-rw-rw---- 1 list list  1209 Apr  1 21:41 virtual-mailman
-rwxr-x--- 1 list list   144 Apr  1 21:39 virtual_to_transport*

$ cat /var/lib/mailman/data/virtual-mailman
mailman-loop at mydom.ain	mailman-loop
mailman at mydom.ain              mailman
mailman-admin at mydom.ain        mailman-admin
mailman-bounces at mydom.ain      mailman-bounces
mailman-confirm at mydom.ain      mailman-confirm
mailman-join at mydom.ain         mailman-join
mailman-leave at mydom.ain        mailman-leave
mailman-owner at mydom.ain        mailman-owner
mailman-request at mydom.ain      mailman-request
mailman-subscribe at mydom.ain    mailman-subscribe
mailman-unsubscribe at mydom.ain  mailman-unsubscribe

$ cat /var/lib/mailman/data/virtual_to_transport
sed -r -e 's/(^[^#]\S+\s+).+$/\1local:/' $1 >
/var/lib/mailman/data/transport-mailman
/usr/sbin/postmap /var/lib/mailman/data/transport-mailman

$ cat /var/lib/mailman/data/transport-mailman
mailman-loop at mydom.ain	local:
mailman at mydom.ain              local:
mailman-admin at mydom.ain        local:
mailman-bounces at mydom.ain      local:
mailman-confirm at mydom.ain      local:
mailman-join at mydom.ain         local:
mailman-leave at mydom.ain        local:
mailman-owner at mydom.ain        local:
mailman-request at mydom.ain      local:
mailman-subscribe at mydom.ain    local:
mailman-unsubscribe at mydom.ain  local:


More information about the Mailman-Users mailing list