macos mail.app repeatedly requires new login with gmail

For a week or so, perfectly working m2 mini mail.app setup with gmail started to ask for re-login. After re-login, a new session is created at google, mail sending/download works, but after some time (maybe 30..60 minutes) the account goes offline and macos asks "enter the password for account ..." which triggers the online auth flow (with passkeys in my case).


Everything works ok on another mac(book)/phone/tablet. Trying to remove the account from online accounts and adding it again does not help.

Mac mini, macOS 14.4

Posted on Apr 19, 2024 6:08 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 24, 2024 10:58 PM

Thanks for a very nice and detailed reply!


I managed to "fix" the issue, which turned out to be a previously missed (one of the first things I checked, and was sure to be "no deny rules identified") accidental deny rule in little snitch for accountsd and a specific google domain.

Similar questions

2 replies

Apr 24, 2024 8:56 AM in response to martinpaljak

One common reason for this behavior could be related to security settings or app permissions for your Gmail account. Sometimes, changes in these settings can affect how third-party apps like Mail.app interact with your account.


You might want to start by checking the security settings of your Gmail account. Log in to your Gmail account using a web browser and navigate to the "Security" or "Security and Privacy" settings. Review the settings related to app permissions and account access, ensuring that Mail.app is listed as a trusted app with the necessary permissions to access your account.


If you have two-factor authentication enabled for your Gmail account, consider generating an app-specific password specifically for use with Mail.app. This password can be entered in Mail.app's account settings to authenticate your Gmail account without requiring your regular Gmail password.


Additionally, make sure your Mac mini is running the latest version of macOS and that Mail.app is up to date. Software updates often include bug fixes and improvements that can address issues with app authentication and account access.


While you've mentioned trying to remove and re-add the Gmail account in Mail.app, it may be worth attempting this step again after ensuring that the other settings and permissions are correctly configured.


If the issue persists after trying these steps, it might be helpful to reach out to Google Support for assistance with Gmail account settings and security. You can also consider contacting Official Apple Support for further troubleshooting guidance specific to Mail.app and its integration with Gmail accounts.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

macos mail.app repeatedly requires new login with gmail

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.