SMTP 451 error

Steve Holden sholden at holdenweb.com
Fri Jan 11 09:11:55 EST 2002


"Iddo" <idoerg at cc.huji.ac.il> wrote ...
> Hi All,
>
> I am getting an SMTP 451 error when trying to perform the following
> sendmail. It works on one machine, but raises a 451 retcode on
> another. I included the smtplib debug info. ANy ideas?
>
> Thanks,
>
> Iddo
>
> >>> smtp=smtplib.SMTP('localhost')
> >>> smtp.setdebuglevel(1)
> >>> smtp.sendmail('Iddo at bioinformatics.org','idoerg at cc.huji.ac.il','hi')
>
>
> send: 'mail FROM:<Iddo at bioinformatics.org> size=3\r\n'
> reply: '250 2.1.0 <Iddo at bioinformatics.org>... Sender ok\r\n'
> reply: retcode (250); Msg: 2.1.0 <Iddo at bioinformatics.org>... Sender
> ok
> send: 'rcpt TO:<idoerg at cc.huji.ac.il>\r\n'
> reply: "451 4.0.0 Can't create transcript file ./xfg0ABcLH28697: No
> such file or directory\r\n"
> reply: retcode (451); Msg: 4.0.0 Can't create transcript file
> ./xfg0ABcLH28697: No such file or directory
> send: 'rset\r\n'
> reply: '250 2.0.0 Reset state\r\n'
> reply: retcode (250); Msg: 2.0.0 Reset state
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/home/Iddo/local/lib/python2.1/smtplib.py", line 495, in
> sendmail
>     raise SMTPRecipientsRefused(senderrs)
> smtplib.SMTPRecipientsRefused: {'idoerg at cc.huji.ac.il': (451, "4.0.0
> Can't create transcript file ./xfg0ABcLH28697: No such file or
> directory")}

This looks a lot like a broken server. From RFC 821:

"451 Requested action aborted: error in processing:

So it isn't your fault, which is why it works with the *other* server. If
you can't get any response from the systems manager concerned, you're out of
luck. It seems that the server is either badly-configured, out of disk, or
some other such criterion.

regards
 Steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list