[Zope-Checkins] [Checkins] SVN: Zope/branches/2.12/ Fall back to HELO when EHLO (an optional extension) fails

Martijn Pieters mj at zopatista.com
Wed Feb 3 10:53:45 EST 2010


On 3. feb.. 2010, at 15.40, Wichert Akkerman wrote:
> On 2/3/10 15:07 , Martijn Pieters wrote:
>> Log message for revision 108731:
>>   Fall back to HELO when EHLO (an optional extension) fails
>
> Does that check if the server greets you with ESMTP or SMTP? If it  
> is ESMTP and EHLO fails something is quite wrong, and if it is SMTP  
> you already know EHLO will fail.

This is the correct by-the-RFC way of connecting to a server; if EHLO  
fails (which is optional), you should fall back to HELO. It's how  
smtplib does it, for example.

It is not the job of the client to figure out why the EHLO or the HELO  
fails anyway.

Martijn


More information about the Zope-Checkins mailing list