Closed Bug 272354 Opened 20 years ago Closed 20 years ago

Wrong SMTP server used if account has multiple identities

Categories

(Thunderbird :: Account Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 235762

People

(Reporter: jhg, Assigned: mscott)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If a secondary (non-default) mail account has multiple identities and
also uses a non-default SMTP server, sending mail via the second or 
subsequent identity uses the default SMTP server instead of the one
configured for the account.

Reproducible: Always
Steps to Reproduce:
1. Set up a secondary SMTP server
2. Set up a secondary mail account and configure it to use the secondary
   SMTP server.
3. Add a secondary identity to this account
4. Compose a new email and select the secondary identity
5. Send.  

Actual Results:  
The mail will go out via the primary SMTP server.

Expected Results:  
The mail should be sent via the SMTP server configured for the account.
This problem is probably already reported.
But I have a question before duping.
Will adding next entry in prefs.js(or by user.js temporary) be a workaround?
> user_pref("mail.identity.idNN.smtpServer", "smtpMM");
where NN is ID-number of the account(multiple identity account),
and MM is number of SMTP server(MM of mail.smtpserver.smtpMM.hostname entry for
the secondary SMTP server).
 
That fixed it.  So it's just an issue of lacking a way to see/set this
option in the UI.

There's an open bug for Mozilla about revamping the UI for mail server
settings (I don't have the bug ID available).  Is there any crossover
from Mozilla mail bugs to TB bugs?
(In reply to comment #2)
> So it's just an issue of lacking a way to see/set this
> option in the UI.

As far as I remember, change for this problem will be ;
 - If SMTP server is not defined for an account,
   use SMTP server definition of primary account. 
This is sufficient as you say in comment #0.
So there is no need of new UI for each identifier.

Wait for a moment for bug number.
Bug I mentiond was Bug 235762.
> Bug 235762 Identity should use the account preferences instead of the default 

But this bug was already closed as FIXED based on closing as FIXED of some other
bugs(No patch is proposed to this bug.)  
And Bug 235762 Comment #21 says ;
 - The original problem -- the SMTP server not being inherited --
   was fixed by the patch in bug 246744. 
But Bug 246744 is UI change for identities, for FCC folder , BCC etc. 
> Bug 246744 Missing identity attributes for multiple identities UI

Where have all the "Patchs for original problem of Bug 235762" gone?
Graveyard?
Cause is probably ;
 - Networkng believed SMTP for identity will be defined by UI,
   but Account manager believed SMTP for identitiy will be inherited.

What is your exact Thunderbird version(build ID)?
If your build is one on which all above bugs should be fixed, Bug 235762 have to
be re-opend.
Sorry, I missed Bug 235762 Comment #19.
> I changed my default SMTP and added afterwards a new identity.
> This identity contains all needed prefs and the correct SMTP
> (not the new default SMTP).
This indicates ;
 - After patch for Bug 246744, SMTP of a identitiy is set from primary account's
   SMTP definition, when identity is defined.

What will happen if you define the identitiy again(delete and re-define)?
Check prefs.js entries after re-definiiton.
And check next too, please.
 - What will happen when you change SMTP server setting of primary account?
   Will SMTP setting of identities be changed according to change on primary? 
see also Bug 237146
(In reply to comment #6)
Ralf Hauser, this bug is *NOT* for SMTP definition/choice problem when "multiple
SMTP user-id's on same SMTP server".
This bug is for problem in automatic SMTP choice when multiple "identities".
I have a different problem caused by the same thing, I think. I have two SMTP
servers, smtp1 and smtp2, and an account with three identities, 1-3. Looking at
my prefs.js file gives me:
  user_pref("mail.identity.id1.smtpServer", "smtp1");
  user_pref("mail.identity.id2.smtpServer", "smtp1");
  user_pref("mail.identity.id3.smtpServer", "smtp1");

Which is fine. I then change my account (Tools->Account Settings->Server
Settings->Advanced->SMTP) to be "Always use default server" (because my computer
is in two locations, each of which forces me to use a different SMTP server, so
I just want to change the default server when I move location). And now prefs.js
says:
  user_pref("mail.identity.id1.smtpServer", "");
  user_pref("mail.identity.id2.smtpServer", "smtp1");
  user_pref("mail.identity.id3.smtpServer", "smtp1");

Which means when I'm in location 2, and I've set the default to smtp2, trying to
send mail using either of the non-default identities fails, as I can't connect
to smtp1 from there. I would expect that changing the SMTP server setting for
the "account" changes it for all the identities, and this caused me some
confusion for a while.
(In reply to comment #8)

Matthew, thanks for answering to my questions in comment #6.  
> - What will happen when you change SMTP server setting of primary account?
>   Will SMTP setting of identities be changed according to change on primary? 
Then your different and new problem has been found as I expected.
 - SMTP setting of identities is not changed
   according to SMTP change of primary account.    

I think we'd better to close this bug as DUP of Bug 235762 in order to avoid
confusion by bug readers.
Matthew, could you open new bug for new problem of comment #8?
I'll close this bug according to comment #2 when new bug will be opend.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #9)
> Matthew, could you open new bug for new problem of comment #8?

Done, Bug 277998.
(In reply to comment #10)
> (In reply to comment #9)
> > Matthew, could you open new bug for new problem of comment #8?
> 
> Done, Bug 277998.

Matthew, thanks.
Closing this bug as DUP of Bug 235762, because this bug is for problem when
account definition as comment #0 says.


*** This bug has been marked as a duplicate of 235762 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.