Bug 163407 - Wrong sending account used
Summary: Wrong sending account used
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: sending (show other bugs)
Version: 1.9.51
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-07 03:51 UTC by Colin Josey
Modified: 2010-01-26 00:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the requested file 1/2 (15.98 KB, text/plain)
2008-06-30 22:21 UTC, Dario Panico
Details
requested file 2/2 (413 bytes, text/plain)
2008-06-30 22:22 UTC, Dario Panico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Josey 2008-06-07 03:51:25 UTC
Version:           1.9.51 (using Devel)
Installed from:    Compiled sources
OS:                Linux

I have two email accounts, one is for Gmail, one is for Freemail (through Freenet).  Gmail's SMTP server is default, and when I attempted to test sending through Freemail to see if I got it right, clicking Message > Send Mail Via > Freenet (secure) causes it to pop up stating that I didn't have the credentials to send through Gmail (I forgot to tell it that it needed credentials to begin with) and then won't send through Freenet.  After fixing the credentials, it sent through Freenet.

The process to reproduce is likely to just set up two SMTP servers, and try to send through the non-default one when the default has the wrong credential settings (in my case, stating specifically that the server did not need credentials).
Comment 1 Colin Josey 2008-06-07 03:58:29 UTC
Ok, I found that once the default server is authenticated, even if it is deauthenticated, it will properly send, but it is still a problem that it won't go through if the default has never been authenticated
Comment 2 Thomas McGuire 2008-06-07 18:49:52 UTC
>clicking Message > Send Mail Via > Freenet (secure) causes it to pop up stating that I didn't have the credentials to send through Gmail

So you tried to send with Freenet but KMail showed an error message about GMail? Did you have other messages in your outbox at that time?
That is the only reason I can imagine for this problem.
Comment 3 Colin Josey 2008-06-08 02:06:14 UTC
It was the first message I attempted to send with Kmail since installing it, which was also the first time installing it in the current install of Kubuntu.
Comment 4 Dario Panico 2008-06-30 12:37:50 UTC
The problem i have is similar to this: two accounts Fastweb (italian provider) and gmail. Default server is fastweb but every tme I try 'send as' to send an e-mail via gmail it sends correctly the email but via the default server.
Comment 5 Thomas McGuire 2008-06-30 19:12:14 UTC
Could someone please attach your mailtransportrc (or something like that) and your kmailrc from $HOME/.kde[4]/share/config?
Take care to remove sensitive information like your password first.
Comment 6 Dario Panico 2008-06-30 22:21:47 UTC
Created attachment 25743 [details]
the requested file 1/2

Hope no private data is left
Comment 7 Dario Panico 2008-06-30 22:22:21 UTC
Created attachment 25744 [details]
requested file 2/2

Second file
Comment 8 Thomas McGuire 2008-07-03 14:31:17 UTC
I still can not reproduce.
I tried the following:

1. Deleted my .kde4 directory (well, actually moved it somewhere else)
2. Copied the attached mailtransport / kmailrc to .kde4/share/config
3. Started KMail (clicked away the password dialogs requesting passwords for 
   the two incoming accounts), and added a dummy identity (so KMail doesn't    
   complain about missing From field)
4. Set "Gmail" as the default transport in the config (because that is what you  
   claimed in your first comment, but the Fastweb transport was actually the 
   default one)
5. Created a new message, and tried to send it via Fastweb.
6. Result: The password dialog popped up, asking me for the fastweb password.

So please provide more detailed steps how to reproduce this problem, using a clean .kde4 (or .kde, depending on your distro) dir, and using the attached kmailrc and mailtransports file.
Comment 9 Dario Panico 2008-07-03 14:53:38 UTC
I'm not Colin Josey, in my settings Fastweb was the default one, and gmail the one i couldn't send through
Comment 10 Thomas McGuire 2008-07-03 14:59:20 UTC
> I'm not Colin Josey, in my settings Fastweb was the default one, and gmail
> the one i couldn't send through

Oops, sorry, I confused both of you. Anyway, I still can not reproduce this, I 
tried sending through both accounts and it works.
Comment 11 Björn Ruberg 2010-01-26 00:47:52 UTC
For me sending with different accounts works reliable. Can you please report back if you still have this problem with recent kmail versions?