4 Sep
2000
4 Sep
'00
10:02 a.m.
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