[Mailman-Users] Can't send messages to list

Lukasz Szybalski szybalski at gmail.com
Mon Oct 23 19:20:57 CEST 2006


On 10/18/06, Mark Sapiro <msapiro at value.net> wrote:
> Lukasz Szybalski wrote:
> >
> >/var/log/mailman/smtp-failure
> >says
> >Oct 18 11:47:06 2006 (29893) delivery to email at email failed with code
> >-1: (110, 'Connection timed out')
> >
> >/var/log/mailman/smtp
> >says:
> >Oct 18 11:47:06 2006 (29893)
> ><804e5c70610161138j444c3757j7e406a9b9ac81a65 at mail.gmail.com> smtp for
> >34 recips, completed in 378.081 seconds
> >
> >when i do
> >>mail my at email.com
> >...etc
> >
> >/var/log/mail.log says:
> >Oct 18 12:01:03 localhost postfix/qmgr[29672]: 2EE1025C0C2:
> >from=<lucas at example.com>, size=317, nrcpt=1 (queue active)
> >Oct 18 12:01:04 localhost postfix/smtp[29961]: 2EE1025C0C2:
> >to=<myadress at site.org>, relay=smtp.sbcglobal.yahoo.com[68.142.229.41],
> >delay=1, status=sent (250 ok 1161194556 qp 85909)
> >Oct 18 12:01:04 localhost postfix/qmgr[29672]: 2EE1025C0C2: removed
>
>
> What's in mail.log for the failed transactions?
It didn't say anything. There was no record of any failure.
>
> See
> <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.073.htp>
> (which I just wrote) for further debugging hints.
>
One issue was a domain. I am not sure why it has worked before and one
day it stopped, but to continue on; i still have a problem.

http://mail.python.org/pipermail/mailman-users/2005-May/044742.html
I did following test which showed me that when i use my
SMTPHOST='example.com' i would not connect, which explains the time
out.

I have added my webpage address to /etc/hosts (example.com was not there before)

fixed hosts file looks like:
mycomputer:/home/lucas# cat /etc/hosts
127.0.0.1 localhost example.com mycomputer

I have tested it by(would be nice to have this test included with
mailman as testmailman.py or something like that):
>su list
>python
>>> import smtplib
>>> SMTPHOST = 'localhost'
>>> SMTPPORT = 0
>>> x = smtplib.SMTP()
>>> x.connect(SMTPHOST, SMTPPORT)
(220, 'mycomp.example.com ESMTP Postfix (Debian/GNU)')
>>> x.close
<bound method SMTP.close of <smtplib.SMTP instance at 0x4021a5ec>>
>>> x.close()
>>> SMTPHOST = 'example.com'
>>> x.connect(SMTPHOST, SMTPPORT)
(220, 'mycomp.example.com ESMTP Postfix (Debian/GNU)')
>>> x.close()
>>> SMTPHOST = 'mycomp'
>>> x.connect(SMTPHOST, SMTPPORT)
(220, 'mycomp.example.com ESMTP Postfix (Debian/GNU)')
>>> x.close()

now it seemd to work for a second, it sent few mails but now:
 cat /var/log/mail.log
 says:
Oct 23 10:55:36 localhost postfix/smtpd[11974]: connect from
localhost[127.0.0.1]
Oct 23 10:55:36 localhost postfix/smtpd[11974]: 3F54C25C0C3:
client=localhost[127.0.0.1]
Oct 23 11:00:36 localhost postfix/smtpd[11974]: timeout after DATA
from localhost[127.0.0.1]
Oct 23 11:00:36 localhost postfix/smtpd[11974]: disconnect from
localhost[127.0.0.1]
Oct 23 11:00:36 localhost postfix/cleanup[11977]: 3F54C25C0C3:
message-id=<20061023155536.3F54C25C0C3 at mycomp.example.com>

I changed the Mailman/Handlers/SMTPDirect.py as follows.
    def __connect(self):
        self.__conn = smtplib.SMTP()
        self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
        self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION
and add a line so it becomes
    def __connect(self):
        self.__conn = smtplib.SMTP()
        self.__conn.set_debuglevel(1)
        self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
        self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION

cat /var/log/mailman/smtp-fail says:
  Low level smtp error: [Errno 9] Bad file descriptor, msgid:
<804e5c70610201400r16756b9bm3ec9275c73984168 at mail.gmail.com>
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor
Oct 23 11:00:36 2006 (1497) delivery to email at email.com failed with
code -1: [Errno 9] Bad file descriptor

qrunner says:
Oct 23 06:25:35 2006 (1491) Master watcher caught SIGHUP.  Re-opening
log files.Oct 23 06:25:35 2006 (1492) ArchRunner qrunner caught
SIGHUP.  Reopening logs.
Oct 23 06:25:35 2006 (1493) BounceRunner qrunner caught SIGHUP.
Reopening logs.Oct 23 06:25:35 2006 (1494) CommandRunner qrunner
caught SIGHUP.  Reopening logs.
Oct 23 06:25:35 2006 (1495) IncomingRunner qrunner caught SIGHUP.
Reopening logs.
Oct 23 06:25:35 2006 (1496) NewsRunner qrunner caught SIGHUP.  Reopening logs.
Oct 23 06:25:35 2006 (1497) OutgoingRunner qrunner caught SIGHUP.
Reopening logs.
Oct 23 06:25:35 2006 (1498) VirginRunner qrunner caught SIGHUP.
Reopening logs.Oct 23 06:25:35 2006 (1499) RetryRunner qrunner caught
SIGHUP.  Reopening logs.

What could be causing the problem?


---
Side note:
is file permission like this normal?
/var/lib/mailman/bin
py files are in group list
but pyo or pyc are in group root

-rwxr-xr-x  1 root list  1499 2006-09-20 07:18 convert.py
-rw-r--r--  1 root root  1148 2006-10-18 10:44 convert.pyc
-rw-r--r--  1 root root  1148 2006-10-18 10:44 convert.pyo
-rwxr-xr-x  1 root list  3238 2006-09-20 07:18 discard
-rwxr-xr-x  1 root list  4399 2006-09-20 07:18 dumpdb
-rwxr-xr-x  1 root list  4951 2006-09-20 07:18 find_member
-rwxr-xr-x  1 root list  2633 2006-09-20 07:18 fix_url.py
-rw-r--r--  1 root root  2491 2006-10-18 10:44 fix_url.pyc
-rw-r--r--  1 root root  2491 2006-10-18 10:44 fix_url.pyo



More information about the Mailman-Users mailing list