After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731395 - mail-client/evolution-3.12.2 can't send a message via Google Account with two-factor auth
mail-client/evolution-3.12.2 can't send a message via Google Account with two...
Status: RESOLVED INCOMPLETE
Product: evolution
Classification: Applications
Component: Mailer
3.12.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2014-06-09 09:14 UTC by Anton Gubarkov
Modified: 2018-08-21 08:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
password prompt (595.71 KB, image/png)
2014-06-09 09:16 UTC, Anton Gubarkov
Details
message sending cancelled (633.45 KB, image/png)
2014-06-09 09:17 UTC, Anton Gubarkov
Details

Description Anton Gubarkov 2014-06-09 09:14:48 UTC
google online account seems to work ok for the imap part of the access, but fails for the SMTP part. 

Reproducible: Always

Steps to Reproduce:


1. have a Google account with 2-factor auth set up
2. Add an online account to Gnome 3.12 desktop
3. start Evolution and see it loads your mailbox.
4. Compose a new message and try to send it. Black password request appears and it doesn't accept any passwords.
Actual Results:  
sending the message is cancelled. Saving the message to Drafts works OK.

Expected Results:  
message is sent

It seems a regression to me , since evolution 3.10 worked fine.
Comment 1 Anton Gubarkov 2014-06-09 09:16:10 UTC
Created attachment 278125 [details]
password prompt

this password request appears only the 1st time I attempt to send a message via a google account. To activate this prompt again I need to log off my linux account. 
No password is accepted - i.e. Google always returns "incorrect password" (this is expected as 2-factor auth is activated).
I have to cancel this prompt.
Comment 2 Anton Gubarkov 2014-06-09 09:17:07 UTC
Created attachment 278126 [details]
message sending cancelled

all subsequent send attempts are cancelled - see the red message

saving to drafts works OK.
Comment 3 Milan Crha 2014-06-17 12:51:32 UTC
Thanks for a bug report. I'm a little bit confused. On one side, the password prompt is wrong, but on other side you say:

(In reply to comment #1)
> No password is accepted - i.e. Google always returns "incorrect password" (this
> is expected as 2-factor auth is activated).

The usual way of dealing with this is to login to Google's Web interface, ask for an application password (it'll be generated for you) and then enter this generated password. It's a usual way for applications which do not support 2-factor Google authentications.

What do I miss here?
Comment 4 Anton Gubarkov 2014-06-17 13:33:42 UTC
(In reply to comment #3)
> Thanks for a bug report. I'm a little bit confused. On one side, the password
> prompt is wrong, but on other side you say:

> (...)
> The usual way of dealing with this is to login to Google's Web interface, ask
> for an application password (it'll be generated for you) and then enter this
> generated password. It's a usual way for applications which do not support
> 2-factor Google authentications.
> 
> What do I miss here?

Well, it's the way to go if the app doesn't support 2FA at all. When I added the GNOME online account, it resulted in going to a google web page and I entered both userid/password and one-time code there. The imap part of Evolution works seamlessly since then. The SMTP part is broken. 

both imap and smtp were working in 3.10.
Comment 5 André Klapper 2018-08-21 08:30:54 UTC
Many changes have taken place in the 2FA implementation since 3.10.
If this still a problem in a recent and supported version (latest 3.28), please create a new ticket at https://gitlab.gnome.org/GNOME/evolution/issues/new