[Pkg-mailman-hackers] Bug#562700: Bug#562700: postfix-to-mailman.py does not handle mailman-loop at domain

Tobias Diedrich ranma at tdiedrich.de
Thu Dec 31 07:40:35 UTC 2009


Thijs Kinkhorst wrote:
> I've dug somewhat deeper and it seems that Mailman itself expects this to 
> happen with mail to that address (still 'mailman' below is the name of the 
> site list):
> 
>     # The ultimate loop stopper address
>     mailman-loop: /var/lib/mailman/data/owner-bounces.mbox
> 
> This is from the aliases file that Mailman generates in its native Postfix 
> interface.
> 
> As I do not use postfix-to-mailman.py myself I'm open to suggestions on how to 
> handle the -loop domain in its context.

I think the best way would be to delivere it to
mailman-loop at localhost, with an envelope sender of
postmaster at localhost like this (untested, apparently I manged to get
the host onto some (hopefully temporary) t-online blocklist while
testing this...)

    # Redirect mailman-loop special address
    if local in ('mailman-loop'):
        os.execv("/usr/sbin/sendmail",
                 ("/usr/sbin/sendmail", "-f", "postmaster at localhost", "mailman-loop at localhost"))
        sys.exit(0)

HTH,

-- 
Tobias						PGP: http://8ef7ddba.uguu.de





More information about the Pkg-mailman-hackers mailing list