To set up email in cPanel, open Email Accounts, create a mailbox with a strong password, then use the Connect Devices link beside it to see the exact server names and ports for that account. The usual pattern is mail.yourdomain.com as both servers, IMAP on 993 with SSL/TLS, POP3 on 995 with SSL/TLS, and SMTP on 465 with SSL/TLS or 587 with STARTTLS, with the full email address as the username.
cPanel is a control panel, so the exact values come from your host's mail server rather than from cPanel itself. That is why the Connect Devices page is the source of truth. The rest of this guide explains the steps, the webmail options, how to send from a website, and how to diagnose the failures that hosting mail produces.
Create the mailbox
- Log in to cPanel and open Email Accounts in the Email section.
- Click Create, choose the domain, and enter the username part of the address.
- Set a strong password, using the generator if offered.
- Set the storage quota. An unlimited setting is not always available or wise; pick a figure that matches your plan.
- Save, then use Connect Devices next to the new account.
- Choose the secure (SSL/TLS) settings if the page offers both secure and non-secure variants.
Menu names vary slightly between cPanel versions and themes, so look for the equivalents if your screen differs. The first thing to check on any cPanel host is that the mailbox exists on the domain you intend, since several domains can share one account.
Standard settings
| Item | Typical value | Notes |
|---|---|---|
| Incoming IMAP | mail.yourdomain.com, 993, SSL/TLS | IMAP keeps mail on the server and in sync. See what IMAP is |
| Incoming POP3 | mail.yourdomain.com, 995, SSL/TLS | Downloads mail; avoid if you use several devices |
| Outgoing SMTP, implicit TLS | mail.yourdomain.com, 465 | Encrypted from the first byte |
| Outgoing SMTP, STARTTLS | mail.yourdomain.com, 587 | Upgrades with STARTTLS. See SMTP submission |
| Username | [email protected] | Always the full address |
| Authentication | Required on outgoing | Same credentials as incoming |
cPanel also lists plain-text ports such as 143, 110 and sometimes 25. Do not use them for logins: they expose the password unless the client upgrades the connection. Many hosts also block outbound port 25 from customer servers, as discussed in which SMTP port to use.
Certificate names: the most common surprise
TLS clients compare the certificate name with the hostname they connected to. On shared hosting the mail certificate frequently matches the server hostname, and may only cover mail.yourdomain.com if an SSL certificate has been issued for that name, for example through the host's automatic certificate feature. If your client warns that the name does not match, you have two correct options: connect to the server hostname shown on the Connect Devices page, or get a certificate that covers the mail subdomain. Accepting the warning permanently trains users to ignore real attacks, and disabling verification removes the point of encryption. See SMTP certificate errors and SMTP certificates.
Use webmail
Webmail is the quickest way to check that a mailbox works. From cPanel you can open the mailbox directly from the Email Accounts list. Most hosts also expose webmail at your domain with a path or port, commonly https://yourdomain.com/webmail or port 2096 for the secure version. Confirm what your host supports. Webmail clients bundled with cPanel are typically Roundcube and sometimes Horde or others, depending on the version.
If webmail login works but a mail client does not, the account is fine and the client configuration is wrong. If webmail also fails, the password, the quota or the account itself is the problem. Webmail can also manage filters and forwarders. Server-side filters are covered in Sieve rules.
Send from a website or script
Scripts on the same hosting account can send in two ways. They can hand the message to the local mail transfer agent, which is how PHP mail() works, or they can authenticate to an SMTP server with a mailbox login. The second approach is more predictable: the receiver sees an authenticated mailbox, and your configuration documents the sender explicitly. Example settings for a PHP application:
SMTP_HOST=mail.yourdomain.com
SMTP_PORT=587
SMTP_SECURE=tls
[email protected]
SMTP_PASS=use-a-secret-store
[email protected]Create a dedicated mailbox for the site. For framework and plugin details see PHPMailer, WordPress contact forms and mail scripts on a server.
Test the connection from a terminal
openssl s_client -connect mail.yourdomain.com:993 -quiet
openssl s_client -starttls smtp -connect mail.yourdomain.com:587 -crlfThe first command tests IMAP over TLS and the second tests SMTP submission. A greeting such as * OK for IMAP or 220 for SMTP shows the service answers. Then test authentication with swaks:
swaks --server mail.yourdomain.com --port 587 --tls \
--auth LOGIN --auth-user [email protected] --auth-password 'YOUR_PASSWORD' \
--from [email protected] --to [email protected]See testing an SMTP connection for interpreting the output.
Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| 535 Incorrect authentication data | Wrong password or username not the full address | Reset the password in Email Accounts. See 535 authentication failed |
| Relaying denied | Sending without authenticating | Turn on SMTP authentication. See relay access denied |
| Connection timed out | Port blocked by the local network or host | Try 587 and 465. Review timeouts and TLS errors |
| Certificate mismatch | Using a hostname the certificate does not cover | Use the server hostname from Connect Devices |
| Mailbox full | Quota reached | Increase the quota or clean the mailbox. See mailbox full bounces |
| Not receiving mail | MX records point elsewhere | Correct the MX records for the domain. See MX records |
| Mail goes to spam | Missing SPF, DKIM, DMARC | Enable them in cPanel Email Deliverability and verify |
| Hourly limit message | Host caps messages per hour | Reduce bursts or use a relay |
Email Deliverability in cPanel
Many cPanel versions include an Email Deliverability tool that checks DNS for SPF, DKIM and reverse DNS and offers to repair them. It is a convenient first stop. Use it, then confirm the result from outside with the SPF, DKIM and DMARC checker. DMARC usually has to be added manually. Where DNS is hosted elsewhere, publish the records at that provider; adding DNS records shows how.
Limits and appropriate use
Hosting providers cap how many messages a domain can send per hour to protect a shared server. The numbers vary by host and plan, so take them from your host's documentation. Mailbox sending is fine for conversation and a website's contact form. Bulk mail, large exports and bursts of order confirmations belong on a relay or API, where you also get delivery events and suppression. See SMTP versus API.
Quotas, forwarders and autoresponders
Each cPanel mailbox has a storage quota, and the account as a whole has a disk limit. When a mailbox is full it stops accepting new mail, and senders receive a bounce. Set a sensible quota, archive old mail with IMAP folders or an export, and monitor usage. Forwarders send a copy of incoming mail to another address; they are convenient, but forwarding to a large provider can cause SPF failures at the destination, since the forwarding server is not authorised by the original sender. See email forwarding explained.
Autoresponders are useful for absence messages, but configure them carefully to avoid loops and replies to mailing lists. The rules are in auto-replies and mail loops. Finally, remember that deleting a mailbox deletes its stored mail, so export anything you need first.
Security checklist
- Use unique strong passwords and delete mailboxes that are no longer needed.
- Prefer SSL/TLS ports and never disable certificate verification.
- Protect forms against bots so that a script cannot be used to relay spam.
- Keep cPanel and the CMS up to date.
- Review the mail logs and sent items for unusual volume.
Next steps
Create the mailbox, copy the Connect Devices values, test with swaks and verify DNS. After a first delivery, open the headers using reading email headers to confirm SPF and DKIM pass.
Hosting mail is not built for volume Use a dedicated relay on smtp.migosmtp.com for application and transactional email.
References and further reading
Frequently asked questions
What are the standard cPanel email settings?
Usually mail.yourdomain.com for both servers, IMAP 993 with SSL/TLS, POP3 995 with SSL/TLS and SMTP 465 with SSL/TLS or 587 with STARTTLS. Confirm them on the Connect Devices page.
How do I open webmail in cPanel?
Open Email Accounts and use the Check Email link, or browse to your domain webmail address, commonly yourdomain.com/webmail or the secure webmail port your host exposes.
Why does my client show a certificate warning?
The certificate may cover the server hostname but not mail.yourdomain.com. Connect using the hostname from Connect Devices or have a certificate issued for the mail subdomain.
What username do I use for cPanel email?
The complete email address, such as [email protected]. The short name alone usually fails.
Can I send newsletters from cPanel email?
It is meant for mailbox use and hosts cap hourly sending. Use a dedicated relay or API for newsletters and application mail.