[Mailman-Users] SMTP authentication / local delivery

Mark Sapiro mark at msapiro.net
Fri Oct 10 19:36:12 CEST 2008

Stanislaw T. Findeisen wrote:

>How to make Mailman authenticate itself to Postfix (or other SMTP 
>server) while sending mail?
>Oct  9 22:07:25 srv-1 postfix/smtpd[15205]: connect from 
>Oct  9 22:07:25 srv-1 postfix/smtpd[15205]: NOQUEUE: reject: RCPT from 
>localhost.localdomain[]: 554 5.7.1 
><sf181257 at students.mimuw.edu.pl>: Relay access denied; 
>from=<o-madrosci-bounces at eisenbits.homelinux.net> 
>to=<sf181257 at students.mimuw.edu.pl> proto=ESMTP helo=<[]>
>Oct  9 22:07:25 srv-1 postfix/smtpd[15205]: disconnect from 
>I think Mailman is not authenticating itself to Postfix here.


>I already solved this by telling Postfix to allow mail from local 
>senders without authentication (permit_mynetworks), but I wonder if 
>Mailman could authenticate itself to the SMTP server.

There are various patches for this, but if you're using a local server, 
permit_mynetworks is the way to go.

That said, see
for one simple patch.

Also see

>Another option would be to force Mailman to use some local mail delivery 
>facilities instead of TCP/IP. This is what mail(1) seems to be doing:
>Oct 10 10:04:30 srv-1 postfix/pickup[17872]: 9A1B65A4228: uid=500 from=<stf>
>Oct 10 10:04:30 srv-1 postfix/cleanup[18279]: 9A1B65A4228: 
>message-id=<20081010080430.9A1B65A4228 at srv-1.eisenbits.homelinux.net>
>Oct 10 10:04:30 srv-1 postfix/qmgr[2226]: 9A1B65A4228: 
>from=<stf at eisenbits.homelinux.net>, size=381, nrcpt=1 (queue active)
>Oct 10 10:04:32 srv-1 postfix/smtp[18281]: 9A1B65A4228: 
>to=<sf181257 at students.mimuw.edu.pl>, 
>relay=mail.chello.pl[]:25, delay=2, delays=0.01/0/1.2/0.84, 
>dsn=2.0.0, status=sent (250 2.0.0 Qw4W1a05w218yYv02w4X7H mail accepted 
>for delivery)
>Oct 10 10:04:32 srv-1 postfix/qmgr[2226]: 9A1B65A4228: removed
>See? Here a Postfix thing called "pickup" is invoked, instead of smtpd. 
>No authentication is required, I guess. mail(1) can, how about Mailman?

Mailman can use the sendmail (or other) command to deliver mail. See
the settings DELIVERY_MODULE and SENDMAIL_CMD and their documentation
in Defaults.py, but DON'T DO IT. See the documentation in the
Mailman/Handlers/Sendmail.py module for reasons.

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