This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kmail sends smtp password inspite of oauth login

Tags: None
(comma "," separated)
zkhizo
Registered Member
Posts
1
Karma
0
Hi there,

I created a gmail account in kmail (after the 17.4.1 update in Neon), loged in with Oauth, synced, but when tried sending mail it asked for smtp passwrod, and gmail of course didn't accept it ("please log in with your browser"). Still have to enable unsafe applications in gmail to use kmail inspite of oauth supposedly working. Is it still broken?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Using XOAUTH2 to send mail isn't supported yet. Work is ongoing to provide it, probably in one of the next major Applications versions (17.08 or 17.12).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
queden
Registered Member
Posts
4
Karma
0
OS
I am running 17.12.3 and it still does not seem to be supported. Or am I missing something in the settings? This feature is crucial, otherwise I cannot send emails. My email is not mandatory in 2FA, cannot turn "less secured apps" on anymore.
User avatar
progdan
KDE Developer
Posts
90
Karma
0
OS
OAuth via SMTP (for Gmail only for now) has been merged into current development branch and will be available in the August release of KDE Applications.


Daniel Vrátil | www.dvratil.cz | dvratil@kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)
queden
Registered Member
Posts
4
Karma
0
OS
This is great news, thanks.
begonia
Registered Member
Posts
149
Karma
0
OS
Only it is end of September now and I didn't see it happen. Did something go wrong?
I'm on Neon user edition, just installed fresh to upgrade to the ubuntu 18.04 based version. So plasma 5.13.5, frameworks 5.50.0 and kmail 5.9.1.
As far as I can see, it didn't happen.
User avatar
progdan
KDE Developer
Posts
90
Karma
0
OS
You need to manually change it in the settings. Go to Settings -> Configure KMail -> Accounts -> Sending, find your Gmail SMTP, click Modify and in the Advanced tab select the "XOAUTH2" authentication method. If you already use OAUTH for Gmail IMAP, sending should automagically work as well, otherwise you'll get the Google login window the first time you try to send an email.


Daniel Vrátil | www.dvratil.cz | dvratil@kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)
begonia
Registered Member
Posts
149
Karma
0
OS
Thank you for your reaction Daniel. And now I got it to work! Only it isn't so simpel.
I whiped out the folders .local an .config from another partition and started kmail again "from scatch" so to speak. It all went fine except for the smtp configuration. Kmail chooses automatically imap for my gmail (correct) but doesn't notice that I use "double verification". So I have to tell it by hand in the way you suggested. If I say "autodetect" in that dialog it goes wrong again. But when I say "OAuth" then close the window, open it again and THEN force autoconfiguration it works. And then it works without any problems.
Great! Thank you.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], rockscient, Yahoo [Bot]