[Grok-dev] send mail queryUtility ComponentLookupError todoplus

Maurits van Rees m.van.rees at zestsoftware.nl
Tue Aug 24 11:35:06 EDT 2010

Op 24-08-10 16:33, DIVINE, PAUL (PAUL) schreef:
> Hi Maurits van Rees,
> Thanks a lot. The program doesn't stop anymore.
> Now I have SMTPRecipientsRefused.
> 2010-08-24 09:33:24,005 ERROR [QueueProcessorThread] Error while sending mail from paul.divine at alcatel-lucent.com to paul.divine at alcatel-lucen
> t.com.
> Traceback (most recent call last):
>    File "/root/.buildout/eggs/zope.sendmail-3.7.1-py2.5.egg/zope/sendmail/queue.py", line 261, in run
>      self.mailer.send(fromaddr, toaddrs, message)
>    File "/root/.buildout/eggs/zope.sendmail-3.7.1-py2.5.egg/zope/sendmail/mailer.py", line 72, in send
>      connection.sendmail(fromaddr, toaddrs, message)
>    File "/usr/lib/python2.5/smtplib.py", line 703, in sendmail
>      raise SMTPRecipientsRefused(senderrs)
> SMTPRecipientsRefused: {'paul.divine at alcatel-lucent.com': (550, '5.7.1<paul.divine at alcatel-lucent.com>... Relaying denied. IP name lookup fai
> led [xxx.xx.xx.xxx]')}
> I suppose it is a configuration problem.

Looks like that is a configuration issue of the mailserver yes. 
Probably you either need to add your ip address to the list of hosts 
that your mail server accepts mail from for relaying.

Or you need to add a login name and password for your mail server in the 
zcml configuration, so grok can authenticate to the mail server before 
trying to send an email.

What might help to check that the current zcml would work when there are 
no such relaying issues, is to start a simple mail server on your own 
computer using python, like this:

python -m smtpd -n -c DebuggingServer localhost:1025

Then refer to that server in your zcml.

I always forget the exact spelling for this simple mail server, so I 
look it up on the weblog of my colleague Mark van Lent:

Maurits van Rees
Programmer, Zest Software

More information about the Grok-dev mailing list