MM3 & postfix ... (mail loops back to myself)
Hi, I've been running Postfix+MM3 setup for a while now. However it turns out one portion of functionality has been broken all this time: member subscription via "confirmation".
Quick notes on setup: I've got 2 VMs:
smtp.my.com mailman.my.com
I'm running mailing lists under:
lists.my.com DNS for lists.my.com A: - same as mailman.my.com MX: - smtp.my.com
So when somebody sends a message to foo@lists.my.com they receive confirmation email (which is fine and normal). That mail suggests user needs to reply to foo-confirm+randomstuff@lists.my.com. Whenever user does that - postfix refuses to deliver *that* mail with reason:
Action: failed Status: 5.4.6 Diagnostic-Code: X-Postfix; mail for lists.my.com loops back to myself
I've got
transport_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp local_recipient_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains
and
postfix_domains contains: /^lists\.my\.com$/ lists.my.com
and postfix_lmtp contains: foo@lists\.my\.com$/ lmtp:[mailman.my.com]:8024 ...
what am I missing?
-- Sr System and DevOps Engineer SoM IRT
On 01/18/2018 02:25 PM, Dmitry Makovey wrote:
transport_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp local_recipient_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains
The initial implementation of Mailman's regexp maps for Postfix was broken. This was fixed by <https://gitlab.com/mailman/mailman/merge_requests/323>. The bottom line is if /opt/mailman/core/var/data/postfix_lmtp contains entries like
/^foo-bounces@lists\.my\.com$/ lmtp:[172.19.199.2]:8024 /^foo-confirm@lists\.my\.com$/ lmtp:[172.19.199.2]:8024
these entries (only the -confirm and -bounces, not the others) need to be
/^foo-bounces(\+.*)?@lists\.my\.com$/ lmtp:[172.19.199.2]:8024 /^foo-confirm(\+.*)?@lists\.my\.com$/ lmtp:[172.19.199.2]:8024
because Postfix recipient_delimiter = + is not effective for regexp tables.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Thu, Jan 18, 2018, at 2:39 PM, Mark Sapiro wrote:
On 01/18/2018 02:25 PM, Dmitry Makovey wrote:
transport_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp local_recipient_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains
The initial implementation of Mailman's regexp maps for Postfix was broken. This was fixed by <https://gitlab.com/mailman/mailman/merge_requests/323>. The bottom line is if /opt/mailman/core/var/data/postfix_lmtp contains entries like
Also, MR 323 was backported to Core's 3.1 release. So if you are running the newer images with 3.1.1 release, you should ideally have the fix.
/^foo-bounces@lists\.my\.com$/ lmtp:[172.19.199.2]:8024 /^foo-confirm@lists\.my\.com$/ lmtp:[172.19.199.2]:8024
these entries (only the -confirm and -bounces, not the others) need to be
/^foo-bounces(\+.*)?@lists\.my\.com$/ lmtp:[172.19.199.2]:8024 /^foo-confirm(\+.*)?@lists\.my\.com$/ lmtp:[172.19.199.2]:8024
because Postfix recipient_delimiter = + is not effective for regexp tables.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Email had 1 attachment:
- signature.asc 1k (application/pgp-signature)
-- Abhilash Raj maxking@asynchronous.in
participants (3)
-
Abhilash Raj
-
Dmitry Makovey
-
Mark Sapiro