FAQ
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.

Search Discussions

  • Daniel D Jones at Jul 22, 2007 at 3:17 pm

    On Sunday 22 July 2007 10:44, Daniel D Jones wrote:
    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:
    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
    OK, scratch that. Right after sending the message, I realized this error was
    at the statement immediately following where I'd inserted the line to set
    debugging. Evidently, Python's lovely significant whitespace "feature"
    didn't appreciate the fact that vim inserted a tab rather than spaces. It
    seems that exim isn't accepting port 25 connections from localhost, although
    I appear to have the 127.0.0.0 range specified for relaying. In any event,
    it seems like an exim problem rather than a mailman problem.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedJul 22, '07 at 2:44p
activeJul 22, '07 at 3:17p
posts2
users1
websitelist.org

1 user in discussion

Daniel D Jones: 2 posts

People

Translate

site design / logo © 2022 Grokbase