Sub topic 15
Fixing sync and delivery problems
This chapter assumes you know how accounts are added in System Settings, how iCloud, IMAP, and Exchange accounts differ, and where Privacy & Security lives. Most problems come from one of four causes: the network, the account, a per-account setting, or a permission. Check them in that order.
Work from the outside in
Start with the cheapest checks. A sync problem on one device and not on another points to that device. A problem on every device points to the account or the server.
1. Network
Open a web page first. If it loads, in Mail choose Mailbox > Take All Accounts Online. A mailbox shown as offline will not send or fetch anything. Corporate VPNs and some public Wi-Fi networks block mail ports, so try another network or disconnect the VPN.
For a deeper check, choose Window > Connection Doctor in Mail. It tests the incoming and outgoing servers for each account and marks each one as passed or failed.
2. Account
Open System Settings > Internet Accounts and select the account. Confirm that the Mail, Calendars, and Contacts switches are on. A signed-out iCloud account, or an expired password on an IMAP or Exchange account, is a frequent cause. Remove nothing yet. Re-entering the password often fixes it.
You can also confirm that Mail sees the account by reading it with a script. This only reads data, so it is safe:
tell application "Mail"
get name of every account
end tellIf the account is missing from the result, Mail does not know about it, and the fault is in step 2 and not later.
3. Per-account settings
Each account type fails in its own way.
| Symptom | Likely cause | Where to look |
|---|---|---|
| Messages arrive but cannot be sent | Outgoing (SMTP) server rejected you | Mail > Settings > Accounts > Server Settings |
| Mail arrives late on one account | The account fetches on a schedule, not by push | Settings > General > Check for new messages |
| Events missing on one Mac | Calendar has not refreshed | Calendar > View > Refresh Calendars |
| Contact edits do not appear on other devices | Contacts is off for that account | System Settings > Internet Accounts |
| Edits made on the Mac vanish | The edit went to a read-only or subscribed calendar | Calendar > Settings > Accounts |
If one mailbox looks wrong, select it and choose Mailbox > Rebuild. Mail then downloads that mailbox again from the server. This does not delete messages on the server.
4. Permissions
Apps that read your data, including scripts and third-party tools, need approval. Open System Settings > Privacy & Security and check Contacts, Calendars, and Automation. A script that returns an error such as "Not authorized to send Apple events" is blocked here. Turn the switch on for the app that runs it, for example Terminal.
When the problem is not yours
If the checks pass and one account still fails, the provider may have an outage, or may require an app-specific password for third-party mail clients. Check the provider's status page and its security settings. For iCloud, Apple's System Status page lists outages for Mail, Calendar, and Contacts.
Exercise
You can receive mail on an IMAP account but every sent message bounces or stays in the Outbox. Which check comes first, and which tool tests it?
Show answer
Check the outgoing (SMTP) server settings for that account in Mail > Settings > Accounts > Server Settings. Run Window > Connection Doctor to see whether the outgoing server passes. Receiving works, so the network and the incoming server are fine.
Exercise
A script that reads your calendars fails with "Not authorized to send Apple events to Calendar". Where do you fix it?
Show answer
In System Settings > Privacy & Security > Automation, allow the app that runs the script (for example Terminal) to control Calendar.