4

I'm using El Capitan now...but this problem existed with Yosemite too.

I keep getting error messages that say either could not connect to server or the server returned the error: Connections to the server “imap-mail.outlook.com” on the default ports timed out...sometimes it's saying that my trash cannot be emptied, other times it says a piece of mail could not be moved to trash.

If I open connection doctor on my original account, it shows two types of connections for each (gmail and hotmail) of my webmail accounts (SMTP and IMAP); for this, I have no idea why! I set up each of these accounts though the mail app, so I did not add them manually that their should be two types of account for each, as I did not choose the type - they are predetermined by the app.

I spoke with Apple about this and a few other issues a couple weeks ago, and the tech suggested that when I had Apple transfer some files onto this new Macbook from a Windows 8 computer, that something potentially got transferred that was a WIN8 file, that ends up corrupting mail. Didn't make much sense to me sense these are webmail accounts and not discrete files, but what do I know.

He told me to open a new user on the Macbook (as guest user deletes upon shutdown), then open up the mail accounts the same way through the Mail app, and that should fix it. I've now done that, and still...same problem except now, it's not showing two types of webmail for each account, just IMAP. But it currently won't sent the mail I just drafted and i just got the server timed out message.

Since they are webmail accounts, I could just access them online, but I want the organizational features of having them in one place, merging calendars, etc.

Any help, even an affirmation that this is a bug that others are experiencing, would be much appreciated. I really thought this was an OS X problem and hoped it would be fixed with the release of El Capitan, but no love.

8
  • Just to let you know. Same here. It was working before, then I updated and now all accounts work only every now and then. Sometime they work and sometime the stop working. I just need to wait some time and then they work again. Even trashing mails does not work always. I have an iCloud mail account and a gmail account. Both have the same problems, so it seems not to be specific to some account type. I am looking for a solution but until now could not find much. Regards, Umberto
    – Umberto
    Commented Oct 9, 2015 at 14:25
  • I have the same problem with my Hotmail account. I had no problem before updating to El Capitan OS X
    – user151502
    Commented Oct 9, 2015 at 17:04
  • @fasttouch was it a Yosemite update?
    – gracey209
    Commented Oct 11, 2015 at 16:27
  • This was happening to me with Yosemite.....Do all you guys have the new Macbook?
    – gracey209
    Commented Oct 11, 2015 at 16:29
  • I solved half of it..the trash part. If you go into mail pref/account/mailbox behaviors uncheck store trash on server...that has fixed the not being able to send to trash
    – gracey209
    Commented Oct 11, 2015 at 16:33

2 Answers 2

1
+50

Debugging mail has become a bit cumbersome since the program is now designed to do all of the network requests on background threads and the main UI never blocks. Worse, I don't think there's any way to see important statistics like: What percentage of network requests time out or error? What is the response time for my mail server over time.

With that being said, here are the things I do to isolate and debug mail.

  1. Ensure my Mac has accurate time by enabling Set date and time automatically and manually making the time wrong in the past by 1 minute or more and then enabling the check to ensure my clock will be close to the clocks on the Mail servers.
  2. Make a new user account and only enter one Mail account in that user. This lets me log out of my main user and really focus on one mail server (actually two - one for receiving and another for sending) and makes the debug logs much easier to parse.
  3. In the new account, I don't sign in to iCloud, and when I'm setting up the Mail account, I disable the check mark for Mail and only select Notes - I just want to test the log in and log out first without downloading all the mail initially.
  4. Open up Connection Doctor (under the Window menu or use help to find it)
  5. Enable Log Connection Activity
  6. Press Show Logs

You will now have more data than you might like, but watch for the green light status of the Internet Connection and the status / errors of IMAP/SMTP and other items in the doctor window.

If I don't have a problem and all the lights are green, I quit make and use Finder to navigate up one folder from the logs and compress the entire Mail folder. That gives me a baseline of when things worked.

At that point, if there is an error, you can dig into the logs or post here. You could engage AppleCare or your mail provider for help - and now you have logs. Asking a follow on question with some error message from the logs might also be worth while here. (Or even ask what the various logs mean).

If there isn't an error on the new account, log out of the test Account on your Mac and log back in to your main account and repeat the connection doctor steps. Enable logs there if you find a problem.


TL; DR - your mail issues are the same as my Mail issues and I'm not using exchange, but I do use an IMAP mail server in France which is across the atlantic from where I typically work. My suspicion is that the network errors and time outs are happening and I don't get good feedback when these errors happen and instead Mail hides all the evidence, diligently re-trying a slow connection and in the end making me unhappy. I'm looking to see if I can gather mail statistics so that I can monitor health of my mail connections in aggregate and then choose a faster mail server based on evidence, but so far, I'm only able to find out when the servers are down as opposed to being too slow to effectively work, but up enough to answer Mail's patient requests within 2 minutes so I don't actually get a "failure to connect".

1
  • Rather than discuss things in comments - this conversation has been moved to chat.
    – bmike
    Commented Oct 17, 2015 at 19:57
0

I struggled with timeouts in Mail for years, through at least 3 or more version of the OS, and just recently found the answer for me:

Reset PRAM.

http://www.macworld.com/article/2881177/how-to-reset-your-macs-nvram-pram-and-smc.html

I discovered it via https://discussions.apple.com/message/26974748#26974748

3 days on, not one timeout.

Mail's Connection Doctor shows me connections to both IMAP and SMTP (used by iCloud and FastMail) to be consistently reliable and quick (typical 2-6s).

Finally.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .