Christopher Tyler wrote:
I had Mailman working fine with Sendmail up until I enabled SMTP-AUTH in
Sendmail.  The messages get to Mailman but are not delivered to the list
members anymore because Mailman does not authenticate. Disabling
SMTP-AUTH is not an option as we are an ISP and have users that require
email on the road and such, and we do not wish to be blacklisted as an
open relay.

That is exactly the problem I had.
The answer is in Jim Tittsler's message "Re: No footer" posted to this list on June 26th 2004.


Thought I'd post a pointer, since the subject does not reveal what treasure is inside :)

Yours,

Stefan

Jim Tittsler wrote:
> [...]
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

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
 - add them to the affected list's MailList object (using
   bin/withlist) and reference them here (guarded by an
   'if' to make sure they exist)





------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

Reply via email to