[Tutor] smtp error from cgi script

Rob kyrath at cox.net
Thu Aug 3 03:16:34 CEST 2006


Hi, can someone help me interpret the error output below?

I can't tell whether this is a coding error, or a configuration error, in which case, it would be up to my host provider.

For privacy reasons, I have changed the actual email addresses to name at domain1.net and name at domain2.net.  The first was the recipient and the second was the sender.

Thanks in advance.
-- Rob

 
SMTPRecipientsRefused
Python 2.3.5: /usr/bin/python
Wed Aug 2 20:17:33 2006

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 
   62 
   63     server = smtplib.SMTP(mailserver)
   64     failed = server.sendmail(From, To, text)
   65     server.quit() 
   66     if failed:
failed undefined, server = <smtplib.SMTP instance>, server.sendmail = <bound method SMTP.sendmail of <smtplib.SMTP instance>>, From = 'name at domain2.net',
To = 'name at domain1.net', text = 'From: name at domain2.net\nTo: name at domain1.net\nDa... 1 1 \n----------------------------------------\n'

 
/usr/lib/python2.3/smtplib.py
 in sendmail(self=<smtplib.SMTP instance>, from_addr='name at domain2.net', to_addrs=['name at domain1.net'], msg='From: name at domain2.net\nTo: name at domain1.net\nDa...
1 1 \n----------------------------------------\n', mail_options=[], rcpt_options=[])
  685             # the server refused all our recipients
  686             self.rset()
  687             raise SMTPRecipientsRefused(senderrs)
  688         (code,resp) = self.data(msg)
  689         if code != 250:
global SMTPRecipientsRefused = <class smtplib.SMTPRecipientsRefused>, senderrs = {'name at domain1.net': (550, 'authentication required')}

SMTPRecipientsRefused: {'name at domain1.net': (550, 'authentication required')} 
      args = ({'name at domain1.net': (550, 'authentication required')},) 
      recipients = {'name at domain1.net': (550, 'authentication required')} 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060802/667cfc18/attachment.htm 


More information about the Tutor mailing list