Set Up IMAP Account in Apple Mail: Step-by-Step
In this article
To set up an IMAP account in Apple Mail, open Mail > Settings (or Preferences) > Accounts, click the plus sign, enter your name, email, and password, then let Mail auto-detect settings. If auto-detection fails, manually enter the incoming and outgoing server details provided by your email provider. This guide walks you through both methods, including common pitfalls and fixes.
What You'll Need
- Your email address and password.
- Your email provider's IMAP and SMTP server names (e.g., imap.example.com, smtp.example.com) – usually found on the provider's help page or in the welcome email.
- Port numbers and security settings (SSL/TLS) if auto-detection doesn't work – often listed on the same help page.
- If you use two-factor authentication, you may need an app-specific password from your provider.
Step-by-Step
- Open Apple Mail. If you haven't set up any account yet, Mail will prompt you to add one. Otherwise, go to Mail > Settings (or Preferences on older macOS) from the menu bar.
- Click the Accounts tab at the top of the Settings window.
- Click the plus (+) sign at the bottom left of the account list.
- Select “Other Mail Account…” if your provider isn't in the list (like Gmail, Yahoo, or iCloud). If it is, select it and skip to step 6.
- Enter your name, email address, and password. Click Sign In or Continue. Mail will try to auto-detect the settings.
- If auto-detection succeeds: Mail will show the account with IMAP and SMTP details filled in. Click Add Account (or Done).
- If auto-detection fails: You'll see a screen asking for server details. Choose IMAP (not POP) as the account type.
- Fill in the Incoming Mail Server field with your provider's IMAP server (e.g., imap.gmail.com). Enter your email address as the username (unless your provider says otherwise).
- Fill in the Outgoing Mail Server field with your provider's SMTP server (e.g., smtp.gmail.com). Enter your email address as the username.
- Click “Create” or “Add Account.” Mail will verify the settings and might ask you to trust the server certificate – click Connect if it's your provider's certificate.
- If prompted for advanced settings: After adding, go back to the Accounts list, select the account, and click Server Settings (or Account Information). Here you can adjust ports and SSL settings if needed.
- Verify the account works: Send yourself a test email and check that it appears in your inbox. Also try sending an email to confirm SMTP is set up correctly.
Common Mistakes
- Choosing POP instead of IMAP: If you select POP, mail will be downloaded and removed from the server, causing sync issues across devices. Always pick IMAP.
- Incorrect server names: Typing “imap.gmail.com” when your provider uses “mail.example.com” will fail. Double-check the exact server names from your provider.
- Using the wrong port or SSL setting: Many providers require SSL on specific ports (e.g., IMAP 993, SMTP 465 or 587). If you leave SSL off, the connection may be rejected.
- Entering the full email as username when provider expects just the part before @: Some providers accept either, but others don't. Check your provider's documentation.
- Not using an app-specific password with two-factor authentication: If you have 2FA enabled, your regular password won't work. Generate an app-specific password from your provider's security settings.
Tips
- Let Mail auto-detect first: Even if you think you know the settings, try auto-detection first – it's often correct and saves time.
- Check your provider's help page: Search for “IMAP settings” on your provider's website. They usually list exact server names, ports, and encryption methods.
- Use SSL/TLS for security: Always enable SSL if your provider supports it. It encrypts your email traffic.
- For Gmail, Yahoo, or iCloud: These providers have one-click setup in Mail. Just select them from the list and sign in – no manual server entry needed.
- If you have multiple devices: IMAP keeps everything in sync, so setting up the same account on your iPhone and Mac will show the same emails and folders.
Troubleshooting
If the account won't add:
- Check your internet connection and try again.
- Verify your password is correct. If you have 2FA, ensure you're using an app-specific password.
- Restart Mail (quit and reopen) and try again.
- If auto-detection fails, manually enter the server details from your provider's help page.
If emails don't send:
- Check the outgoing (SMTP) server settings. In Mail, go to Settings > Accounts > select the account > Server Settings. Ensure the SMTP server is correct and the port matches your provider's requirements.
- Make sure “Use Authentication” is enabled and your username/password are entered.
- Try changing the SMTP port from 25 to 587 (or 465) if your provider uses a secure submission port.
If emails don't appear in the inbox:
- Check if you're connected to the internet.
- In Mail, click the “Inbox” mailbox and ensure it's not filtered (e.g., showing only “Unread”).
- If you're using a folder other than Inbox (like “All Mail”), check that folder.
- If the account shows a red dot or error, click the account name in the sidebar and select “Get New Mail” (or press Cmd+Shift+N).
If Mail keeps asking for a password:
- Sign out of the account in Mail (Settings > Accounts > select account > Sign Out), then sign back in.
- If you recently changed your email password, update it in Mail's settings.
- For Gmail, ensure “Less secure app access” is off and you're using an app password if 2FA is on.
If the account is added but shows “Cannot connect” errors:
- Go to Settings > Accounts > select the account > Server Settings, and check the incoming and outgoing server fields.
- Try toggling SSL on/off (if your provider allows non-SSL) to see if that resolves the connection.
- If you're on a corporate network or VPN, it might block certain ports – try on a different network.
Frequently Asked Questions
What is the difference between IMAP and POP in Apple Mail?
IMAP syncs emails with the server, so changes (read, delete, move) appear on all devices. POP downloads emails to one device and typically removes them from the server, causing duplication and lack of sync.
Can I add an IMAP account to Apple Mail on my iPhone too?
Yes, the steps are similar: go to Settings > Mail > Accounts > Add Account > Other, then enter your details. The server settings are the same.
Why does Apple Mail say “Cannot verify server identity”?
This happens when the server's certificate is not trusted. If you're sure the server is correct (from your provider), click “Connect” to proceed. If it persists, check that the server name matches exactly what your provider specifies.
Do I need to enter port numbers manually?
Usually not – Apple Mail fills them automatically based on the server and SSL settings. But if auto-detection fails, you may need to enter them manually. Common IMAP port is 993 with SSL; SMTP ports are 587 (with STARTTLS) or 465 (with SSL).
How do I remove an IMAP account from Apple Mail?
Go to Mail > Settings > Accounts, select the account, and click the minus (–) button. Choose “Delete Account” and confirm. This removes the account from Mail but does not delete emails from the server.
What if my provider uses a non-standard port?
Check your provider's documentation. In Mail's Server Settings, you can click “Advanced” (or the port number) to change the port manually. Only do this if your provider specifies a different port.