Hi Mark,
On Sat, Jul 09, 2022 at 12:05:32PM -0700, Mark Sapiro wrote:
If the original post was the message delivered to users-bounces@mailman.bitfolk.com, it is possible that simplematch or another recognizer parsed those addresses from the message body.
For now I've configured a copy of all mails to -bounces addresses, so if/when it happens again I can inspect the actual email that triggered it.
In case anyone else ever wants to do that, this is one way to do it on Exim:
This goes in your "routers" section.
Add a router, before every other router that you would want to
tap messages for.
traffic_tap: unseen no_expn no_verify transport = local_copy_outgoing driver = accept
"mm_domains" is a list of domain names for mailman, e.g.
"lists.example.com"; it's set as part of the usual Mailman install on
Debian.
domains = +mm_domains
Only do this for bounce addresses. So between this and the above, this
router will only happen for *-bounces*@your-mailman.
local_part_suffix = -bounces : -bounces+*
This goes in your "transports" section.
Add a transport for taking a local copy. Mail to Mailman is "outgoing" as it
is delivered by LMTP over a socket. But the name is not important.
local_copy_outgoing: driver = appendfile
Simply store it all in a maildir. If you're expecting a lot of
messages then you'll want a directory structure by date and/or
recipient or something.
directory = /var/mail/archive/.outgoing/ delivery_date_add envelope_to_add return_path_add
If not on Debian then your exim probably runs as a different user/.group.
group = Debian-exim user = Debian-exim mode = 0660 maildir_format = true create_directory = true
Cheers, Andy