deltachat / deltachat-core

Delta.Chat C-Library with e2e chat-over-email functionality & Python bindings
https://c.delta.chat
Other
304 stars 26 forks source link

Unable to login with a G Suite account and oauth2 #693

Open streaps opened 5 years ago

streaps commented 5 years ago

It seems that oauth2 login for G Suite accounts does not work (Gmail account with a custom domain instead of @gmail.com). I used the same settings that work with Thunderbird for the same account.

Email: user.name@example.com IMAP server: imap.gmail.com IMAP port: 993 IMAP Security: SSL/TLS

From the logfile:

07-06 16:51:21.937 31193 31214 I DeltaChat: Trying: user.name@example.com user.name@example.com:***:imap.gmail.com:993 user.name@example.com:***:smtp.gmail.com:465 AUTH_NORMAL IMAP_SSL SMTP_SSL
07-06 16:51:23.877 31193 31214 I DeltaChat: IMAP-server imap.gmail.com:993 SSL-connected.
07-06 16:51:24.897 31193 31214 E DeltaChat: Cannot login as "user.name@example.com". Please check if the email-address and the password are correct.
07-06 16:51:24.897 31193 31214 E DeltaChat: 
07-06 16:51:24.897 31193 31214 E DeltaChat: Response from imap.gmail.com: Invalid credentials (Failure)

In the original log user.name@example.com is my real address.

r10s commented 5 years ago

there is a known issue with gmail, workaround: https://support.delta.chat/t/oauth/568