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 Connections Lost After Sleep (Ports Fail)

I am having the problem that others are having regarding Mail reconnecting after sleep. Typically, it fails to connect to my Company IMAP server, and the IMAP Gmail server (but connects to the Gmail SMTP server). It looks like this in Connection Doctor:


User uploaded file


I have done the following already:

1. Deleted and reinstalled the accounts

2. Reinstalled Mountain Lion from network

3. Reset my SMC


I have searched for any firewall that would mess it up, but have come up with nothing. Here is the readout from Terminal:


ls: /Library/InputManagers: No such file or directory

ls: /Library/Mail/Bundles: No such file or directory

ls: /Users/KyleEssary/Library/Mail/Bundles: No such file or directory

/Library/LaunchAgents:

com.Cvnt.start.plist

com.amazon.sendtokindle.launcher.plist


/Library/LaunchDaemons:

com.Cvnt.daemon.plist

com.adobe.fpsaud.plist


/Library/StartupItems:


/Users/KyleEssary/Library/LaunchAgents:

com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.DB72A0D3-A7F5-42AA-B8C0-B9F DD21F52AE.plist


The CVnt plist is from an app that I added long after I noticed this problem. The problem was the same before and after installing that app.


Whenever I run the Network Utility following a wake from sleep on typical ports, I get this:


User uploaded file


Whatever the issue may be, it apparently starts on sleep because Power Nap has yet to work. I have had this issue since installing Mountain Lion and would appreciate any help.

MacBook Air (13-INCH, MID 2011), OS X Mountain Lion (10.8.1)

Posted on Sep 5, 2012 12:36 AM

Reply
127 replies

Jan 26, 2013 4:21 PM in response to brianfromwaverly

Hi Brian, I'm no expert, but I think it's weird that you can't modify your DNS settings and that they are grayed out. Can you highlight and then delete them using the minus sign? Then add with the plus sign? What OS are you using?


Either way, you should probably create a new Network Location. Network>Location drop down>Edit Locations> Plus sign.


Then enter new DNS settings in the new location. You can always revert to your old Network location.


I think one of the guys solved this by changing his DNS from the his router's IP address to external DNS such as these two pairs, which were recommended to me my Apple Tech support:


208.67.222.222

208.67.220.220


or


8.8.8.8

8.8.4.4


Also, I never got the colored beach ball when I had this problem. Good luck.

se

Jan 26, 2013 6:11 PM in response to scott321

Thanks for the reply scott321. I did not realize the greyed out number did not mean it was locked. I was able to add a different DNS number. I tried waking from sleep a couple of times, and it worked fine. Mail came up working right away; I did not have to wait two minutes before I could use Mail. I see that many have had the experience of trying something, thinking it worked, and then the problem reappeared. So I will post again in a few days to document whether my problem was permanently fixed.

I am running 10.8.2 on my MBPr that I got in August. Fast machine!--as long as the software doesn't hang.

Here's a bit more about the machine, just in case it matters:

Model Name: MacBook Pro

Model Identifier: MacBookPro10,1

Processor Name: Intel Core i7

Processor Speed: 2.3 GHz

Number of Processors: 1

Total Number of Cores: 4

L2 Cache (per Core): 256 KB

L3 Cache: 6 MB

Memory: 8 GB

Boot ROM Version: MBP101.00EE.B02

SMC Version (system): 2.3f32

Feb 9, 2013 7:21 PM in response to brianfromwaverly

I have learned by hard experience that I cannot change my DNS at my work location. If I do, I loose all connection to the campus network. Changing the DNS server settings at home did not change my problem in any case. When I have time, I plan to move back to Outlook. I had been using Outlook before I tried Mail, and I was okay with it. I just like to use Mac native programs. But between this issue with Mail connecting again after sleep and a feature issue (I cannot import a comma delimited list of email addresses into Contacts, a feature I need since I have 75 different students every term that I need to temporarily place in one email list), I feel I need to move back. Frankly, it make me sad. I really wanted Mail to work. Thanks to all those who have been posting advice; the discussion boards have saved my bacon repeatedly.

Feb 12, 2013 7:27 AM in response to Rangeressary

I just upgraded from Snow Leopard MPB and its Apple Mail to Mountain Lion rMBP and its Apple Mail. I used the migration utility to move my account from the old computer to the new computer.


