[Zope-dev] MailHost, 2.2.0, and qmail mailserver

Richard Taylor r.taylor@eris.dera.gov.uk
04 Sep 2000 11:02:22 +0100


The change in the sendmail tag to use the SMTP module has caused a
problem for me when sending to a qmail mailserver.

After investigation, it would appear that the smtplib module function:

   SMTP.mail(self,sender,options=[]): 

appends a space to the end of the FROM: address when there are no
options. The offending line is:

   self.putcmd("mail", "FROM:%s %s" % (quoteaddr(sender) ,optionlist))

This space upsets the qmail server which response with
SMTPSenderRefused.

A quick fix is to remove this space and home that no optionlist is
ever past. A more permanent fix to smtplib would seem in order.

Richard