Closed Bug 1733085 Opened 3 years ago Closed 3 years ago

Send fails for some SMTP servers in TB 91 with new mailnews.smtp.jsmodule

Categories

(MailNews Core :: Networking: SMTP, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91+ fixed, thunderbird93 wontfix)

RESOLVED FIXED
94 Branch
Tracking Status
thunderbird_esr91 + fixed
thunderbird93 --- wontfix

People

(Reporter: anguel.stankov, Assigned: rnons)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Steps to reproduce:

After upgrading to TB 91 (Win 10, latest TB is now 91.1.2 (32-Bit)) there are serious problems sending emails via two SMTP servers:

  1. Hornetsecurity (smtp.antispameurope.com)

  2. Our domain-internal Mailstore Gateway SMTP (mailstore.mycompany.local)

Both failing SMTP servers use STARTTLS with normal password.

Actual results:

NOTE: BOTH LOGFILES ARE ATTACHED

  1. Hornetsecurity (smtp.antispameurope.com)
    Here a password prompt dialog appears again and again although the password is already saved and correct. Strangely the email is sent nevertheless.

  2. Our domain-internal Mailstore Gateway SMTP (mailstore.mycompany.local)
    Here the sending dialog simply hangs (and flickers a little) until cancel is selected. The email is not sent.

In contrast: When "mailnews.smtp.jsmodule" is set to "false" everything works as expected. So the problem seems to be related to the new SMTP module in TB 91.

Also, the problem does not exist with the Domainfactory SMTP server (sslout.df.eu).

The problem can be reproduced on all PCs. Turning off Kaspersky Security or starting TB in safe mode does not help.

Expected results:

Email should be sent normally.

Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Also encode username when constructing server uri for auth.

Hi, can you help me test by downloading an artifact build from https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/PnLu4CQGT9KiJPDwGHzZ2w/runs/0/artifacts/public/build/target.zip? It's built by https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=55c2d4cb823c3f6553946a2bf3755c89f03e5b89.

If the second problem is not fixed, please tell me if you have some special characters in your SMTP username. Thanks.

Flags: needinfo?(anguel.stankov)
Component: Untriaged → Networking: SMTP
Product: Thunderbird → MailNews Core

Thank you very much. Sorry I was very busy today, will test ASAP tomorrow.
Regarding username, yes Mailstore Gateway works by setting the target SMTP server and the local mailbox in the SMTP User Name like this:
john.doe%smtp.example.net%mbx-dead1234beefdead5678beef
From: https://help.mailstore.com/en/server/Archiving_Emails_Without_Your_Own_Emailserver

I confirm that everything works fine now. Thank you so much, Ping Chen!

Flags: needinfo?(anguel.stankov)
Blocks: tb91found
Regressed by: smtp-js
Target Milestone: --- → 94 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/7e3e90dbd7d5
Remove unneeded timeout handling in SmtpClient.jsm. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9243646 [details]
Bug 1733085 - Remove unneeded timeout handling in SmtpClient.jsm. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1661694
User impact if declined: Sometimes sending succeeded but got a false timeout error. Also if SMTP username contains %, auth may not work
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): low

Attachment #9243646 - Flags: approval-comm-esr91?

Comment on attachment 9243646 [details]
Bug 1733085 - Remove unneeded timeout handling in SmtpClient.jsm. r=mkmelin

[Triage Comment]
Approved for esr91

Attachment #9243646 - Flags: approval-comm-esr91? → approval-comm-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: