LukeSmithxyz / mutt-wizard

A system for automatically configuring mutt and isync with a simple interface and safe passwords
GNU General Public License v3.0
2.39k stars 382 forks source link

mw not setting up Gmail account even with app specific password #979

Open carrierg opened 6 months ago

carrierg commented 6 months ago

I'm having an issue getting my Gmail address into neomutt through mw. Am running Fedora 39.

I've read the note about Gmail at the end of the README file and have spent the last 2 hours going through multiple closed threads here discussing how to get Gmail working; in essence, they all say the same thing about getting an app specific password and enabling 2FA.

I have a GPG key, a 16-letter app specific password (with spaces in it but apparently spaces don't matter), and have 2FA enabled. I've also confirmed that IMAP is enabled in my Gmail settings. Also have all the required and recommended dependencies for mw installed. The various closed issues I looked at gave me the impression I don't need to worry about OAuth as mutt-wizard will deal with that.

I've run mw -a my-email@gmail.com followed by pass init my-email@gmail.com to set up my .password-store without any problems.

However when I run mw -a my-email@gmail.com again after that and paste the 16-digit password twice and input my gpg passkey, I just get

Log-on not successful. This account with gmail.com is using Google's Gmail servers, which disable all third-party applications without an application-specific password. Please be sure you are using OAUTH with your Gmail account, or better yet, stop using Gmail.

I'd love to stop using Gmail, absolutely, but need to use it regardless. Am I missing something here? I am definitely not using my actual Gmail password, ONLY the app specific one.

Thanks.

ziriuz84 commented 6 months ago

I configured my 2 gmail accounts setting from command line alse server address and port

carrierg commented 6 months ago

Hi, @ziriuz84 -- I'm really glad that mw worked successfully for you. It's still not working for me despite my best efforts. The most frustrating thing is when I went ahead and set up neomutt manually, the Google app password that mw refused to recognise worked perfectly right away during the manual install. Either I've found a bug in mw, or I'm somehow missing a dependency in mw (which is impossible as I've double- and triple-checked).

Only thing I can think of is that my machine runs on Wayland but I don't see how that should affect anything.

From uname -a:

Linux [hostname] 6.7.4-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Feb 5 22:21:14 UTC 2024 x86_64 GNU/Linux

carrierg commented 6 months ago

Update: I just tested mw on 2 laptops, both running Ubuntu. mw ran flawlessly.

The original machine I can't use mw with runs on Fedora. Might there be an issue with using mw on Fedora?

jeffgazso commented 5 months ago

@carrierg, I had this problem, in my case it turned out to be clock drift on the system. Please sync your system's time to an NTP server and try again.

abdulrahim2002 commented 2 months ago

try enabling 2FA

shivams commented 2 days ago

It fails at setting up gmail for me as well, on PopOS 22.04 (which is based on Ubuntu 22.04). Throws the same error:

Log-on not successful. This account with gmail.com is using Google's Gmail servers, which disable all third-party applications without an application-specific password. Please be sure you are using OAUTH with your Gmail account, or better yet, stop using Gmail.