Set up an IMAP email account in Mail on Mac
To add your Hostsuar email account to Mail, the macOS email app, you only need your address, its password and the server name, which is usually mail.yourdomain.com.
Add the account
- Open Mail. If you already have other accounts, go to Mail > Add Account.
- Choose Other Mail Account and click Continue.

- Enter the name your recipients will see, your full email address and the account password. Click Sign In.

- Mail will try to discover the settings by itself. It usually fails and shows the warning “Unable to verify account name or password” with more fields to fill in by hand. Complete them as follows:
| Field | What to enter |
|---|---|
| Email Address | Your full address |
| User Name | Your full address again |
| Password | The password for that email account |
| Account Type | IMAP |
| Incoming Mail Server | mail.yourdomain.com |
| Outgoing Mail Server | mail.yourdomain.com |

- Click Sign In again. Choose the apps that will use the account (leave Mail ticked) and click Done.
When you type the servers, Mail often clears the User Name field. Before clicking Sign In, check that your full address is still there. This is the most common reason the setup fails.
Replace yourdomain.com with your domain. If mail.yourdomain.com doesn't work, look up the exact server name in cPanel > Email Accounts > Connect Devices.
Check ports and security
Mail manages the ports automatically and almost always gets them right. If it can't connect or can't send, check them by hand:
- Open Mail > Settings > Accounts (Preferences in older versions) and select the account.
- Go to Server Settings.
- Untick Automatically manage connection settings for both the incoming and the outgoing server, and set:
- Incoming (IMAP): port 993, with Use TLS/SSL ticked.
- Outgoing (SMTP): port 465, with Use TLS/SSL ticked and Password authentication, with your full address as the user name.
- Click Save.
You'll find all the details in email connection settings.
If something goes wrong
- It doesn't accept the password: log in with the same details to webmail. If it doesn't work there either, change the password from cPanel and enter it again in Mail, for both the incoming and the outgoing server.
- You receive but can't send: check in Server Settings that the outgoing server is the one for this account (Mail may have several saved) and that it has a user name and password.
- Certificate warning: check that the server name is spelt correctly. Don't accept the certificate or turn off SSL to get past the warning.
If you previously had this account set up over POP, older emails may only be on your Mac. Read the differences between POP and IMAP before deleting the old account.
You may also find useful
- Email connection details: IMAP, POP and SMTP Find your mailbox's server, secure ports and credentials to set up an email app.
- POP or IMAP: differences and how to choose Compare where messages are stored with POP and IMAP, and prepare a protocol change without losing th...
- Read your own-domain email with Outlook or Hotmail Outlook.com (Hotmail) no longer lets you add external accounts. How to add your own-domain email ove...
- Calendars and contacts in cPanel with CalDAV and CardDAV Get your mailbox's CalDAV and CardDAV addresses and set up calendars and contacts on your devices wi...
Something wrong or out of date? Tell us and we will review it.