[Mailman-Users] DMARC hack

Mark Sapiro mark at msapiro.net
Thu May 28 23:31:16 CEST 2015

On 05/28/2015 08:25 AM, Allan Hansen wrote:
> Hi Stephen,
> You’re right. AOL does not accept these messages with ‘invalid’ at the end.
> You’re recommending this:
>    name, addr = parseadder(msg.get('from'))
>    if addr.endswith('aol.com') or addr.endswith('yahoo.com'):
>        # I forget what happens if it's a bare address
>        name = "%s (%s) via list" % (name if name else "Anonymous", addr)
>        addr = <list-post address>
>        del msg['from’]
>        msg['from'] = formataddr((name, addrs))
> Can I copy this code directly into the file? 
> Is <list-post address> valid syntax? (I have 40+ lists)

No, it is meant to be replaced with the actual list posting address, but
is there some reasone you don't want to do what I posted at

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