[Mailman-Users] Making list owner (listname-owner) appear inReturnPath

D G Teed donald.teed at gmail.com
Tue Jul 3 00:36:31 CEST 2007


Hi,
That is great.  Thanks for the code snippets.
Yes, dealing with the bounces manually is what
we are largely looking for.  I think this code
is what we are needing.  Thanks again...

On 6/29/07, Mark Sapiro <msapiro at value.net> wrote:
> Mark Sapiro wrote:
> >
> >If I understand what you want, you can accomplish it by finding the code
> >
> >    # 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')
> >
> >at the beginning of process() in SMTPDirect.py and changing it to
> >
> >    # Calculate the non-VERP envelope sender.
> >    if mlist:
> >        envsender = mlist.GetOwnerEmail()
> >    else:
> >        envsender = Utils.get_site_email(extra='owner')
>
>
> Actually, the above change is a bad idea. It should really be
>
>     # Calculate the non-VERP envelope sender.
>     envsender = msgdata.get('envsender')
>     if envsender is None:
>         if mlist:
>             envsender = mlist.GetOwnerEmail()
>         else:
>             envsender = Utils.get_site_email(extra='owner')
>
> You shouldn't ignore the envsender in the message metadata. It exists
> to prevent bounce loops. I was thinking they wouldn't occur if the
> bounces were sent to the list owner directly, but of course, a list
> owner's address can be undeliverable for many reasons and loops can
> still occur.
>
> --
> Mark Sapiro <msapiro at value.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