Sub topic 2
Adding accounts in System Settings
This chapter assumes you can find your way around System Settings and the menu bar. It also assumes you have at least one email address and know what an Apple Account (Apple ID) is. By the end you should be able to add, adjust, pause, and remove accounts, and you should know why this one panel controls what Mail, Calendar, and Contacts show.
Why accounts come first
Mail, Calendar, and Contacts store very little on their own. Each app is a viewer and editor for data that lives in an account: a mailbox on a mail server, a calendar on a calendar server, an address book on a contacts server. The Mac keeps a local copy and syncs it with the server.
Without an account, the apps are mostly empty. Mail has nothing to fetch. Calendar and Contacts can use an "On My Mac" store, but it never syncs to any other device.
macOS keeps one shared list of accounts. You add an account once, and each app that account supports can use it.
Where accounts live
Open the Apple menu, choose System Settings, and select Internet Accounts in the sidebar. You will see:
- A list of the accounts already on the Mac.
- An Add Account… button.
Your Apple Account is set up at the top of the System Settings sidebar. Its iCloud services also appear in Internet Accounts, so you can manage them there as well.
You can also reach the same panel from inside the apps. In Mail, Calendar, or Contacts, choose Add Account… from the app's menu (the exact menu varies by app and macOS version). Both routes write to the same list.
Adding an account step by step
- Open System Settings > Internet Accounts.
- Click Add Account….
- Choose a provider from the list.
- Authenticate as that provider requires.
- Choose which apps should use the account, then click Done.
The provider list normally includes iCloud, Microsoft Exchange, Google, Yahoo, and AOL. At the bottom is Add Other Account… for everything else. The exact list changes between macOS versions.
Providers with a built-in sign-in
For iCloud, Google, Yahoo, and AOL, macOS already knows the server addresses. You enter your email address and then authenticate.
Google uses a web-based sign-in sheet, so your Google password goes to Google and not to the Mac. If the account has two-step verification, you complete it there. Yahoo and AOL may ask for an app-specific password, a separate password generated in the provider's security settings for third-party apps. If your normal password is rejected, this is the most common reason.
Microsoft Exchange
Choose Microsoft Exchange, then enter a name, your email address, and your password. macOS tries to discover the server settings automatically.
If your organization uses modern authentication, you may be sent to a Microsoft sign-in page. If automatic discovery fails, the sheet asks for the server details. Your IT administrator can supply them. Some organizations also require a device configuration profile before an Exchange account will work, and that is an organizational policy and not a Mac fault.
Other accounts
Add Other Account… offers these choices:
| Choice | Use it for |
|---|---|
| Mail account | An IMAP or POP mailbox from an ISP, a domain host, or a small provider |
| CalDAV account | A calendar server that is not one of the named providers |
| CardDAV account | A contacts server that is not one of the named providers |
| LDAP account | A directory server, typically an organization's address directory |
For a generic mail account, macOS first tries to discover settings from the domain. If that fails, you enter the incoming and outgoing server names yourself. You need the incoming server, the outgoing (SMTP) server, your username, and your password. Your provider's help pages list these.
Choosing which apps use the account
After authentication, the sheet shows a list of toggles. A mail-and-calendar account might show Mail, Contacts, Calendars, Reminders, and Notes. The list depends on what the provider supports, so a plain mail provider shows only Mail.
You can change these toggles later. Select the account in Internet Accounts and flip any switch:
- Turning Mail off makes that account's mailboxes disappear from Mail, but the account stays configured.
- Turning Calendars off removes its calendars from Calendar.
- Turning Contacts off removes its address book from Contacts.
Switching off a service does not delete anything on the server. It only stops the Mac from syncing that service and hides the local copy. This is the safe way to declutter. If a work calendar crowds your day view, switch off Calendars for that account instead of removing the account.
You can also manage accounts from inside Mail, where Mail > Settings > Accounts has an Enable this account checkbox. That checkbox applies only to Mail's use of the account.
Checking from the command line
Once an account has Mail enabled, you can confirm that Mail sees it. This read-only AppleScript lists the account names:
tell application "Mail"
get name of every account
end tellTo run it from Terminal, wrap it in osascript:
osascript -e 'tell application "Mail" to get name of every account'The first time, macOS may ask whether Terminal may control Mail. Choose OK. A later chapter on privacy permissions explains this prompt. The result is a comma-separated list of names, such as iCloud, Work. If an account is missing, check that its Mail toggle is on.
Removing an account
Select the account in Internet Accounts and click Delete Account… (older versions say Remove Account). Confirm when asked.
Removal deletes the local copy of that account's mail, events, and contacts from this Mac. The server copy is untouched, and the data returns if you add the account again. Two cases deserve care:
- Data stored only on the Mac. Mail may keep local-only folders, such as "On My Mac" mailboxes, and Calendar and Contacts have similar local stores. These are not copies of anything on a server. Export or back them up before you remove anything.
- Offline-only messages. With POP accounts, the Mac may hold the only copy of downloaded mail, depending on settings. Check your retention settings first.
Common errors when adding accounts
- "Unable to verify account name or password." Check for typos first. Then check whether the provider needs an app-specific password or has two-step verification enabled.
- Mail works but Calendar is empty. The Calendars toggle for that account is probably off, or the provider does not offer calendars.
- Duplicate events or contacts. You added the same service twice, for example Google through the Google provider and again as a CalDAV account. Keep one.
- Account added but greyed out in Mail. The account is disabled, or the Mac cannot reach the server. Check the network and the account's enable checkbox.
- A work account will not complete. Policy may require a configuration profile or a managed device. Ask the administrator.
Summary
Accounts are the source of everything the three apps display. Add them in System Settings > Internet Accounts, pick the right provider, and switch on only the services you want. Prefer toggling a service off to deleting an account. The next chapter looks at how iCloud, IMAP, and Exchange differ once an account is in place.
Exercise
Your work Exchange account fills Calendar with events you do not want to see on this Mac, but you still need its email. What is the least destructive way to fix this, and does it affect the server's calendar data?
Show answer
Open System Settings > Internet Accounts, select the Exchange account, and turn off the Calendars toggle, leaving Mail on. This stops syncing and hides the account's calendars in Calendar on this Mac only. The events on the server are not deleted, and turning the toggle back on restores them.
Exercise
You added a Yahoo account with your normal password and sign-in keeps failing, even though the password works on the Yahoo website. What is the likely cause and fix?
Show answer
The account likely requires an app-specific password, because third-party apps cannot use the normal password when two-step verification is on. Generate an app-specific password in Yahoo's account security settings and enter that in the Mac's sign-in sheet.