STARTTLS capability causes hang

RESOLVED EXPIRED

Status

MailNews Core
Networking: SMTP
--
critical
RESOLVED EXPIRED
15 years ago
9 years ago

People

(Reporter: Richard, Assigned: (not reading, please use seth@sspitzer.org instead))

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612

Note that this bug is different from 98399 (hang when STARTTLS returns failure)
When sending mail, mozilla hangs after it receives a response to 'EHLO'.
Mozilla SMTP configuration: port 25, always use SSL.
With SSL set to 'never' the bug does not manifest.
The bug was present in 1.3.1 and 1.4.1 rc 1 and 2 on windows XP. The linux 
version works fine.

This is the strace output from my sendmail showing the conversation between 
mozilla and itself. It shows mozilla saying 'EHLO' and sendmail responding. 
There is then a gap of 28 seconds until I forcefully ended mozilla (clicked 
cross, then clicked 'end process' on the window that poped up), then mozilla 
sends 'quit'.
17:05:18.696858 read(6, "EHLO exactlyit.com\r\n", 4096) = 20
17:05:18.700626 write(4, "250-lobster.exactlyit.local Hello 
tonsil.exactlyit.local [192.168.42.5], pleased to meet you\r\n250-
ENHANCEDSTATUSCODES\r\n250-PIPELINING\r\n250-8BITMIME\r\n250-SIZE\r\n250-
DSN\r\n250-ETRN\r\n250-STARTTLS\r\n250-DELIVERBY\r\n250 HELP\r\n", 217) = 217
17:05:46.119279 read(6, "QUIT\r\n", 4096) = 6
17:05:46.121574 write(4, "221 2.0.0 lobster.exactlyit.local closing

Reproducible: Always

Steps to Reproduce:
1.compose an email and click 'send'
2.
3.

Actual Results:  
The 'sending' progress dialog pops up with "Sending message..."
Mozilla then hangs. The cancel button has no effect. Mozilla does not redraw, 
and eventually Windows declares it 'Not Responding'. During this time mozilla 
is shown as using 99% CPU in windows task manager. There is no significant 
increase in memory usage of the mozilla process during this time.

Expected Results:  
It should have replied to the 'ehlo' response with 'starttls' and got on with 
sending the email
(Reporter)

Comment 1

15 years ago
The behavious has changed with Mozilla 1.5. It ocurs in Windows XP, not linux.
Mozilla mail is configured with SSL set to always and port 25. When sending an
email it fails with "Sending of message failed.....Unable to connect to SMTP
server ...". It appears that when sendmail responds to the EHLO, mozilla does
not notice that STARTTLS is supported.

The following conversation takes place over the SMTP connection:
sendmail:
220 lobster.exactlyit.local ESMTP Sendmail 8.12.8/8.12.8; Fri, 17 Oct 2003 14:14
:40 +0100
------
mozilla:
EHLO exactlyit.com
------
sendmail:
250-lobster.exactlyit.local Hello host81-128-228-158.in-addr.btopenworld.com [81
.128.228.158], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
------
mozilla:
QUIT

Comment 2

15 years ago
Can you confirm this in a nightly build? 
STARTTLS isn't used when the SSL setting is used for SMTP in the current Trunk
build. You want TLS. (Bug 98399 and Bug 135357 fixes have changed the code and
UI, BTW.)
(Reporter)

Comment 3

15 years ago
Version: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031022
SMTP set to 'TLS', user name specified for authorization.
The bug is still there. mozilla says 'EHLO'. sendmail responds. mozilla pops up
a dialog saying 'sending failed'. when I click ok it sends QUIT to sendmail and
closes the connection.
My SMTP server is accessible from the net: since this bug occurs before
authorization is done, you should be able to debug and test against my server. I
can send you the address by private email if you want it.

Comment 4

14 years ago
The exact same thing happens to me.

I am using Mozilla 1.7.3
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 
I am running on Windows 2000 (completely against my will -- but that's another
story).

A similar configuration running on Mac OS X with Mozilla 1.7 has no problem.

As with the other Richard, I see the Hello message with the 250-STARTTLS, then
Mozilla reports that it cannot connect.  When I click OK, Mozilla send a QUIT. 
The precise message is
  Send Message Error
  Sending of message failed
  An error occurred sending mail: Unable to connect to SMTP server
  XXX.XXX.XXX.edu.  The server may be down or may be incorrectly
  configured.  Please verify that your Mail/News account settings
  are correct and try again.
There is another message that says
  Sending Messages - test
  Status: Connected to XXX.XXX.XXX.edu...
  Progress:
Product: MailNews → Core
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → EXPIRED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.