Bug 427432 - Weird message when sending mail
Summary: Weird message when sending mail
Status: REPORTED
Alias: None
Product: kontact
Classification: Applications
Component: mail (show other bugs)
Version: 5.15.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-08 05:13 UTC by Mathias Homann
Modified: 2020-10-08 13:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Homann 2020-10-08 05:13:38 UTC
SUMMARY
Every time I'm sending email I get a pop up that says:
"5.5.1 Error: already authenticated", followed by another one that says "successfully sent"

STEPS TO REPRODUCE
1. I don't know any other step than to send a mail...


OBSERVED RESULT
see above

EXPECTED RESULT
I'd expect EITHER sending to fail, OR to succeed, but not fail first, succeed right after...

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.3.18-lp152.44-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4771 CPU @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: GeForce GTX 1050/PCIe/SSE2

ADDITIONAL INFORMATION
Email accounts are all IMAP, sending is smtp with TLS. No other mail client shows this weird behaviour, nothing on the server has been changed in years.
Comment 1 Mathias Homann 2020-10-08 05:16:56 UTC
I found something to reproduce the weird "already authenticated" message.

If I "fetch all mail" just before sending the message appears; If i don't, it doesnt (unless of course kmail had just now automatically fetched mail).
Comment 2 stakanov.s 2020-10-08 08:16:29 UTC
When your provider has a "grace period" that allows to do other actions once authenticated, then in this window, if you do other action that otherwise would request a new authentication. This is the very same principle as with openSUSE sudo. If you perform two action fast, it does not ask you the password within the grace period. 
When your MTA send the password in automatic the server(!) is answering you: you are already authenticated. So the new authentication is not necessary and logically "fails". The error here is on how your mail provider did recently set the smtp authentications. You should investigate with the support of your mail supplier. 
I doubt this is an error of Kmail. If ever, the others MTAs that do not pop up the error will have a log file. Look in their log file, I am quite sure you will find the very same error there.
Comment 3 Mathias Homann 2020-10-08 10:01:32 UTC
the mail server in question is my OWN mailserver, and I have not made any changes to it.

The notification only showed up a few weeks ago after a huge KDE/Plasma upgrade.
Comment 4 stakanov.s 2020-10-08 12:59:20 UTC
Good, so you can give the information the next time so one does not loose the time to write things that can be ruled out. 
You said "TLS" so I suppose SSL/TLS on 587 as setting in Kmail as opposed to STARTTLS?

Just to avoid somebody else looses your time.
Comment 5 Mathias Homann 2020-10-08 13:34:25 UTC
(In reply to stakanov.s from comment #4)


> You said "TLS" so I suppose SSL/TLS on 587 as setting in Kmail as opposed to
> STARTTLS?
> 
> Just to avoid somebody else looses your time.

ssl/tls on port 465. kmail autodetects it that way w/o problems.
Comment 6 Mathias Homann 2020-10-08 13:39:57 UTC
...it just got weird.

I have two computers running plasma, on both kmail is configured the same way, on computer #2 i can't reproduce this.