Author Topic: Adding Gmail and 2 step verification  (Read 7229 times)

Rmk

  • Newbie
  • *
  • Posts: 3
Adding Gmail and 2 step verification
« on: May 13, 2016, 02:16:49 pm »
I have a new phone and am trying to add my Gmail account to aquamail, having used it very happily on my previous phone.  I have 2 step verification enabled.  When I try to add it, I use the automatic settings and then get the Google log in screen.  If I enter a generated app password, it tells me not to use a generated app password but my account password.  It accepts my normal gmail account password. Then it asks me to give aquamail access permission.  When I do, I get an error message:

Account check error

Incoming mail server (IMAP): Error connecting. failed to connect to imap.gmail.com/74.125.71.108 (port 993) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)

Outgoing mail server (SMTP): Error connecting. failed to connect to smtp.gmail.com/74.125.206.109 (port 465) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)

Please make sure the data is correct.


Can anyone help me? Many thanks in advance.

Rachel

Rmk

  • Newbie
  • *
  • Posts: 3
Re: Adding Gmail and 2 step verification
« Reply #1 on: May 13, 2016, 03:42:14 pm »
I'm at work, so I'll wait and see if it makes any difference trying from home. Thanks!

nadir husain

  • Full Member
  • ***
  • Posts: 107
Re: Adding Gmail and 2 step verification
« Reply #2 on: May 13, 2016, 04:52:45 pm »
I had a similar problem. The only way I got around it was to remove my 2 step verification, add my Gmail to aqua and THEN reactivate 2 step verification . Then add the app specific password to aqua. This may work for you as well.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Adding Gmail and 2 step verification
« Reply #3 on: May 13, 2016, 11:28:08 pm »
Re: Incoming mail server (IMAP): Error connecting. failed to connect to imap.gmail.com/74.125.71.108 (port 993) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)

This has nothing to do with authentication (two step or not), it's a simple network / connect error, and those errors are "genuine", they are caused by things outside the app.

I have absolutely no trouble connecting to that specific IP from my home computer (using openssl, just as a test).

As for "generated" vs. "real" password -- since Aqua supports OAUTH2 for Gmail, it logs you in on Google's web site, which expects the real password.

Re: I had a similar problem. The only way I got around it was to remove my 2 step verification

Guess this was before Aqua started supporting OAUTH2?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

nadir husain

  • Full Member
  • ***
  • Posts: 107
Re: Adding Gmail and 2 step verification
« Reply #4 on: May 14, 2016, 05:53:50 am »
@Kostya yes this was before oauth for gmail. I was going back and forth between k9 and aquamail  before finally deleting k9 from all my devices ☺

Rmk

  • Newbie
  • *
  • Posts: 3
Re: Adding Gmail and 2 step verification
« Reply #5 on: May 14, 2016, 01:58:11 pm »
Thanks very much - I tried it again (on my home wifi) this morning and it just logged me in automatically, so that's all sorted.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Adding Gmail and 2 step verification
« Reply #6 on: May 15, 2016, 02:43:43 pm »
Re: before oauth for gmail

Yes, makes sense then.

Just wanted to ask / clarify: with Aqua's OAUTH support, two step also works fine, it's all part of Google's OAUTH "flow".

( and since Hotmail also has two-step, and there have already been cases of people having trouble with that, not knowing to use an app specific password, I added OAUTH for Hotmail too... but that's a different although related story... )
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/