[New-bugs-announce] [issue7484] smtplib: verify breaks with Postfix servers

Manuel Pégourié-Gonnard report at bugs.python.org
Sat Dec 12 07:55:56 CET 2009

New submission from Manuel Pégourié-Gonnard <mpg at elzevir.fr>:


The verify method of SMTP objects created with smtplib doesn't work
properly with servers running Postfix, due to quoting problems: the
address is enclosed in pointed brackets by the method, which changes the
way it is interpreted by the server.

The attached demo file uses the mx1.nic.fr server, which runs Postfix
and exhibits the problem at the time of the writing.

RFC 5321 says the argument of VRFY is a string representing a "user
name", without saying much about what a "user name" is, but nothing
suggests it should be quoted in pointed brackets. Moreover, the example
in D.4 doens't use any quoting. 

Anyway, even if Postfix was wrong, I think it would be worth trying to
support it, since it is quite widely used.


components: Library (Lib)
files: bsl.py
messages: 96284
nosy: mpg
severity: normal
status: open
title: smtplib: verify breaks with Postfix servers
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file15530/bsl.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list