We have Mailman working well in our environment, but there's one thing I can't seem to make happen no matter what I try. The situation is as follows:
Postfix runs on on a different server than Mailman. Its main.cf says
local_recipient_maps = $alias_maps transport_maps = regexp:/var/mailman-data/postfix_lmtp relay_domains = regexp:/var/mailman-data/postfix_domains
The file postfix_lmtp is initially generated by Mailman (running on a different machine). A background process creates a version of the file wherein the lmtp IP address is changed to the network IP of the Mailman server, and that version is sync'd over to the Postfix server. On the latter, a typical block for a list then reads as follows (where A.B.C.D is the IP address of the Mailman server):
/^some-list@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-bounces(\+.*)?@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-confirm(\+.*)?@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-join@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-leave@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-owner@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-request@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-subscribe@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024 /^some-list-unsubscribe@lists\.scss\.tcd\.ie$/ lmtp:[A.B.C.D]:8024
The only problem with this is that if someone sends a message to a non-existent mailing list, Postfix nevertheless accepts the mail, and it loiters in the queue for several days before eventually being bounced back to the sender. I want to get Postfix to reject mail to non-existent mailing lists immediately. I've come up short with each variation of main.cf settings I've tried, and would greatly appreciate any advice.
Many thanks Stephen Kenny