Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Unable to add Gmail to MacOS mail

My wife's computer recently stopped displaying Gmail in her Mac Mail App. I updated her system, I deleted her Gmail account (in order to reinstall)...I cleared the cookies, the caches, etc, all to no avail. I tried to use both the Gmail on the pop up screen as well as the Add Account.


When attempting to add, the pop up screen says "Google 400. That's an error. The server cannot process the request because it is malformed. It should not be retried. That's all we know". That message comes from Google not Apple.


20 replies

I had this exact same problem today (Feb 2024). Unfortunately, my wife tried to manually reset her Gmail account and since then, MacOS (Sonoma) kept redirecting her to a browser to reverify her credentials, which were refused every time with this message mentioned above. Finally, I traced the issue to a Safari security setting.


  1. Go to: Safari -> Settings -> Advanced
  2. Uncheck Privacy: Use advanced tracking and fingerprint protection


After that, it worked fine. I was able to re-verify my wife's Gmail account correctly.


Hope this helps.




Yep, here's the backstory...


Mac's Mail App is not as modern as iOS's Mail app, Many eMail providers now require a separate App Password different from your eMail password…

If it's an IMAP account, delete it in Sys Prefs Internet Accounts then use "Other" instead of gMail choice to add it.

Most likely biggest factor is using Other in Mail setup, then using a Browser that doesn’t have gMail PW stored init to get the App PW.


It might just need an App Password separate from the gMail password…

https://support.google.com/a/answer/9003945?hl=en#apple-mail&zippy=%2Cset-up-gmail-with-mail-on-a-mac

https://discussions.apple.com/thread/254920541?answerId=259158920022#259158920022

https://support.google.com/mail/answer/185833?hl=en-GB

Apple Mail won't sign in to Google account - Apple Community

my iMac has OS Yosemite 10.10.5 Does this… - Apple Community

my iMac has OS Yosemite 10.10.5 Does this… - Apple Community

gmail on mail Version 11.5 (3445.9.1) - Apple Community

gmail on mail Version 11.5 (3445.9.1) - Apple Community


Note from PrestoWebDesign…

Trying to add Gmail account to Apple Mail… - Apple Community

Trying to add Gmail account to Apple Mail… - Apple Community


https://blog.google/technology/safety-security/the-beginning-of-the-end-of-the-password/


Possible gMail fix…


Apple Mail won't add a gmail address - Apple Community see Youtube video…

https://www.youtube.com/watch?v=U0WPw2TsTAY


Apple Mail App Not Functioning - Apple Community

https://discussions.apple.com/thread/254931663?answerId=259192691022#259192691022

Auth 2.0 Error 400 on Mail account - Apple Community


Thanks for the info. I temporarily set Google as my default browser and bypassed the Safari problem with adding Gmail back into my wife’s mail account.

IT WORKED

Now if I could just get the display to show “all inboxes” things would be back to previous ops.

THANKS AGAIN

Me too! Downloading Chrome on my Mac solved the problem!! This time, instead of getting the "404 error page", Chrome opened a new window asking if I was sure I wanted Apple (MacOS) to have access to ... basically everything. Once I "accepted" the options, my gmail account immediately returned (the account I had deleted but couldn't add back in because Google couldn't authenticate the login). Had I found out that adding Chrome to your App. Folder would do the job, I could've saved hours of frustration. Now I have two web browser choices: safari & chrome.

OMG THIS WORKED PERFECTLY!!!! THANK YOU!! Making Chrome the default browser worked!! WOOHOOOO I AM SO HAPPY LOL

Setting Google as default browser worked.

Good so far... can you drag "all Inboxes" to the top of the list?

Yes, all the mailboxes are on the left. Trying now to figure out how to put “all inboxes “

at the top, but if I cannot restore that, at least she has all the mailboxes restored. Again, thank you for your help

  1. Thank you so much for posting this. I tried everything and until I read your post nothing worked. Thanks for posting "Uncheck Privacy: Use advanced tracking and fingerprint protection" You made my day



Great to hear, is it showing the other Mailboxes on the left?

Now that I have Gmail restored, I expanded her “favorites” email and there was the “all inboxes”.

Thanks for all

your help

Great to hear, take care my friend! :)

Thanks! This worked for me, too. And, my display shows "all inboxes". Now I'll reset my browser to Safari and be all set.

Nice tip! :)

I had same problem. This solved the problem.

THANK YOU

Darrell-E, you are a genius. That worked. Thank you so much!


YOU ARE A GENIUS!! Thank you for getting to the bottom of this issue and resolving it!!! Great work!!!

Darrell-E - Thank you SO much! I have been so frustrated with this same situation - you saved me from going insane.

Totally helped! Thanks for the fix.

This solution worked flawlessly. Thank you.