MAC MAIL TROUBLESHOOTING
Mac Mail not connecting to server: 7 fixes
Fix Mac Mail when it cannot connect to a mail server. Check the network, account password, IMAP and SMTP settings, SSL ports, Keychain and provider status.

QUICK ANSWER
Start by testing the same account in a browser and on another network. Then verify the incoming IMAP hostname, port 993 and SSL/TLS setting, the outgoing SMTP hostname and port, and whether the provider requires an app password or OAuth. If those settings are correct, remove the saved account credential and add the account again.
How do you diagnose a Mac Mail server error?
Separate the problem into network access, account authentication, server settings and local app state. Test one layer at a time and record the exact error message.
| Symptom | Likely area | First check |
|---|---|---|
| Cannot connect to server | Network or hostname | Open the provider website and confirm the server name |
| Connection timed out | Port or firewall | Try a different network and verify port 993 or 587 |
| Password rejected | Authentication | Use an app password or provider sign-in |
| Certificate warning | TLS hostname | Use the provider hostname and trust a valid certificate |
| Receives but cannot send | SMTP | Check outgoing server, port and authentication |
| Works on one network only | DNS, VPN or ISP | Compare DNS and disable the VPN temporarily |
Is the Mac or the mail server offline?
Open the provider’s webmail in a browser. If webmail works, the account and provider are reachable; if it fails too, the issue may be the provider or your internet connection.
- Turn Wi-Fi off and on, then try a different network.
- Temporarily disable a VPN or security proxy for the test.
- Check the provider’s status page for an outage.
- Try a DNS resolver change only after basic connectivity works.
- Confirm that the Mac’s date and time are set automatically for TLS.
Is the password or sign-in method wrong?
Use the provider’s supported sign-in method. If multi-factor authentication is enabled and the provider offers app passwords, create a new one for Mac Mail instead of reusing your main password.
A password that works on the provider website may still fail in a mail client because the provider blocks basic authentication or requires an app-specific credential. Microsoft, Yahoo, Fastmail and several other providers have different policies.
Remove the old password from macOS Keychain if it keeps being reused after you change the account. Re-enter the credential once and let the app save it again.
Are the IMAP and SMTP settings correct?
Open the account’s server settings and compare them with the provider’s official documentation. A single wrong port or TLS mode can stop the connection.
| Setting | Common value | What to check |
|---|---|---|
| Incoming server | imap.provider.com | Use the exact hostname, not the website domain |
| IMAP port | 993 | Turn on SSL/TLS |
| Outgoing server | smtp.provider.com | Confirm whether the provider uses a different SMTP host |
| SMTP port | 465 or 587 | Use the security mode the provider requires |
| Username | Full email address | Do not use a recovery address or an alias |
Should you remove and re-add the account?
Rebuild the account only after you have confirmed the provider settings. Remove the account from Mail, delete the saved credential if necessary, then add it again with the current server details.
- Export local drafts or notes that are not stored on the server.
- Take a screenshot of custom signatures and rules.
- Remove the account from Mail, not just the password.
- Add the account again using automatic setup first.
- If automatic setup fails, enter the manual IMAP and SMTP settings.
Removing an account can delete locally cached mail. Confirm that important messages exist on the provider before you delete the account from Mail.
When should you contact the provider?
Contact the provider when the webmail also fails, the account is locked, the organization blocks IMAP/SMTP, or the official server settings still fail after you rebuild the account.
Include the exact error, the hostname and port, the time of the failure and whether the problem happens on more than one network. Do not send your password or an app password in a support ticket.
For a custom domain, contact the mailbox host rather than the domain registrar unless the registrar also operates the mail service. For a work account, start with the IT administrator.
What if the problem is the app rather than the account?
If the same provider settings work in another Mac email client, the account is healthy and the issue is in the current app. A second client is a useful diagnostic step.
Glassmail can be used to add the same account with manual IMAP or SMTP settings and test whether the server accepts the connection. Use a non-destructive test first: sync the inbox, send a message to yourself and verify the Sent folder.
Do not remove the old working client until the new connection has been stable for several days. This is especially important if the old app stores local drafts or uses rules that do not exist on the server.
Official Apple Mail references
Apple’s current Mail documentation should be the final reference for account and server settings.
Frequently asked questions
Why does Mac Mail say it cannot connect to the server?
The account may be offline, the hostname or port may be wrong, the password may be expired, or a firewall and VPN may block the connection. Test the provider website first.
What is the usual IMAP port for Mac Mail?
Port 993 with SSL/TLS is the common secure IMAP setting. Confirm the provider hostname and port because a custom mail server can use different values.
Why can I receive mail but not send it?
Incoming IMAP and outgoing SMTP use separate settings. Check the SMTP hostname, port, SSL/TLS or STARTTLS mode, authentication and From address.
Can a VPN stop Mac Mail from connecting?
A VPN, DNS filter or corporate proxy can block the mail port or change DNS resolution. Temporarily disabling it is a useful diagnostic test, not a permanent fix.
Should I delete my account to fix the error?
Not first. Verify the network and server settings, then remove and re-add the account only after checking that important mail and local drafts are available elsewhere.