And, like so many of you, I now find my email connections dropping constantly. Particularly an IMAP account, but also a GMail account.


Any idea of whether Apple is aware of this problem (and doing their typical stonewalling in the hopes that nobody notices the poor quality of their shipping product) or are they actively denying that such a problem exists?


Any known workarounds? I'm on 10.8.2, but the supplemental update won't install, claiming "This software is not supported on your system"


TIA,

CHris

Mar 6, 2013 7:10 PM in response to scott321

scott321,

Thanks for the suggestion (changing DNS servers to Google),


Changing DNS settings to solve this problem is like finding that driving in reverse solves car problems. Even if it does solve the problem, DNS settings have many consequences (performance, security, reliability) that make it unreasonable to change them to Google (or any specific value).


I'll wait until Apple can solve the real problem, keeping in mind that I never had a problem on Snow Leopard and my previous MBP even with my local DNS settings.


-Chris

Apr 11, 2013 10:36 AM in response to Rangeressary

I saw this solution here which has worked for me:


http://apple.stackexchange.com/questions/75353/mail-app-connection-errors-offlin e-after-sleep


This might seem weird and unlikely, but these steps (originally written to restore broken Dictation) fixed it for me:

  1. Go to
    ~/Library/Preferences
    ( ++G )
  2. Locate
    com.apple.assistant.plist
    and move it to the Trash
  3. Open Dictation & Speech preference panel, disable dictation
  4. Reboot
  5. Re-enable Dictation & Speech.


I did not re-enable Dictation & Speech

Apr 12, 2013 12:25 PM in response to Rangeressary

I am glad to report that since Apple's most recent system update (which re-flashed the ROM in my rMBP as well as updating the system software, about 3 weeks ago) my problems with Mac Mail have gone away. I had previously tried a number of things suggested in this thread, but nothing helped, until this most recent update. I am suspicious that it was the ROM update, rather than a tweak to the system, that resolved the problem, but I have no evidence to support my suspicion. Anyway, I am a happy user of Mail at last.

Apr 24, 2013 6:37 AM in response to Rangeressary

I recently upgraded a bunch of computers to Macs in an office (one of many). There are 4 brand new iMacs, straight out of the box, 10.8.3 update on a vanilla OS X install, and brand new IMAP accounts on a brand new server.


All 4 experience the exact same issue. Works fine, computers sleep, wake up, no connection. Restart Mail, works fine. Rinse and repeat.


I found that I could replicate the error if I disconnected from the network. Didn't matter if it was Ethernet or WiFi - Turn WiFi off, or unplug the cable. Mail, as you'd expect, could no longer connect. Turn WiFi back on, or plug the cable back in, and it would not connect again, preferring to remain offline. I took the problem not as being Sleep itself, but rather, the fact that the iMacs were dropping off, and re-connecting to the network again, when going to sleep.


Given they had all the same symptoms, I suspected foul play on the network. I could replicate the exact same fault behaviour across all computers. I got an IP, DNS info, so on. Websites would work, it would rejoin an AFP share on a server, everything would come back, all except Mail.


As a test, I swapped the existing modem+router (Doing PPPoE [DSL], NAT, DHCP, and DNS), to a different modem running in Bridge mode with an Airport Express doing PPPoE, NAT, DHCP, and DNS. Attempted to reproduce the error, nothing. Disconnect, Mail would lose connection. Reconnect - cable or Wifi, Mail would come back to life straight away, no restarting necessary, just as you'd expect it to -- as did file shares, websites, etc.


Perhaps the only testing I didn't do was using the original modem/router and a Static network config on the affected iMacs rather than relying on DHCP.


I'm leaving the new makeshift config in place for a few days so they can test it out and report back if it's reliable or not.

Apr 24, 2013 10:59 PM in response to charlie_vz


charlie_vz wrote:


Is there a way to remove the 'solved' status from this thread?



Nope. And for that reason I'd strongly suggest you open a new thread.


There may well be some of the regular gurus who have an insight into this problem but haven't bothered looking at this thread again since it was "solved" (that's the way they roll).


You can always reference this thread in the OP so that people can see what solutions have already been tried (and failed).


Message was edited by: softwater

Mail Connections Lost After Sleep (Ports Fail)

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