[Mailman-Users] Still can't send out from Mailman

2006-10-26 Thread Dr. Scott S. Jones
AFAIK, my mailman failure to send out issue, resides solely at the pathway
from mailman -> exim. All other email traffic, i.e., exim->mailman and all
other email traffic, seems to work just fine. 

I have included the debug line in my SMTPDirect.py file, and yet nothing
shows up in /var/log/mailman/error, i.e., no debug messages. 

Scott

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Still can't send out from Mailman

2006-10-26 Thread Mark Sapiro
Dr. Scott S. Jones wrote:

>AFAIK, my mailman failure to send out issue, resides solely at the pathway
>from mailman -> exim. All other email traffic, i.e., exim->mailman and all
>other email traffic, seems to work just fine. 
>
>I have included the debug line in my SMTPDirect.py file, and yet nothing
>shows up in /var/log/mailman/error, i.e., no debug messages. 


If you have restarted Mailman after adding the set_debuglevel(1) call,
you should at least see the connect attempt logged.

You can try the following:

Give the command

/usr/lib/python2.x/smtplib.py

It will prompt you for a To: and From: address and a message body and
then attempt to send that via 'localhost' port 25 and print all the
debugging info.

Note that the /usr/lib/python2.x part of the above needs to be
adjusted, but it is the path to your installed Python library. It is
usually /usr/lib/python2.x where 2.x is your Python version.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Still can't send out from Mailman

2006-10-26 Thread Mark Sapiro
Dr. Scott S. Jones wrote:
>> 
>> You can try the following:
>> 
>> Give the command
>> 
>> /usr/lib/python2.x/smtplib.py
>> 
>
>fyrenice:/var/log/mailman# /usr/lib/python2.3/smtplib.py
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Enter message, end with ^D:
>this is a test message, at M. Sapiro's suggestions. 
>This is only a test.
>Message length is 74
>send: 'ehlo localhost.localdomain\r\n'
>reply: '250-fyrenice.com Hello localhost [127.0.0.1]\r\n'
>reply: '250-SIZE 52428800\r\n'
>reply: '250-PIPELINING\r\n'
>reply: '250 HELP\r\n'
>reply: retcode (250); Msg: fyrenice.com Hello localhost [127.0.0.1]
>SIZE 52428800
>PIPELINING
>HELP
>send: 'mail FROM:<[EMAIL PROTECTED]> size=74\r\n'
>reply: '250 OK\r\n'
>reply: retcode (250); Msg: OK
>send: 'rcpt TO:<[EMAIL PROTECTED]>\r\n'
>reply: '250 Accepted\r\n'
>reply: retcode (250); Msg: Accepted
>send: 'data\r\n'
>reply: '354 Enter message, ending with "." on a line by itself\r\n'
>reply: retcode (354); Msg: Enter message, ending with "." on a line by itself
>data: (354, 'Enter message, ending with "." on a line by itself')
>send: "this is a test message, at M. Sapiro's suggestions. \r\nThis is only
>a test.\r\n.\r\n"
>reply: '250 OK id=1GdCfZ-0002XR-Fc\r\n'
>reply: retcode (250); Msg: OK id=1GdCfZ-0002XR-Fc
>data: (250, 'OK id=1GdCfZ-0002XR-Fc')
>send: 'quit\r\n'
>reply: '221 fyrenice.com closing connection\r\n'
>reply: retcode (221); Msg: fyrenice.com closing connection
>
>>From all the OK items, is it safe to say that worked correctly, aside from
>my failure to end with a '.' on a line by itself? 


Actually, you did just what you were supposed to do. Terminating the
data with '.' on a line by itself is part of the protocol and smtplib
did that - that's the '\r\n.\r\n' at the end of the data.

So the above test worked. Now the question is why doesn't it work when
Mailman does it.

Things to check/try.

Defaults.py should have

SMTPHOST = 'localhost'
SMTPPORT = 0

These should not be changed in mm_cfg.py.

If the above test was not run as the Mailman user, run it as the
Mailman user ('mailman' or what ever it is on your system).

Try the above as an ordinary user, not root, no special permissions.

BTW, is Mailman using Python 2.3? I.e. is there another Python version
on the machine that Mailman might be using?

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Still can't send out from Mailman

2006-10-26 Thread Mark Sapiro
Dr. Scott S. Jones wrote:
>
>I changed my mm_cfg.py to read as last two lines: 
>
>SMTPHOST = 'localhost'
>SMTPPORT = 0


This does no harm, but putting those lines in mm_cfg.py doesn't really
do anything as you are just resetting them to the same values they
already have from Defaults.py.


>I have since run /etc/init.d/mailman restart, which responded as follows: 
>
>fyrenice:/etc# /etc/init.d/mailman restart
>Restarting mailman queue runner: mailmanShutting down Mailman's master
>qrunner
>No child with pid: 17469
>[Errno 3] No such process
>Stale pid file removed.
>Starting Mailman's master qrunner.


This indicates that Mailman may have been improperly shut down in the
past (maybe from your crash?). Now, do 'ps -fAw | grep python' or
however you spell that on your system. You should see exactly one
mailmanctl process and exactly 8 qrunner processes with names
ArchRunner, BounceRunner, CommandRunner, IncomingRunner, NewsRunner,
OutgoingRunner, VirginRunner and RetryRunner. If this is not what you
see, see

for a procedure that will clean things up.

Also, are you still getting the same smtp-failure entries when Mailman
sends, and are you getting any log messages from smtplib in Mailman's
'error' log?

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Still can't send out from Mailman

2006-10-26 Thread Mark Sapiro
Dr. Scott S. Jones wrote:
>
>The output from /var/log/mailman/smtp-failures includes the following: 
>
>Oct 26 17:22:40 2006 (13140) delivery to [EMAIL PROTECTED] failed with code
>-1: [Errno 9] Bad file descriptor
>Oct 26 17:22:40 2006 (13140) delivery to [EMAIL PROTECTED] failed
>with code -1: [Errno 9] Bad file descriptor
>Oct 26 17:22:41 2006 (13140) Low level smtp error: [Errno 9] Bad file
>descriptor, msgid:
><[EMAIL PROTECTED]>
>Oct 26 17:27:41 2006 (13140) delivery to
>[EMAIL PROTECTED] failed with code -1: [Errno 9] Bad file
>descriptor
>Oct 26 17:27:42 2006 (13140) Low level smtp error: [Errno 9] Bad file
>descriptor, msgid: <[EMAIL PROTECTED]>
>Oct 26 17:27:42 2006 (13140) delivery to [EMAIL PROTECTED] failed with code
>-1: [Errno 9] Bad file descriptor
>Oct 26 17:27:42 2006 (13140) Low level smtp error: [Errno 9] Bad file
>descriptor, msgid: <[EMAIL PROTECTED]>
>
>The list, with the first two lines, includes failed attempts to every one of
>the 280 or so entries on my 'sanchiro-patients' mailing list, all ending
>with the same error code. 


See the *entire* thread beginning at


I think both you guys should be talking to Debian, and if you find a
resolution there, post it back here so we know what it is.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp