[Mailman-Users] postfix error : user unknown "local" with mailman

renaud courvoisier renaud.courvoisier at ecole-art-aix.fr
Tue Sep 10 15:15:35 CEST 2013

just installed mailman and integrated it to postfix,
I tried to send a test mail to the list and recieved this error message :

Undelivered Mail Returned to Sender
<local at mydomain.tld> (expanded from <mailman at listes.mydomain2.tld>): unknown user: "local"

in my /var/lib/mailman/data/transport-mailman I've :
# STANZA START: mailman
# CREATED: Mon Sep  9 13:25:54 2013
mailman at listes.mydomain2.tld              local
mailman-admin at listes.mydomain2.tld        local
mailman-bounces at listes.mydomain2.tld      local
mailman-confirm at listes.mydomain2.tld      local
mailman-join at listes.mydomain2.tld         local
mailman-leave at listes.mydomain2.tld        local
mailman-owner at listes.mydomain2.tld        local
mailman-request at listes.mydomain2.tld      local
mailman-subscribe at listes.mydomain2.tld    local
mailman-unsubscribe at listes.mydomain2.tld  local
# STANZA END: mailman

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

A postconf -n reply :
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = amavis:[]:10024
default_transport = smtp
delay_warning_time = 1h
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 51200000
mydestination = localhost.ovh.net, localhost, mydomain1.tld, mydomain2.tld, listes.mydomain2.tld
myhostname = mydomain1.tld
mynetworks = [::ffff:]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
receive_override_options = no_address_mappings
recipient_delimiter = +
relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf
relay_transport = relay
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_non_fqdn_hostname,  reject_non_fqdn_sender,  reject_non_fqdn_recipient,  reject_unauth_destination,  reject_unauth_pipelining,  check_policy_service inet:,  reject_invalid_hostname  reject_unknown_sender_domain
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport,hash:/var/lib/mailman/data/transport-mailman
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,hash:/var/lib/mailman/data/transport-mailman
virtual_gid_maps = static:3000
virtual_mailbox_base = /home/facteur
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:3000

The /etc/mailname file contains:

The hostname is mydomain1.tld

Note : I virtualize domains and aliases with mysql and postfix works well.

What's wrong ?

More information about the Mailman-Users mailing list