Closed Bug 447960 Opened 16 years ago Closed 15 years ago

Problem with smtp gmail and SSL

Categories

(Thunderbird :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rom, Unassigned)

References

(Blocks 1 open bug)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.9.0.1) Gecko/2008071719 Firefox/3.0.1
Build Identifier: 

Since I reinstalled the computer of my parents, with Ubuntu 8.04 and Thunderbird (2.0.0.14), they had a lot of problem for sending emails.

Often, thunderbird said "send failed" at 82%, 86%, 98%... of sending, it depended.

They use smtp.gmail.com.

With SSL on port 465, they had all those problems (it worked once on two, a lot of send failed).
Yesterday, I just change to TLS (port 25), and everything works fine.

So, maybe there is a problem in ssl implementation in thunderbird?
Maybe it's a gmail problem (why not?).

But I am sure that changing from SSL to TLS resolved the problem (that they have for 3 month!). And when rechanging to SSL, the problem reappeared.

But I was not able to reproduce on my personal computer.

Reproducible: Sometimes
I experience same issue. Whenever I try to send an email, whether tls or ssl, whether port 465 or 587 (or any combination for these four options), I can't send any email.

This bug affects only heavy sized attachments; when sending a light sized one, they aren't affected (and sent the right way).
Forgot: using Thunderbird (2.0.0.14) here too.
(In reply to comment #0)
> But I am sure that changing from SSL to TLS resolved the problem

Gmail says SMTP setting SHOULD be following.
  Server name : smtp.gmail.com
  Port        : 587
  Use name and password : Checked
      Username : account name(==mail address including @gmail.com prt)
  Use secure connection: TLS (StartTLS when Tb Truck)

To rom(bug opener):

Above Google's guide indicates "Gmail SMTP supports STLS(StartTLS) only".
(i.e. Gmail SMTP doesn't support usual/general SSL connection.)
What is your purpose of checking SSL in SMTP setting of Tb for Gmail SMTP?

FYI.
Meaning of "TLS" in SMTP/IMAP/POP3(/news?) setting of Tb is "Use STLS(STARTTLS)". It doesn't mean usual/general/official term of "TLS".
See Bug 185662 Bug 350314, please.
----
Gmail says SMTP setting SHOULD be following.
  Server name : smtp.gmail.com
  Port        : 587
  Use name and password : Checked
      Username : account name(==mail address including @gmail.com prt)
  Use secure connection: TLS (StartTLS when Tb Truck)
----


Ah ok, I didn't check, but I chose SSL and it seemed to work (it is possible to send small mails), so I let SSL.
And for imap gmail, TLS doesn't work, only SSL works, so I chose the same parameter for SMTP.
> Ah ok, I didn't check, but I chose SSL and it seemed to work (it is possible to send small mails), so I let SSL.

Gmail SMTP probably doesn't prohibit SSL connection(as you say, Google uses "SSL" only for Gmail IMAP). I guess that Google knows many SSL+SMTP related problems, especially with Tb.
Search bugzilla.mozilla.org for bug contains "SSL SMTP" in bug summary. Your "SMTP failure when SSL & large mail" may be one of such bugs. Get SMTP protocol log, and check real protocol level flow first.
> https://bugzilla.mozilla.org/show_bug.cgi?id=402793#c1
> setenv NSPR_LOG_MODULES smtp:5
A very strange thing, on thunderbird 2 on vista (my girlfriend's computer), thunderbird can't send an email with gmail if I choose TLS. It works ONLY with SSL (else I have a message STARTTLS not supported or something like that).
(In reply to comment #6)
> A very strange thing, on thunderbird 2 on vista (my girlfriend's computer),
> thunderbird can't send an email with gmail if I choose TLS. It works ONLY with
> SSL (else I have a message STARTTLS not supported or something like that).

"TLS(use StartTLS) doesn't work with Gmail SMTP, but SSL with Gmail SMTP works well" (your girl friend's problem) is different problem from "TLS(use StartTLS) works well with Gmail SMTP, but SSL with Gmail SMTP fails in some situations" (your problem, this bug report).
- First, check "Setup guide for Gmail SMTP" by Google again.
- Second, get SMTP protocol log, and check real protocol level flow.
  See Bug 402793 Comment #1 for getting log.
  "SET NSPR_LOG_MODULES=smtp:5" is for SMTP log.
- Third, if (and only if) Tb's fault is involved in your girl friend's problem,
  and if (and only if) you can't find already reported bug for your girl
  friend's problem by "Advanced Search" well at bugzilla.mozilla.org,
  open separate bug for it. "One problem per a bug report" is rule of
  bugzilla.mozilla.org.
If you need help, ask for help at appropriate place such as MozillaZine forum for user support, please.
using smtp.gmail.com:993 fails with following error: http://img.wklej.org/images/34021ssl.png

in nightly snapshot from two/three days ago, it worked well.

TB-UA is: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b1pre) Gecko/20081005 Lightning/1.0pre Shredder/3.0b1pre
(In reply to comment #8)
> using smtp.gmail.com:993 fails with following error:
> http://img.wklej.org/images/34021ssl.png
> 
> in nightly snapshot from two/three days ago, it worked well.
> 
This is a different problem.  You are using the wrong server name for you incoming mail.  Change it to imap.gmail.com.
woops. I didn't noticed that. thank you :) .
Rom do you still encounter the issue ? If so can we get protocol logs ?
I am sorry, I am now using Evolution, the default mail manager under gnome.
linux@ikiru.ch could you provide the protocol logs ?
I do not experiment anymore this issue... should have been got away when updating to a new release.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.