[Mailman-Users] postfix and mailman issues

Michael GIbbs mike at gibbs-family.org
Thu Jun 30 16:49:02 CEST 2005


Greetings,

    I have been trying to integrate Mailman 2.1.6 with Postfix  2.2.4 
with no luck.  I have followed the instructions on the Mailman
website for Postfix, and I have installed Postfix-style Virtual 
Domains.  The lists domain name used is different then the mail servers
actual domain.

    When I send mail to <username>@virtual-domain.com, it gets sent to 
the right mail address (which is NOT located locally).  If,
however, a mail is sent for an alias under mailman 
<list>@virtual-domain.com, I get the following:

Jun 30 02:11:05 mail postfix/smtp[27605]: E7118340227: 
to=<|/usr/local/mailman/mail/mailman post gamer at domain.com>, o
rig_to=<gamer at virtual-domain.com>, relay=mail.domain.com[ipaddress 
removed], delay=1, status=bounced (host
mail.domain.com[ipaddress removed] said: 550 5.7.1 
<"|/usr/local/mailman/mail/mailman post gamer"@domain.com>... Cannot 
mail dire
ctly to programs (in reply to RCPT TO command))

Here is my Postfix main.cf:

#
# Postfix Basic Configuration Settings
#
myhostname = mail.domain.com
mydomain = domain.com
myorigin = $mydomain
mydestination = $myhostname localhost.$mydomain localhost
mynetworks = <ipaddress removed>/29
relay_domains = /etc/postfix/relay_domains
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
html_directory = no
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/local/man
daemon_directory = /usr/libexec/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
local_recipient_maps = $virtual_alias_maps $alias_maps unix:passwd.byname

smtpd_recipient_restrictions = permit_sasl_authenticated 
permit_mynetworks check_relay_domains
smtpd_sender_restrictions =  permit_sasl_authenticated permit_mynetworks 
reject_sender_login_mismatch

#  Map config Settings
alias_database = hash:/etc/postfix/aliases, 
hash:/usr/local/mailman/data/aliases
alias_maps = hash:/etc/postfix/aliases, hash:/usr/local/mailman/data/aliases

#virtual map config
virtual_alias_maps = hash:/etc/postfix/virtual, 
hash:/usr/local/mailman/data/virtual-mailman

# sasl config
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

# tls config
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/post.pem
smtpd_tls_cert_file = /etc/postfix/ssl/post.pem
smtpd_tls_CAfile = /etc/postfix/ssl/post.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom


Here is my Mailman mm_cfg.py:
MTA='postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virtual-domain.com']



Mike Gibbs




More information about the Mailman-Users mailing list