Mac Mail App: Gmail Not Working? Fix

Several people are experiencing issues with Gmail (especially G Suite) email accounts in Mail on Mac. It seems that the Mail App is not working as expected for some Gmail users. More specifically, some Gmail users have said that after installing the macOS 10.14.4, and launching the Mail app, some Gmail users are asked to authenticate their email addresses. They get a notification saying:

See also: macOS Mojave Freezes or Stops Responding, Fix

“Enter the password for the account “(null)”: Google requires completing authentication in Safari.” This takes users to a Google web login form. However, shortly after authenticating, the Mail app asks for authentication once again, and again, as the process does not stick and goes into an endless loop.

Gmail Mac problem

Please note that we contacted Apple regarding this issue, and we were told that Apple is currently working on a fix.

In the meantime, you can try the following fixes:

1– Changing your Gmail account’s security settings may fix this problem. Open Google’s My Account site (https://myaccount.google.com) and click Security (On the left navigation panel) and then scroll down and find the “Less secure app access” section and turn this on (note that Google recommends this OFF).

See also: Mail App Keeps Crashing

2- Set up your email account using IMAP. Please note that this process will delete your messages and will no longer available on your Mac. But do not worry, your mails will not be removed from Google’s servers, you can still access your mails via gmail.com web site. Here is how:

  • Open the Mail App
  • Click Mailmail app
  • Click Preferences
  • Click Accountsmail accounts
  • Select your Gmail account
  • And click the (-) remove button
  • Now we will re-add your Gmail account
  • Before that, let us make sure that IMAP access is enable. If not, you can do that easily. To enable IMAP in Gmail, login into your Gmail web client (gmail.com) and then click Settings:Gmail settings
  • Click the Forwarding and POP/IMAP tab
  • Select Enable IMAP (IMAP access section)
  • And scroll down and click Save.
  • Now again in Mail App, choose Mail
  • Click Add Account
  • Select Google, then click Continue
  • Enter your email and click Next
  • Enter your password and click Next
  • And follow the instructions

If this does not work, try the “Add Other Account” option and add smpt/imap info manually:

  • Incoming server: imap.gmail.com
  • Outgoing server: smtp.gmail.com

3- Open Safari and go to https://accounts.google.com/b/0/DisplayUnlockCaptcha and then enter your username and password, then enter the letters (captcha) then try again.

4-Please try the following:

  1. Quit Mail App.
  2. Open Keychain (Applications > Utilities or Spotlight Keychain)
  3. Search: google.oa
  4. Find the accounts that you are having trouble accessing, and delete Keychains
  5. Now go to https://accounts.google.com
  6. Sign in with your problematic account
  7. Click Security (left menu)
  8. Find the “Third-party apps with account access” section and click “manage third-party access”
  9.  Click macOS and to revoke its access
  10. Then sign out (https://accounts.google.com)
  11. On your Mac, go to System Preferences > Internet accounts and re-authenticate your account
  12. And open your Mail and try again

5-Still having the problem? if so try this:

  1. Download and install Charles (a proxy app): https://www.charlesproxy.com/latest-release/download.do
  2. Authorize automatic proxy, when asked
  3. In Charles go to the Help menu and then choose SSL Proxying > Install Charles Root Certificate
  4. Keychain Access will open. Find the “Charles Proxy…” (you may type Charles to search).
  5. Double click on it.
  6. Expand the Trust section and set to “Always Trust”.
  7. Close the window, enter your password when you are asked.
  8. In Charles, choose SSL Proxying Settings (Proxy menu).
  9. Add a new location with Host: people.googleapis.com
  10. Go to the Tools menu and then choose Rewrite and click Add.
  11. Add a new location with Host: people.googleapis.com.
  12. Add a new action:

Type: Body

Where: Response

Replace Value: {“names”:[{“metadata”:{“primary”:true},”displayName”:”Your Name”}],”emailAddresses”:[{“value”:”your@email”}]}

  1. And now on your Mac, open System Settings and Internet Accounts and re-authorize your account.
  2. Now test to see if it is working, if your issue is resolved now, feel free to remove the Charles app.

See also: macOS Mojave Draining Your Mac Battery Life? Here Is How To Fix

Thank you for choosing to leave a comment.

Please note the following:

  • All comments are moderated.
  • Your email will NOT be published nor shared.
  • All SPAM comments will be deleted.
  • Please see our comment policy page for more info.

22 thoughts on “Mac Mail App: Gmail Not Working? Fix”

  1. What worked for me was the following:

    Go to google, sign into GMAIL.
    Under Security, go to the section called App Passwords.
    I had app passwords for iMac, iPad and iPhone created. I deleted the app password for the Mac.
    Select the App=Mail, and the device=Mac
    Google will generate a one time password which you should copy to the paste board.

    At the Mac, in Mail, select Accounts under Mail in the menu bar

    Setup the new account as “Other,” not Google.
    Enter your friendly name, your Gmail address and paste the one time password you copied previously and hit .

    Both Google, Mac Mail and you will be happy with the results.

    Reply
    • Brilliant, thanks for the info been racking my brains for days going through all the usual tips & tricks. All up and running. Cheers!

      Reply
  2. Thanks a lot. It worked when I removed the access to macOS in the ‘manage third party apps’ and then then adding the account in Mail.

    Thanks a mil.

    Reply
  3. I finally managed to locate an envelope index file in the Library/Mail/V7/MailData and deleted it. After 4 days and 8 hrs suffering it works again, thanks god.

    Reply
  4. HI guys,
    i have fixed this one but my problem is that i cant open junk mails from Google account in Mac Mail. I can see the number of junk mails but when i open the folder looks like empty. no email inside. Somebody has some clue about it?

    Cheers and have a nice day

    Reply

Leave a Comment