[Mailman-Users] Refreshing list of addresses

Mark Sapiro mark at msapiro.net
Wed Jun 27 02:30:45 CEST 2012

On 6/26/2012 8:54 AM, Andrew Hodgson wrote:
> What is the best way of turning off bounce processing and receiving
> all bounces manually myself, or is that not possible?

There are only two ways to receive ALL bounce DSNs manually. Neither
is particularly convenient.

One way is to adjust a list or lists' aliases or whatever process in
the incoming MTA processes mail to LISTNAME-bounces at ... to deliver
that mail to a person's mailbox instead of piping it to Mailman bounce

The other way is best done with a custom handler that creates the key
'envsender' with value of the person's address in the message's
metadata. See the FAQ at <http://wiki.list.org/x/l4A9> for info on
custom handlers. In this case, the handler itself could be as simple as

def process(mlist, msg, msgdata):
    msgdata['envsender'] = 'the_bounce_guy at example.com'

Simply installing that two-line handler in the pipeline before
ToOutgoing would be effective for list posts to individual message
subscribers, but not for digests. Setting the envelope sender for
digests would require modifying existing code.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list