[Mailman-Users] Can't connect to MTA Exim4

Daniel D Jones ddjones at riddlemaster.org
Sun Jul 22 16:44:50 CEST 2007


Setting up a new server with Mailman and Exim4.  Exim is sending and receiving 
mail and the mailing list is created and accepts mail.  It's failing on 
trying to send it out.  In the smtp_failure log, I get this:

Jul 22 10:23:26 2007 (2382) delivery to foo at bar.net failed with code -1: 
please run connect() first
Jul 22 10:23:26 2007 (2382) delivery to john.doe at gmail.com failed with 
code -1: (111, 'Connection refused')
Jul 22 10:23:26 2007 (2382) delivery to user at comcast.net failed with code -1: 
please run connect() first

I set debugging in SMTPDirect.py to 1 and in the error log I get this for 
every attempted message:

Jul 22 10:25:20 2007 qrunner(648): SyntaxError :  invalid syntax
Jul 22 10:25:20 2007 qrunner(649): Traceback (most recent call last):
Jul 22 10:25:20 2007 qrunner(649):   File "/var/lib/mailman/bin/qrunner", line 
278, in ?
Jul 22 10:25:20 2007 qrunner(649):      main()
Jul 22 10:25:20 2007 qrunner(649):   File "/var/lib/mailman/bin/qrunner", line 
225, in main
Jul 22 10:25:20 2007 qrunner(649):      qrunner = make_qrunner(*runners[0])
Jul 22 10:25:20 2007 qrunner(649):   File "/var/lib/mailman/bin/qrunner", line 
125, in make_qrunner
Jul 22 10:25:20 2007 qrunner(649):      qrunner = qrclass(slice, range)
Jul 22 10:25:20 2007 qrunner(649):   
File "/usr/lib/mailman/Mailman/Queue/OutgoingRunner.py", line 56, in __init__
Jul 22 10:25:20 2007 qrunner(649):      mod = __import__(modname)
Jul 22 10:25:20 2007 qrunner(649):   
File " /var/lib/mailman/Mailman/Handlers/SMTPDirect.py ", line  65
Jul 22 10:25:20 2007 qrunner(649):      self.__conn.connect(mm_cfg.SMTPHOST, 
mm_cfg.SMTPPORT)
Jul 22 10:25:20 2007 qrunner(649):      ^
Jul 22 10:25:20 2007 qrunner(649): SyntaxError :  invalid syntax


I assume there's a variable that isn't properly set somewhere but I'm not 
familiar enough with Python or mailman to know which one.  Neither SMTPHOST 
or SMTPPORT appears to be a directly set variable.



More information about the Mailman-Users mailing list