You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail App Opens Randomly Mojave 10.14.5

The mail app will open all by its self. After checking mail and then minimizing the app, it will suddenly just pop open again. There is no new mail in the inbox when this happens.

iMac with Retina 5K display, macOS 10.14

Posted on May 26, 2019 9:59 AM

Reply
Question marked as Top-ranking reply

Posted on May 26, 2019 4:50 PM

To be clear, it's running, but with NO windows actually open. It will then seemingly randomly open the application window by itself.


As a follow up, I would like to consolidate my findings in hopes of expediting a solution.


EXACT Same Issue:


Possibly Related:

156 replies

Oct 10, 2019 12:00 PM in response to computechrx

I was hoping that with Catalina the problem would be solved, instead here I am.


Looking for a solution I tried to activate the logging of the connection status (from Mail menu: Windows -> Connection Status).

Examining the log when the Mail app is popping up, I found out these error messages at the exactly same time and on every occurrence of the problem (when the app doesn't pop up the error messages don't show up):

READ Oct 10 20:41:21.323 [kCFStreamSocketSecurityLevelTLSv1_2] -- host:imap.gmail.com -- port:993 -- socket:0x6000003b7de0 -- thread:0x60000322d080
5.659 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
--
READ Oct 10 20:41:21.427 [kCFStreamSocketSecurityLevelTLSv1_2] -- host:imap.gmail.com -- port:993 -- socket:0x6000003b7de0 -- thread:0x60000322d080
6.659 BAD Invalid SASL argument. z66mb54202756wmc
--
READ Oct 10 20:41:21.732 [kCFStreamSocketSecurityLevelTLSv1_2] -- host:imap.gmail.com -- port:993 -- socket:0x6000003b7de0 -- thread:0x60000322d080
7.659 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)

(Just posting the lines containing the errors)


The error messages are present only on the log file of my Gmail account, every other mail account doesn't show any error message.

So as many of you, I also think that the problem is due to the Gmail accounts.


Hope this can help to solve the problem in any meaningful way.

Oct 11, 2019 9:07 AM in response to computechrx

I had this issue for over a year with 2 macbooks. Might have found a solution though. I believe that the issue, at least for me, comes from using 2-factor authentication on my google account.


So, the issue that mail opens by itself was for me only happening when the application was running while not having the main mail window open anywhere. If the application was not open (had been quit) or if the main window was open in the background somewhere, it did not open by itself. It only opened when I had my gmail account active, so deactivating it also stopped it from not opening by itself, but that is not really a solution. But I think I have found something that works.


I, just a few days ago, deactivated my gmail account in the mail application and activated it again, but not using the easy google "preset". Instead, under "Preferences..." in mail and then in the "Accounts" tab, I clicked the plus symbol in the lower left corner to add a new account and selected "Other Mail Account...". Then entered my google account name and gmail address, went to my google account in a web browser ("account.google.com") and under "Security" generated a new "App password" and used that to login to my gmail account in the mail application.


The mail window has not opened by itself yet, so it has so far been a success for me. Hope this helps someone else with the same or similar issue :)

Nov 24, 2019 5:00 PM in response to Milo_Brixton

I'm aware of that particular workaround, and reticent to call it a "solution" as it does not address the actual problem. The issue being that a macOS feature - the ability to add your Google account within System Preferences - results in Mail consistently opening itself in order to perform what appears to be some kind of authentication "handshake" with Gmail servers.

Nov 25, 2019 7:12 PM in response to anty45

This seems like a problem for someone with feable ammounts of RAM. My new Macbook pro with a whopping 64GB of RAM does not see this as an issue.


On the other hand, Getting 64GB of RAM gave apple the right to use 30GB at all times, specially when booting up. Imagine what will happen when i fire up Photoshop to edit my 300x300 image.

Dec 14, 2019 10:44 AM in response to appexp4u

This new version 2 of the Mac OS did not cure the problem for me. BUT I have had success with a very simple workaround, which is that when I close Apple Mail, I use the yellow center button in the line of red, yellow and green buttons in the upper left. This command minimizes the application window , which does not then seemingly randomly pop up again until I deliberately reopen Mail. This has worked for me. If I close Mail by clicking on the red button, then it is subject to being reopened by some flaw in the application or the OS. But if you click the yellow button and minimize it, then I think that the application still thinks of itself as remaining open, so it remains minimized and off the screen.

The problem that I had was that when I was watching some video using the full screen, Apple Mail would, seemingly randomly, open next to it, taking up half the screen. I would close Mail, only to have it reopen later, by itself, again taking half the space of the screen. But if I minimize Mail rather than closing it, I don't have this problem. I had hope that Apple would solve this in their next revision of the OS, but it has not. I think that it is outrageous that they do not even acknowledge this problem. But the workaround still works.

Dec 17, 2019 5:43 PM in response to FanatiQS

I've avoided the app password thing for gmail. However, Google is going to force everyone to use it next year going forward. They sent admins a email yesterday. Starting February 15, 2021, G Suite accounts will only allow access to apps using OAuth. Password-based access will no longer be supported.


They recommend OAuth. App password is prob better, just more of a PITA for users.


D




Mail App Opens Randomly Mojave 10.14.5

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