[Spambayes] Re: SMTP Errors using Eudora

Ed Rubinsky edrubins at andisplace.com
Fri Aug 29 15:07:20 EDT 2003



I put together a small test program using the email and smtplib modules and 
used it to send the same short email to the same smtp server twice - once 
directly and once through smtpproxy. The 500 error is only returned when 
going through smtpproxy. Norton scans the message in both cases. This would 
seem to eliminate Eudora and Norton as the culprit. This was done with 
1.11. As soon as I can get 1.12 from CVS I'll rerun the test. Code below. 
Output attached.

import email, smtplib

payload = "Testing SMTP."
me = "someone at somewhere.com"
he = "someone at somewhere.com"

server = "mail.mindspring.com"
port = "25"
# or
# server = "localhost"
#port = 1135

my_mail = email.message_from_string(payload)
my_mail["From"] = me
my_mail["To"] = he
print my_mail.as_string()  # get a warm and fuzzy

my_smtp = smtplib.SMTP(server, port)
my_smtp.set_debuglevel(1)
my_smtp.sendmail(me, he, my_mail.as_string())
my_smtp.quit()



Best, Ed
-------------- next part --------------
From: someone at somewhere.com
To: someone at somewhere.com

Testing SMTP.

send: 'ehlo ed.Cornell-Mayo.com\r\n'
reply: '250-hall.mail.mindspring.net Hello h-67-100-47-4.phlapafg.covad.net [67.100.47.4]\r\n'
reply: '250-SIZE 10485760\r\n'
reply: '250-PIPELINING\r\n'
reply: '250 HELP\r\n'
reply: retcode (250); Msg: hall.mail.mindspring.net Hello h-67-100-47-4.phlapafg.covad.net [67.100.47.4]
SIZE 10485760
PIPELINING
HELP
send: 'mail FROM:<someone at somewhere.com> size=73\r\n'
reply: '250 <someone at somewhere.com> is syntactically correct\r\n'
reply: retcode (250); Msg: <someone at somewhere.com> is syntactically correct
send: 'rcpt TO:<someone at somewhere.com>\r\n'
reply: '250 <someone at somewhere.com> is syntactically correct\r\n'
reply: retcode (250); Msg: <someone at somewhere.com> is syntactically correct
send: 'data\r\n'
reply: '354 Please start mail input.\r\n'
reply: retcode (354); Msg: Please start mail input.
data: (354, 'Please start mail input.')
send: 'From: someone at somewhere.com\r\n\r\nTesting SMTP.\r\n.\r\n'
reply: '250 Mail queued for delivery.\r\n'
reply: retcode (250); Msg: Mail queued for delivery.
data: (250, 'Mail queued for delivery.')
send: 'quit\r\n'
reply: '221 Closing connection. Good bye.\r\n'
reply: retcode (221); Msg: Closing connection. Good bye.
-------------- next part --------------
From: someone at somewhere.com
To: someone at somewhere.com

Testing SMTP.

send: 'ehlo ed.Cornell-Mayo.com\r\n'
reply: '250-barry.mail.mindspring.net Hello h-67-100-47-4.phlapafg.covad.net [67.100.47.4]\r\n'
reply: '250-SIZE 10485760\r\n'
reply: '250-PIPELINING\r\n'
reply: '250 HELP\r\n'
reply: retcode (250); Msg: barry.mail.mindspring.net Hello h-67-100-47-4.phlapafg.covad.net [67.100.47.4]
SIZE 10485760
PIPELINING
HELP
send: 'mail FROM:<someone at somewhere.com> size=73\r\n'
reply: '250 <someone at somewhere.com> is syntactically correct\r\n'
reply: retcode (250); Msg: <someone at somewhere.com> is syntactically correct
send: 'rcpt TO:<someone at somewhere.com>\r\n'
reply: '250 <someone at somewhere.com> is syntactically correct\r\n'
reply: retcode (250); Msg: <someone at somewhere.com> is syntactically correct
send: 'data\r\n'
reply: '354 Please start mail input.\r\n'
reply: retcode (354); Msg: Please start mail input.
data: (354, 'Please start mail input.')
send: 'From: someone at somewhere.com\r\n\r\nTesting SMTP.\r\n.\r\n'
reply: '250 Mail queued for delivery.\r\n'
reply: retcode (250); Msg: Mail queued for delivery.
data: (250, 'Mail queued for delivery.')
send: 'quit\r\n'
reply: '500 Unrecognized command\r\n'
reply: retcode (500); Msg: Unrecognized command


More information about the Spambayes mailing list