[Mailman-Users] Re: No footer

Stefan Waidele jun. St.Waidele at LinuxBasics.org
Fri Jun 25 21:31:51 CEST 2004

Jim Tittsler wrote:
> [...]
> Ah.  I think *I* was *that* person.

Sorry, I had to parse a forwarded copy of one part of the start of the 
thread. I even think the exchange was in PM, at least in part, so I 
quess you are right :)

> [...]
> Ah!  Python's smtplib module grew support for SMTP auth in
> version 2.2.  If you need only a single user/password, you
> could embed it in SMTPdirect:
> --- /usr/local/src/mailman-2.1.5/Mailman/Handlers/SMTPDirect.py	2004-01-23 08:02:07.000000000 +0900
> +++ SMTPDirect.py	2004-06-24 11:55:29.420208168 +0900
> @@ -61,6 +61,7 @@
>      def __connect(self):
>          self.__conn = smtplib.SMTP()
>          self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
> +        self.__conn.login('user', 'password')
>          self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION
>      def sendmail(self, envsender, recips, msgtext):
> --- /usr/local/src/mailman-2.1.5/Mailman/Handlers/SMTPDirect.py

This is what I did, and things work perfectly.
Thank you very much. I had mixed feelings about using the unsafe 
Sendmail.py but it was still better than running an open relay.

> Cleaner alternatives might be to:
>  - if the user/passord are the same for all the lists, put them
>    in your mm_cfg.py and reference them here
> [...]
> It does seem a bug that Sendmail.py isn't doing the
> decoration...  I think most people are using SMTPDirect to
> inject their messages into their mail systems.

I think it is not a major bug in Sendmail.py, since the author strongly 
dissapproves its usage. It should be in there, since it is provided as 
an example. But I would not really consider it to be a 'bug'.

I consider it more important to support SMTP-auth in the widely used 
SMTPDirect.py module. (That is: without source-code changes done by the 

When I installed mailman, I was looking for a way to use SMTP-auth but 
did not find any. Seems like it is the time to join the 
documentation-list, isn't it...? :)

thank you all very much for your help and for a wonderfull software.


More information about the Mailman-Users mailing list