Last Comment Bug 561618 - SMTP Protocol Failure
: SMTP Protocol Failure
Product: MailNews Core
Classification: Components
Component: Import (show other bugs)
: unspecified
: x86 Windows XP
-- major (vote)
: Thunderbird 11.0
Assigned To: Hiroyuki Ikezoe (:hiro)
Depends on:
  Show dependency treegraph
Reported: 2010-04-25 03:15 PDT by questem
Modified: 2011-12-08 18:52 PST (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---

Proposed fix (4.13 KB, patch)
2011-11-28 20:57 PST, Hiroyuki Ikezoe (:hiro)
mozilla: review+
Details | Diff | Splinter Review

Description User image questem 2010-04-25 03:15:06 PDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv: Gecko/20100401 Firefox/3.6.3
Build Identifier: Thunderbird/3.0.4

Thunderbird does not wait server greeting message to start sending smtp commands, so thunderbird does not work with Sendmail Greet-Pause feature (example FEATURE(`greet_pause',3000))

Sendmail server log:
... rejecting commands from XXX due to pre-greeting traffic.

Reproducible: Always

Steps to Reproduce:
1.Send mail using SMTP to Sendmail server with greet_pause feature
Actual Results:  
Mail not sent.

Expected Results:  
Thunderbird should wait to receive server greet message, and then start sending mail.

Other email managers (like old Outlook Express) don't have this problem.
Comment 1 User image Matthias Versen [:Matti] 2010-04-25 04:21:15 PDT
Please attach a SMTP log :
Comment 2 User image questem 2010-04-26 03:26:32 PDT
Hi Matthias,

SMTP Log only gets:
0[1829140]: SMTP Connecting to: <server>
and nothing more.

I found the problem, it only happens with imported accounts from outlook express, the account configuration is imported assuming to use SSL/TLS (instead of STARTTLS even if port is 25).

In Outlook Express there is only one checkbox, "server requires a secure connection", making no difference between SSL and STARTTLS (I supose that O.Express uses STARTTLS if port is 25, and SSL if it is 465).

Changing that setting in Thunderbird (from SSL/TLS to STARTTLS), everything works OK.
Comment 3 User image Hiroyuki Ikezoe (:hiro) 2011-11-28 20:57:26 PST
Created attachment 577478 [details] [diff] [review]
Proposed fix

Outlook Express had not been supported STARTTLS before MS07-034 (see and

This patch checks that KB933612 is applied and uses STARTTLS if SMTP port is not 465.
I think it works well in most cases.
Comment 4 User image David :Bienvenu 2011-12-01 16:09:40 PST
Comment on attachment 577478 [details] [diff] [review]
Proposed fix

Thx, Hiro. I'm not in a position to test this, but it looks reasonable.
Comment 5 User image Makoto Kato [:m_kato] 2011-12-08 18:52:52 PST

Note You need to log in before you can comment on or make changes to this bug.