[Mailman-Users] Postfix and virtual user ( relay dovecot -> user unknown )

Sébatien Andreatta sebastien.andreatta at gmail.com
Sat Aug 18 20:43:07 CEST 2012


Hello,

I have been looking for weeks on google , but i have not found valid answer
:

How to integrate Mailman with postfix without the use of
postfix-to-mailman.py script wich is not officialy supported ?

I have a working installation : Postfix -> Amavisd ( clamd , spamassassin )
And dovecot

I followed all the howto that i have found but it still doesn't work.

I would like to have all my lists on a subdomain : lists.mydomain.be

So , now here is my configuration :

postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavisfeed:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost,
lists.mydomain.be
mydomain = mydomain.be
myhostname = smeagoln.mydomain.be
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_delimiter = +
relay_domains = $mydestination
relayhost = relay.domain.be
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf,
hash:/etc/mailman/virtual-mailman
virtual_gid_maps = static:493
virtual_mailbox_base = /var/mail/vhosts/
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_transport = dovecot
virtual_uid_maps = static:493

mm_cfg.py

DEFAULT_URL_HOST   ='www.mydomain.be'
DEFAULT_EMAIL_HOST = 'smeagoln.mydomain.be'

MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.mydomain.be']

maillog :

Aug 18 19:22:47 mydomain postfix/qmgr[6085]: F05353E92: from=<
crupuk at mydomain.be>, size=914, nrcpt=1 (queue active)
Aug 18 19:22:47 mydomain dovecot: imap-login: Login: user=<
crupuk at mydomain.be>, method=PLAIN, rip=::1, lip=::1, mpid=6139, secured
Aug 18 19:22:48 mydomain amavis[4479]: (04479-05) Passed CLEAN, MYNETS
LOCAL [127.0.0.1] [127.0.0.1] <crupuk at mydomain.be> -> <test at mydomain.be>,
Message-ID: <1d504d6a1f2f9954ecc5ab2f4a193b9e at mydomain.be>, mail_id:
zAsh0XT4N+qM, Hits: -0.999, size: 510, queued_as: F05353E92, 5437 ms
Aug 18 19:22:48 mydomain dovecot: imap(crupuk at mydomain.be): Disconnected:
Logged out bytes=82/572
Aug 18 19:22:48 mydomain postfix/lmtp[6123]: BE3CE3E8F: to=<test at mydomain.be>,
orig_to=<test at lists.mydomain.be>, relay=127.0.0.1[127.0.0.1]:10024,
delay=6.8, delays=0.31/0.49/0.25/5.7, dsn=2.0.0, status=sent (250 2.0.0 Ok,
id=04479-05, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F05353E92)
Aug 18 19:22:48 mydomain postfix/qmgr[6085]: BE3CE3E8F: removed
Aug 18 19:22:48 mydomain dovecot: imap(crupuk at mydomain.be): Disconnected:
Logged out bytes=307/8873
Aug 18 19:22:49 mydomain postfix/pipe[6138]: F05353E92: to=<test at mydomain.be>,
relay=dovecot, delay=2.4, delays=0.2/1.3/0/0.86, dsn=5.1.1, status=bounced
(user unknown)


Mailman version : 2.1.12 ( So , I can't use VIRTUAL_MAILMAN_LOCAL_DOMAIN )

So,  how can I do for deliver all mail for test at lists.mydomain.be by local
agent and so, use alias_maps ?

Thanks for your help


More information about the Mailman-Users mailing list