[Mailman-Users] Redirect all -bounce emails

Wayne Ribbens Wayne at Ribbens.org
Fri Mar 3 22:16:41 CET 2006


<There are two obvious ways that jump to mind.

The first, which will address the bounce issue for all mail, is the 
following code at the beginning of the process() function in 
Mailman/Handlers/SMTPDirect.py

    # Calculate the non-VERP envelope sender.
    envsender = msgdata.get('envsender')
    if envsender is None:
        if mlist:
            envsender = mlist.GetBouncesEmail()
        else:
            envsender = Utils.get_site_email(extra='bounces')

which could simply be replaced by something like

    # Envelope sender (bounces) is always the site list.
    envsender = 'mailman at name.com'>

I put in

    envsender = 'catchbounces at domain.com'

where the address was a valid address and nothing changes.

Do I have to do anything besides modify SMTPDirect.py to make this work?









More information about the Mailman-Users mailing list