View Single Post
  #8  
Old 12th June 2013, 17:56
esaaix esaaix is offline
Junior Member
 
Join Date: Jun 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed this thread,
my problem was :
after trying to post a mail to mailman@mydomain.tld list I recieved an error msg with <mailman@mydomain.tld>: user unknown
and after this thread, I finished with an error msg <mailman@mydomain.tld>: user unknown "mailman"

In the postfix logs that's :
Code:
Jun 12 16:50:41 MY_DOMAIN amavis[6916]: (06916-03) Passed CLEAN, [xxx.xxx.xxx.xx] [xxx.xxx.xxx.xx] <testeur@MY_DOMAIN.tld> -> <mailman@MY_DOMAIN.tld>, Message-ID: <51B88AB8.90103@MY_DOMAIN.tld>, mail_id: ZABhkjINR28g, Hits: -1, size: 632, queued_as: 8B3C84172F, 417 ms
Jun 12 16:50:41 MY_DOMAIN postfix/smtp[9756]: 18FBF410A3: to=<mailman@MY_DOMAIN.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.69, delays=0.27/0/0/0.42, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=06916-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8B3C84172F)
Jun 12 16:50:41 MY_DOMAIN postfix/qmgr[29724]: 8B3C84172F: from=<testeur@MY_DOMAIN.tld>, size=1102, nrcpt=1 (queue active)
Jun 12 16:50:41 MY_DOMAIN postfix/qmgr[29724]: 18FBF410A3: removed
Jun 12 16:50:41 MY_DOMAIN postfix/local[9760]: 8B3C84172F: to=<mailman@MY_DOMAIN.tld>, relay=local, delay=0.38, delays=0.21/0.04/0/0.14, dsn=5.1.1, status=bounced (unknown user: "mailman")
Jun 12 16:50:41 MY_DOMAIN postfix/cleanup[9755]: E84544173B: message-id=<20130612145041.E84544173B@MY_DOMAIN.tld>
Jun 12 16:50:42 MY_DOMAIN postfix/bounce[9761]: 8B3C84172F: sender non-delivery notification: E84544173B
Jun 12 16:50:42 MY_DOMAIN postfix/qmgr[29724]: E84544173B: from=<>, size=2975, nrcpt=1 (queue active)
Jun 12 16:50:42 MY_DOMAIN postfix/qmgr[29724]: 8B3C84172F: removed
Jun 12 16:50:42 MY_DOMAIN postfix/pipe[9762]: E84544173B: to=<testeur@MY_DOMAIN.tld>, relay=dovecot, delay=0.36, delays=0.12/0/0/0.23, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 12 16:50:42 MY_DOMAIN postfix/qmgr[29724]: E84544173B: removed
what's wrong ?

the main.cf is
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
default_transport = smtp
delay_warning_time = 1h
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 51200000
mydestination = localhost
myhostname = MY_DOMAIN.tld
mynetworks = 127.0.0.0/8 MY_DOMAIN_P.0/24 [::ffff:127.0.0.0]/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:127.0.0.1:10023,  reject_invalid_hostname
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:/var/lib/mailman/data/transport-mailman
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,hash:/var/lib/mailman/data/virtual-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
and the mm_cfg.py
Code:
MAILMAN_SITE_LIST = 'mailman'
DEFAULT_URL_PATTERN = 'http://%s/adm_listes/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS         = '/images/mailman/'
DEFAULT_EMAIL_HOST = 'MY_DOMAIN.tld'
DEFAULT_URL_HOST   = 'MY_DOMAIN.tld'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['MY_DOMAIN.tld']
POSTFIX_MAP_CMD = '/var/lib/mailman/data/virtual_to_transport'
MTA='Postfix'
GLOBAL_PIPELINE.insert(1, 'SpamAssassin')
all the mailman aliases, virtual-mailman and transport-mailman are up-to-date and well-formed.
mailman-request and mailman-bounces can send mails with no problem.

thanks for the help.
Reply With Quote