Prev: "Undelivered Message" missing in bounce
Next: local delivery fails ((unknown mail transport error) when combined with mailbox_transport_maps
From: jan on 13 Jun 2010 06:37 Dear list, to cut it short: 1.) local delivery works well without mailbox_transport_maps configured postfix/local: to=<jan(a)weitan.org>, relay=local (..) status=sent (delivered to mailbox) Mail entered in /var/mail/jan 2.) adding the following config to main.cf gives unknown mail transport error main.cf: + mailbox_transport=smtp:[weitan.org] # forward everything ... + mailbox_transport_maps=hash:/etc/postfix/mailbox_transport_maps # ... except some mails With mailbox_transport_maps: + jan local Verified: $ postmap -q jan /etc/postfix/mailbox_transport_maps local Adding verbosity to qmgr and local logs: (...) local: been_here: mailbox jan: 0 local: Compiled against Berkeley DB: 4.8.24? local: Run-time linked against Berkeley DB: 4.8.24? local: dict_open: hash:/etc/postfix/mailbox_transport_maps local: maps_find: mailbox_transport_maps: hash:/etc/postfix/mailbox_transport_maps(0,lock|no_regsub): jan = local local: connect to subsystem private/local And that's it. local returns and the message hangs in the queue. Any hint would be helpful. Verified with postfix 2.7, 2.5 and 2.3 Appendix.) $ postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix default_transport = smtp inet_interfaces = loopback-only inet_protocols = all mailbox_size_limit = 0 mailbox_transport = smtp:[weitan.org] mailbox_transport_maps = hash:/etc/postfix/mailbox_transport_maps mydestination = kranich, localhost.localdomain, localhost,localhost,weitan.org myhostname = kranich mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 readme_directory = no recipient_delimiter = + relay_transport = relay relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) 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
From: Wietse Venema on 13 Jun 2010 08:53
jan(a)weitan.org: [ Charset ISO-8859-1 unsupported, converting... ] > Dear list, > to cut it short: > > 1.) local delivery works well without mailbox_transport_maps configured > > postfix/local: to=<jan(a)weitan.org>, relay=local (..) status=sent > (delivered to mailbox) > > Mail entered in /var/mail/jan > > 2.) adding the following config to main.cf gives unknown mail transport error > > main.cf: > + mailbox_transport=smtp:[weitan.org] # forward everything ... > + mailbox_transport_maps=hash:/etc/postfix/mailbox_transport_maps # ... > except some mails > > With mailbox_transport_maps: > + jan local You have set up an infinite loop, asking the local delivery agent to deliver mail via the local delivery agent. Wietse |