Sub topic 15
Fixing sync and delivery problems
This chapter gives you a method for diagnosing why Mail, Calendar, or Contacts on your Mac shows stale data, or why a message did not arrive or did not send. It assumes you know how to add accounts in System Settings, you can tell iCloud, IMAP, and Exchange accounts apart, and you have read the chapters on iCloud syncing and on privacy permissions.
Start with the layers
A sync problem can sit in one of four places. Check them in this order, because each layer depends on the one before it.
- The network: can the Mac reach the internet and the server?
- The account: is it enabled, signed in, and set to sync the data type you care about?
- The app: does Mail, Calendar, or Contacts have permission and a healthy local copy of the data?
- The server or the other side: is the problem the provider, the recipient, or the sender?
Check the network
Before you touch any settings, confirm that the Mac can reach the server. Open a web page, then test from Terminal. The networksetup and ping commands are built in.
networksetup -getairportnetwork en0
ping -c 3 imap.gmail.comThe interface name en0 is usually Wi-Fi on a laptop, but it can differ. If the ping fails while a web page loads, a firewall, VPN, or DNS filter may be blocking the mail ports. Corporate VPNs and content filters often block IMAP (port 993) or SMTP submission (port 587) while allowing web traffic.
Mail also shows its own view of connectivity. Choose Window > Connection Doctor. It tests each account's incoming and outgoing server and marks each one as working or failed. Start there, because it tells you whether the fault is the login, the server address, or the connection itself.
Check the account
Open System Settings > Internet Accounts and select the account.
- Confirm the toggle for each data type (Mail, Calendars, Contacts) is on. A common cause of "my events are missing" is that Calendars was turned off for that account.
- If the account shows a warning or asks you to sign in again, do that first. Passwords expire, and providers such as Google and Microsoft revoke tokens after a password change or a security event.
- For iCloud, confirm you are signed in to the same Apple Account on every device, and that iCloud Mail, Calendars, and Contacts are enabled in the Apple Account settings.
For IMAP accounts, also open Mail > Settings > Accounts and check the Server Settings tab. The incoming and outgoing server names, ports, and the "Automatically manage connection settings" option matter. If sending fails but receiving works, the outgoing (SMTP) server is the likely cause. In Mail you can open the SMTP list from the Outgoing Mail Server menu and look for a server marked offline.
Account type changes what can go wrong
| Account type | Typical failure | First thing to check |
|---|---|---|
| iCloud | Changes appear on one device but not another | Same Apple Account on both, iCloud toggles on, network |
| IMAP | Sent mail or folders do not match the web mail | Mailbox behaviors and server folder mapping |
| Exchange | Calendar or contacts stop updating after a policy change | Re-authentication and the server's autodiscover settings |
| Subscribed calendar (read-only) | Events update slowly | Refresh interval; some providers refresh only every few hours |
Subscribed calendars are not true two-way sync. They are fetched on a schedule, so a delay of hours is normal. In Calendar > Settings > Accounts, you can choose a refresh interval for subscribed calendars.
Mail delivery problems
Receiving and sending fail in different ways, so separate them.
Messages you send do not arrive
- Look in the Outbox mailbox. A message that stays there did not leave your Mac. Open Connection Doctor and check the SMTP server.
- If it left, check the Sent mailbox and your inbox for a bounce message (also called a non-delivery report). The bounce contains a status code. Codes starting with 5, such as 550, are permanent failures like a bad address or a rejected sender. Codes starting with 4 are temporary, and the server will retry.
- If there is no bounce, ask the recipient to check spam. Messages from a new domain, or with large attachments, are filtered more often.
Messages you expect do not arrive
- Check Junk and any rules you made. A rule that moves or deletes messages can hide mail without any warning. Mail > Settings > Rules lists them.
- Check whether a filter on the server, such as a webmail rule, is acting first.
- Check the mailbox size. A full server mailbox rejects new mail.
- For IMAP, confirm the folder is subscribed to and shown in Mail. A message can exist on the server in a folder Mail does not display.
If a single mailbox looks wrong, you can rebuild it. Select it in the sidebar and choose Mailbox > Rebuild. Mail discards its local copy and downloads the mailbox again from the server. This is safe for IMAP and Exchange accounts, because the server holds the real data. Do not do it for messages stored only in "On My Mac" mailboxes, because no server copy exists.
Calendar and Contacts problems
Calendar and Contacts keep a local database for each account. When the local database falls out of step, a refresh often fixes it.
- In Calendar, choose View > Refresh Calendars (or press Command-R). In Contacts, there is no refresh command, so toggling the account's Contacts switch off and on in Internet Accounts forces a re-download.
- If an event is on the server but missing here, check that its calendar is ticked in the Calendar sidebar. Unticked calendars are hidden but still synced.
- Duplicate contacts usually come from two accounts holding the same person, for example iCloud and Gmail. Use Card > Look for Duplicates in Contacts to merge them, and set a single default account in Contacts > Settings > General.
- If new events save to the wrong calendar, set the default in Calendar > Settings > General.
You can confirm that scripting access works and see what the app currently holds. This is a read-only check, and it helps separate "the data is not synced" from "the app is not showing it".
tell application "Calendar"
get name of every calendar
end tellIf the calendar you expect is not listed, the problem is the account or sync. If it is listed, the problem is in the view, the filters, or the event itself. The first time you run a script like this, macOS may ask for permission. If you refused earlier, the script fails with a "not authorized" error. Fix that in System Settings > Privacy & Security > Automation, and check Calendars and Contacts under the same pane.
When local state is damaged
If the earlier steps fail, work from least to most disruptive.
- Quit and reopen the app.
- Toggle the account's data type off and on in Internet Accounts.
- Remove the account and add it back. For IMAP and Exchange this re-downloads the data. For iCloud, choosing to keep a copy of the data on this Mac when you sign out avoids losing local-only items.
- Restart the Mac, which also clears stuck background sync processes.
Removing an account deletes its locally cached mail, events, and contacts. Anything that was never synced is lost with it, such as a draft saved only on this Mac or an event created while the account was offline. Check that your changes have reached the server, for example by viewing the same data in the provider's web interface, before you remove the account.
A quick checklist
- Can the Mac reach the server? Run Connection Doctor.
- Is the account enabled for this data type, and signed in?
- Is the item in the Outbox, a bounce, Junk, or a rule?
- Is the calendar or mailbox ticked and subscribed?
- Does the same data appear in the provider's web interface? If yes, the server is fine and the fault is local. If no, the problem is upstream or never synced.
Exercise
Your Gmail account (IMAP) receives mail on your iPhone but not on your Mac, and Connection Doctor shows the incoming server as failed while web pages load fine. Name two causes you would check and the order you would check them in.
Show answer
First check the account layer: open Internet Accounts and see whether the account needs you to sign in again, since an expired token or changed password makes the incoming server fail while the network works. Second, check the network layer for something that blocks mail ports specifically, such as a VPN or filter blocking port 993, for example by pinging the server and testing on another network. If both are fine, rebuild the mailbox, which is safe because the server holds the messages.
Exercise
You added a subscribed calendar from a school website, and a new event is not showing after an hour. Is this a fault? What setting would you look at?
Show answer
Not necessarily. Subscribed calendars are fetched on a schedule rather than synced two ways, so delays of hours are normal. Check the refresh interval for the subscription in Calendar > Settings > Accounts, and use View > Refresh Calendars to fetch it now.