Closed Bug 221030 Opened 21 years ago Closed 15 years ago

Unable to set up IMAP over SSL using the New Account Wizard

Categories

(Thunderbird :: Account Manager, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b3

People

(Reporter: mkhusid, Assigned: Bienvenu)

References

(Blocks 1 open bug, )

Details

Attachments

(4 files, 13 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916

The New Account Wizard does not allow to set up IMAP-SSL server.

This problem may seem as something cosmetic for a single user application (just
go to Tools/Account Settings, prefs.js and fix it), but it is nearly a
showstopper for a multi-user deployment. I am working on a site with up to
several hundred users now. The site OS are Redhat Linux and Solaris 9.

Reproducible: Always

Steps to Reproduce:
1. Run a new installation of Thunderbird. A new account wizard (inherited from
mailnews) pops up.
2. Set up incoming server type as IMAP and incoming server as your-server.ip
3. Complete the wizard.


Actual Results:  
Thunderbird assumes that a server is non-SSL and defaults to port 143.
A few unacceptable things happen:
1. A password is prompted. My presumption if user enters password, it will be
sent unencrypted via the network. BAD IDEA.
2. The server will not validate the logon (the server is supposed to tell client
that no connections are accepted on port 143).
3. A user gets an error message that the password is wrong. An error message
itself is quite misleading.

Expected Results:  
Allow to set up SSL type of the incoming server.
Forgot to mention. I posted on forums.mozillazine.org but got no reply. I can
volunteer to implement a fix myself if someone can guide me in the right dimension.
I agree that this is a very serious problem for many naive users. At least some
very widely used IMAP servers disallow unencrypted connections; I think this is
actually required by the IMAP spec. So the new account wizard should
*definitely* ask the user if the connection is to be encrypted. Better yet, it
should try it both ways and figure it out on its own.

Also, some imap servers (like uw-imapd) require the client to present a
directory name where the IMAP folders are kept, and will not work without it.
This is common enough that the new account wizard should prompt for this setting
as well.
Attached file AccountWizard.dtd (obsolete) —
this has been an annoyance for me too for some time.  i have some code that
might be a fix.  i'm new to xul and javascript, though - some review would be
nice.  seems to be working for me.

there's a modified locale dtd - i only did en-US.

i haven't contributed before, so i don't know the mechanics.  i attached some diffs:

/mozilla/mailnews/base/prefs/resources/locale/en-US/AccountWizard.dtd
/mailnews/base/prefs/resources/content/AccountWizard.js
/mailnews/base/prefs/resources/content/AccountWizard.xul
/mailnews/base/prefs/resources/content/aw-server.js
/mailnews/base/prefs/resources/content/aw-done.js
Attachment #154248 - Attachment description: diff → AccountWizard.dtd
Attached file AccountWizard.js (obsolete) —
Attached file AccountWizard.xul (obsolete) —
Attached file aw-done.js (obsolete) —
Attached file aw-server.js (obsolete) —
Can you add an attachment of a screenshot ?
Blocks: 124935
Attached image screenshot - account wizard - server (obsolete) —
Attached image screenshot - acct wiz - "done" page (obsolete) —
i should mention that i made the code changes to:  Mozilla 1.8a3, build 2004072106

so, this isn't against the thunderbird code.  my assumption was that this is
something we'd want in moz and thunderbird, and thunderbird branches off of
mozilla, correct?

lloyd, you have to ask for reviews:

http://www.mozilla.org/hacking/code-review-faq.html
Summary: Unable to setup IMAP over SSL using the New Account Wizard → Unable to set up IMAP over SSL using the New Account Wizard
Lloyd, can we get one complete -u diff for all your changes? I think this
enhancement is something we want...
sorry, i'm not even sure if i have the code anymore.  it's been about 18 months.
 i'm not merging this into my own build, i just offered the code in hopes that
it would find itself into the regular build (or at least inspire someone else to
improve/rewrite it), since it's an issue we ran into repeatedly with our users.

hopefully the code that's there is useful, though i suspect someone who's had
more than about an hour of familiarity with the codebase (which is about what i
had) should be able to polish it off pretty quickly.

IAC, i'll search my drive at work in the next couple days.
I have been looking into this. I guess we should allow TLS and secure
authentication also. Problem is, for POP the server info page becomes too long.


So, something would have to move
- move smtp server setting to page of its own?
- global inbox settings?

What do you think?
Attached patch proposed fix (obsolete) — Splinter Review
Went ahead and created a patch. This patch
- adds the security options for pop/imap
- also adds a checkbox for secure news 
- moves the global inbox setting to the finish page

This needs both r and sr right?
Attachment #186130 - Flags: superreview?(mscott)
Attachment #186130 - Flags: review?(bienvenu)
Comment on attachment 186130 [details] [diff] [review]
proposed fix

switching r/sr - no sense in my looking at this if Scott doesn't want it :-)
Attachment #186130 - Flags: superreview?(mscott)
Attachment #186130 - Flags: superreview?(bienvenu)
Attachment #186130 - Flags: review?(mscott)
Attachment #186130 - Flags: review?(bienvenu)
David, maybe you can push mscott to at least take a look at this and drop a short statement why this is not feasible/considered?
For the next release, we should consider this.  Ideally, we'd do an auto-detection of whether SSL or TLS works, and auto-configure.
David, thanks. you refer with "next release" to thunderbird 2 or next 1.8.0 branch release?
neither - the next (probably major) release after 2.0
QA Contact: front-end
(In reply to comment #21)
> For the next release, we should consider this.  Ideally, we'd do an
> auto-detection of whether SSL or TLS works, and auto-configure.

I found this filed as bug 394487 along with a suggestion for a possible scan order. Judging from the increasing number of "cannot connect" posts at MZ forums, and the fact that more and more providers are requiring encryption these days, having more options in the initial account setup is crucial. First-time users may be frustrated twice by first not finding any option in the account wizard to specify the port and encryption method obtained from their providers, then again when the first connection fails. Taking the guesswork out by a scanning mechanism would certainly be the best solution, I agree.

A few more thoughts:
 - Include SMTP in this bug, as providers are more likely to require encryption also for outgoing e-mails these days.
 - Offer port options rather than just encryption, e.g., TLS may be on either port 25 or 587; or, add the port to the attachment 186131 [details] layout.

Possible port options to select in the account wizard:
 - POP3:  110 (implies try TLS), 995 (use SSL)
 - IMAP:  143 (implies try TLS), 993 (use SSL)
 - SMTP:   25 (implies try TLS), 465 (use SSL), 587 (try TLS)

Note that none of the options has "no encryption" by default, assuming the "try TLS" option can be used if TLS is not supported by the server. 
Assignee: mscott → nobody
Component: Mail Window Front End → Account Manager
QA Contact: front-end → account-manager
Nominating for Tbird 3.
Flags: blocking-thunderbird3?
as google is rolling out free imap over ssl to access gmail accounts this suddenly becomes rathter more important... as this convoluted setup instruction reflects:

http://mail.google.com/support/bin/answer.py?answer=77662
Supporting comment #25. However, ideally a solution for the next major release should extend the options for all three protocols (IMAP, POP, SMTP) in the Account Wizard.

Updating the special setup dialogs for Gmail's new IMAP access is handled in bug 400931 as an enhancement request. Given that many - if not most - providers require special port and encryption settings for their services, the issue goes well beyond Gmail. It seems more desirable though to have a solid generic setup interface than trying to provide separate ISP-specific "easy setup" dialogs.
Comment on attachment 186130 [details] [diff] [review]
proposed fix

Obsoleting, badly bitrotted.
Attachment #186130 - Attachment is obsolete: true
Attachment #186130 - Flags: superreview?(bienvenu)
Attachment #186130 - Flags: review?(mscott)
Attached patch patch (obsolete) — Splinter Review
Attachment #314031 - Flags: review?(neil)
Attached file SmtpServerSetting.js (obsolete) —
Put this file under mailnews/base/prefs/resources/content
Attached file SmtpServerSettings.xul (obsolete) —
Put this file under mailnews/base/prefs/resources/content
Attachment #314032 - Attachment description: new file → SmtpServerSetting.js
Attached image screenshot (obsolete) —
Attached image screenshot
Boying: to include new files in the patch you can use the "cvsdo add" command and generate the patch with something like cvs diff -upN9. (cvsdo is part of cvsutils)

Also, "Advance" should probably be "Advanced..." 
Attachment #314031 - Attachment is obsolete: true
Attachment #314031 - Flags: review?(neil)
Attachment #314032 - Attachment is obsolete: true
Attachment #314034 - Attachment is obsolete: true
Attachment #314036 - Attachment is obsolete: true
Attached patch new patchSplinter Review
1. add include new files
2. change "Advance" to "Advanced"
3. change the access key from "a" to "A"
4. clean up codes in the previous patch
Attachment #314535 - Flags: review?(neil)
Attached image new screenshot
Comment on attachment 314535 [details] [diff] [review]
new patch

I've discovered that there's a plan for this; I'll post the URL in a sec. It's based on your patch for bug 426497 but to reduce clutter the global inbox checkbox is moved to the last page and menulists are used instead of radiogroups.
Attachment #314535 - Flags: review?(neil) → review-
Bug 326076 is another place that switched from a radio group to a menulist.
Attachment #154248 - Attachment is obsolete: true
Attachment #154249 - Attachment is obsolete: true
Attachment #154250 - Attachment is obsolete: true
Attachment #154251 - Attachment is obsolete: true
Attachment #154252 - Attachment is obsolete: true
Attachment #154564 - Attachment is obsolete: true
Attachment #154565 - Attachment is obsolete: true
Attachment #185891 - Attachment is obsolete: true
SSL is getting very common, really think we need to sort this out for tb3.
Flags: blocking-thunderbird3? → blocking-thunderbird3+
There are some designs in progres sketched out at:
http://wiki.mozilla.org/MailNews:Account_Wizard
and specifically for email:
http://wiki.mozilla.org/MailNews:Account_Wizard:Email
> (comment #42) http://wiki.mozilla.org/MailNews:Account_Wizard:Email#Page_3

I like that the menu lists use less space and would be extendable for further encryption protocols (if any new ones come up). The authentication on Page 4 is good too and separates connection and authentication better than having both on the same page. However, I still think that the *port* numbers should be offered somewhere, which initially can be set to the respective defaults as done now. Keep in mind that the port may not be uniquely derivable from the encryption protocol used, especially for SMTP (e.g., port 25 vs. 587).

This is Page 3 extended by port fields next to the server name, corresponding to the current Server Settings tab. While comment #34 introduced a separate page with "Advanced" button, this may be a little more "cluttering" but avoids a separate page for the port:

   /Choose:/
   [*] POP [ ] IMAP

   /explanatory text/

   Incoming Server: [ mail.doe.mail     ] Port: [110]
   [ ] Use Secure Connection [  TLS, if available \/]

   ----

   /explanatory text/

   Outgoing Server: [ smtp.doe.mail     ] Port: [ 25]
   [ ] Use Secure Connection [  TLS, if available \/]

   [[ < Back ]] [[ Next > ]] [[ Cancel ]]
That looks good to me.  I don't think it adds too much clutter considering it's necessity.

Can you update the wiki page to reflect this change?
> (comment #45) Can you update the wiki page to reflect this change?

Done. I've also updated Page 6 (summary page) to reflect the additional options, please modify any of those as you see fit.
These proposed revisions will enhance User configuration for the U.S. Dept. of Defense which uses SSL for IMAP and SMTP connections. I suspect that the other governmental Depts are similar.
- some updates, already put into bug 326076 -

The Account Wizard wiki has been updated to reflect some discussion coming out
of the wiki talk page.  This includes a better menu list item.

Also bug 422814 has some work on auto-probe for connection type and port config
Depends on: autoconfig
Priority: -- → P1
Target Milestone: --- → Thunderbird 3.0b2
I'm not certain of the privacy implications, but perhaps following Outlook 2007's lead and guess the proper ports/security settings, working from more secure to less secure?
moving to b2 - this is completely dependent on the new account config stuff landing, which may or may not happen for b1, but it's not useful to track this separately.
Target Milestone: Thunderbird 3.0b1 → Thunderbird 3.0b2
Assignee: nobody → bienvenu
still trying to get this for b2, but not blocking b2
Target Milestone: Thunderbird 3.0b2 → Thunderbird 3.0b3
Version: unspecified → Trunk
the new mail acount setup wizerd in bug 422814 fixes this.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: