[Twisted-Python] Problem with address-literals and SMTP

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Feb 23 09:38:39 EST 2012

On 13 Feb, 11:30 pm, george.pajari at glentel.com wrote:
>We're deploying Zenoss and found that some of the email alert messages 
>that were being delivered to Zenoss were not being properly handled. 
>The problem turns out to be an omission in the Python Twisted SMTP 
>class in that it cannot handle an email address that contains an 
>address-literal (cf. Section 4.1.2 or RFC 5321), for example, 
>This is a valid mailbox address but the 8.1.0 version of the Twisted 
>SMTP Class rejects such addresses with a "501 Syntax error". No idea if 
>this has been fixed in more recent versions (and no time to find out 
>for myself).
>I am no Python programmer so I'm sure others can do better than this, 
>but here is my fix for this problem:

Thanks.  I filed a ticket for this in our issue tracker, 


More information about the Twisted-Python mailing list