Postfix and virtual user ( relay dovecot -> user unknown )
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@mydomain.be>, size=914, nrcpt=1 (queue active) Aug 18 19:22:47 mydomain dovecot: imap-login: Login: user=< crupuk@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@mydomain.be> -> <test@mydomain.be>, Message-ID: <1d504d6a1f2f9954ecc5ab2f4a193b9e@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@mydomain.be): Disconnected: Logged out bytes=82/572 Aug 18 19:22:48 mydomain postfix/lmtp[6123]: BE3CE3E8F: to=<test@mydomain.be>, orig_to=<test@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@mydomain.be): Disconnected: Logged out bytes=307/8873 Aug 18 19:22:49 mydomain postfix/pipe[6138]: F05353E92: to=<test@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@lists.mydomain.be by local agent and so, use alias_maps ?
Thanks for your help
Nobody can help me please ?
Thanks again
2012/8/18 Sébatien Andreatta <sebastien.andreatta@gmail.com>
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@mydomain.be>, size=914, nrcpt=1 (queue active) Aug 18 19:22:47 mydomain dovecot: imap-login: Login: user=< crupuk@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@mydomain.be> -> <test@mydomain.be>, Message-ID: <1d504d6a1f2f9954ecc5ab2f4a193b9e@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@mydomain.be): Disconnected: Logged out bytes=82/572 Aug 18 19:22:48 mydomain postfix/lmtp[6123]: BE3CE3E8F: to=< test@mydomain.be>, orig_to=<test@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@mydomain.be): Disconnected: Logged out bytes=307/8873 Aug 18 19:22:49 mydomain postfix/pipe[6138]: F05353E92: to=< test@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@lists.mydomain.be by local agent and so, use alias_maps ?
Thanks for your help
- Sébatien Andreatta <sebastien.andreatta@gmail.com>:
How to integrate Mailman with postfix without the use of postfix-to-mailman.py script wich is not officialy supported ?
Just use aliases.
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
That looks OK.
mydestination = $myhostname, localhost.$mydomain, localhost, lists.mydomain.be
So sending mail to mailman@lists.mydomain.be should work. Try that. What's in the log for that?
mm_cfg.py
DEFAULT_URL_HOST ='www.mydomain.be' DEFAULT_EMAIL_HOST = 'smeagoln.mydomain.be'
Shouldn't it be lists.mydomain.be ?
MTA = 'Postfix' POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.mydomain.be']
But it's not a virtual domain.
So, how can I do for deliver all mail for test@lists.mydomain.be by local agent and so, use alias_maps ?
lists.mydomain.be must be in mydestination.
Try adding: lists.mydomain.be local: in transport_maps (just to make absolutely sure nothing else gets hold of that domain)
-- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebrandt@charite.de Campus Benjamin Franklin http://www.charite.de Hindenburgdamm 30, 12203 Berlin Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
Thanks you,
Le 21/08/2012 20:37, Ralf Hildebrandt a écrit :
- Sébatien Andreatta <sebastien.andreatta@gmail.com>:
How to integrate Mailman with postfix without the use of postfix-to-mailman.py script wich is not officialy supported ? Just use aliases.
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases That looks OK.
mydestination = $myhostname, localhost.$mydomain, localhost, lists.mydomain.be So sending mail to mailman@lists.mydomain.be should work. Try that. What's in the log for that?
mm_cfg.py
DEFAULT_URL_HOST ='www.mydomain.be' DEFAULT_EMAIL_HOST = 'smeagoln.mydomain.be' Shouldn't it be lists.mydomain.be ?
MTA = 'Postfix' POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.mydomain.be'] But it's not a virtual domain.
So, how can I do for deliver all mail for test@lists.mydomain.be by local agent and so, use alias_maps ? lists.mydomain.be must be in mydestination.
Try adding: lists.mydomain.be local: in transport_maps (just to make absolutely sure nothing else gets hold of that domain)
On 08/28/2012 12:56 AM, Andreatta Sébastien wrote: [...]
Try adding: lists.mydomain.be local: in transport_maps (just to make absolutely sure nothing else gets hold of that domain)
I seem to still have problems with postfix:
root@dur:~# root@dur:~# cat /etc/postfix/transport root@dur:~# root@dur:~# nano /etc/postfix/transport root@dur:~# root@dur:~# cat /etc/postfix/transport lists.dur.bounceme.net mailman: root@dur:~# root@dur:~# postfix stop postfix/postfix-script: stopping the Postfix mail system root@dur:~# postfix start postfix/postfix-script: starting the Postfix mail system root@dur:~# root@dur:~# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 dur.bounceme.net ESMTP Postfix (Ubuntu) ehlo foo 250-dur.bounceme.net 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from:transport_file_test@dur.bounceme.net 250 2.1.0 Ok rcpt to:thufir@localhost 451 4.3.0 <thufir@localhost>: Temporary lookup failure rcpt to:thufir@dur.bounceme.net 451 4.3.0 <thufir@dur.bounceme.net>: Temporary lookup failure quit 221 2.0.0 Bye Connection closed by foreign host. root@dur:~# root@dur:~# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix default_transport = smtp home_mailbox = Maildir/ inet_interfaces = loopback-only mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}" mailbox_size_limit = 0 mailman_destination_recipient_limit = 1 mydestination = dur, dur.bounceme.net, localhost.bounceme.net, localhost myhostname = dur.bounceme.net mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 readme_directory = no recipient_delimiter = + relay_domains = lists.dur.bounceme.net relay_transport = relay relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_use_tls = yes smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/dovecot-auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key smtpd_tls_mandatory_ciphers = medium smtpd_tls_mandatory_protocols = SSLv3, TLSv1 smtpd_tls_received_header = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes tls_random_source = dev:/dev/urandom transport_maps = hash:/etc/postfix/transport root@dur:~#
Whoops, I think I asked this question in the wrong list! Any help still appreciated, of course. I'm going to ask this on the postfix mailing list, which was my intent; pardon about that.
-Thufir
- Thufir <hawat.thufir@gmail.com>:
On 08/28/2012 12:56 AM, Andreatta Sébastien wrote: [...]
Try adding: lists.mydomain.be local: in transport_maps (just to make absolutely sure nothing else gets hold of that domain)
I seem to still have problems with postfix:
root@dur:~# root@dur:~# cat /etc/postfix/transport root@dur:~# root@dur:~# nano /etc/postfix/transport root@dur:~# root@dur:~# cat /etc/postfix/transport lists.dur.bounceme.net mailman:
postmap /etc/postfix/transport
-- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebrandt@charite.de Campus Benjamin Franklin http://www.charite.de Hindenburgdamm 30, 12203 Berlin Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
On 8/28/2012 1:40 AM, Thufir wrote:
I seem to still have problems with postfix:
Please do not hijack other user's threads for unrelated posts.
root@dur:~# root@dur:~# cat /etc/postfix/transport root@dur:~# root@dur:~# nano /etc/postfix/transport root@dur:~# root@dur:~# cat /etc/postfix/transport lists.dur.bounceme.net mailman:
How is the 'mailman' transport defined in master.cf? Undoubtedly it is the "officially not supported by the GNU Mailman project", 3rd party postfix_to_mailman.py.
If so, please see the FAQ at <http://wiki.list.org/x/OIDD>.
I will help with postfix_to_mailman.py to the extent that I can, but it frankly annoys me greatly that Debian/Ubuntu encourages its use, but distributes a package which confuses users into trying to combine postfix_to_mailman.py and aliases without apparently having adequate documentation or support.
[...]
root@dur:~# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases [...] Whoops, I think I asked this question in the wrong list! Any help still appreciated, of course. I'm going to ask this on the postfix mailing list, which was my intent; pardon about that.
They won't have a clue about postfix_to_mailman.py. Try Ubuntu's Mailman support if there is any or maybe Debian, But first learn the differences between postfix_to_mailman.py delivery and delivery to Mailman via aliases, and decide which you want to use and use only one method.
And in case you haven't guessed, if you want help from this list, we can much better help you if you do it this way <http://www.list.org/mailman-install/postfix-integration.html>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (5)
-
Andreatta Sébastien
-
Mark Sapiro
-
Ralf Hildebrandt
-
Sébatien Andreatta
-
Thufir