Hi, I am trying to send mails with the mailhost object using the 'send' method and, according to whether the SMTP server I use, sometimes it works and sometimes I have the following error : SMTPRecipientsRefused: {'sebastientessier@bbs-one.fr': (550, 'RCPT TO:<sebastientessier@bbs-one.fr> Relaying not allowed')} I use Zope 2.6.2 with windows 2000. If someone can explain this to me...
Ask you mailserver administrator. Does not seem to be a Zope related problem. -aj --On Mittwoch, 26. November 2003 16:08 Uhr +0100 Sébastien Tessier <sebastientessier@bbs-one.fr> wrote:
Hi,
I am trying to send mails with the mailhost object using the 'send' method and, according to whether the SMTP server I use, sometimes it works and sometimes I have the following error : SMTPRecipientsRefused: {'sebastientessier@bbs-one.fr': (550, 'RCPT TO:<sebastientessier@bbs-one.fr> Relaying not allowed')}
I use Zope 2.6.2 with windows 2000. If someone can explain this to me...
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Sébastien Tessier wrote:
Hi,
I am trying to send mails with the mailhost object using the 'send' method and, according to whether the SMTP server I use, sometimes it works and sometimes I have the following error : SMTPRecipientsRefused: {'sebastientessier@bbs-one.fr': (550, 'RCPT TO:<sebastientessier@bbs-one.fr> Relaying not allowed')}
I use Zope 2.6.2 with windows 2000. If someone can explain this to me...
Try this way. Create a file called popBeforeSmtp inside the folder Extensions ( in the root directory of your zope installation ). Add this content: import poplib def popBeforeSmtp(): M = poplib.POP3('your.mail.server.org') M.user('yourUserName') M.pass_('yourPassword') Then instantiate an External Method called mailAuth in your Zope site - accessible by the script that sends mail, and root folder is good for this purpose - which uses the function popBeforeSmpt. Before each invocation of send method against mailhost to send mails call the external method mailAuth. Hope this help. Paolo
Looks like you may have an ESMTP mail server, in which case you need a password to relay. Try ESMTP Mailhost. On Wednesday, November 26, 2003, at 10:08 AM, Sébastien Tessier wrote:
Hi,
I am trying to send mails with the mailhost object using the 'send' method and, according to whether the SMTP server I use, sometimes it works and sometimes I have the following error : SMTPRecipientsRefused: {'sebastientessier@bbs-one.fr': (550, 'RCPT TO:<sebastientessier@bbs-one.fr> Relaying not allowed')}
I use Zope 2.6.2 with windows 2000. If someone can explain this to me...
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Andreas Jung -
Marc Lindahl -
Paolo Dina -
Sébastien Tessier