Email certificate warning: SSL for mail.example.com (IMAP, SMTP)
On this page
Mail apps (Outlook, Apple Mail, Thunderbird, phones) connect to the mail server with SSL/TLS and check its certificate. If the certificate is not valid for the server name you entered, the app warns or refuses to connect.
How mail certificates work here
- The mail server answers each domain with that domain's own certificate (SNI). A mail app set up with
mail.example.comsees a valid certificate formail.example.com. mail.example.comis included in your website's free certificate as soon as it points to this server (and your email is received here).- Without such a certificate, the mail server shows the certificate of the server's hostname.
Which server name to use
- Log in to the control panel (
https://your-server:2083). - Open Email Accounts (section Email).
- Look at Mail client settings. It shows the server name to use for Incoming (IMAP) (port 993), Incoming (POP3) (port 995) and Outgoing (SMTP) (port 465 or 587).
That name is mail.example.com when the mail server has a valid certificate for it, otherwise the server's hostname. Both work without warnings.
Fix a certificate warning
- In your mail app, change the incoming and outgoing server to the name shown in Mail client settings.
- If you want to use
mail.example.combut the page shows the hostname, check thatmailhas anArecord pointing to this server (in Zone Editor it is created by default). Then open SSL/TLS and click Renew now next to the domain. - Restart the mail app.
Good to know
- Webmail (port 2096) uses the server hostname's certificate, not the domain's.
- Mail certificates are updated automatically whenever a website's certificate is issued or renewed.
- An own certificate you install is used for mail too, if it covers
mail.example.com(or is a wildcard for the domain).
Common questions
My phone says "Cannot verify server identity".
The server name in the phone does not match the certificate. Use the exact name from Mail client settings.
Can I use my domain itself (example.com) as the mail server name?
Yes, if your website's certificate covers example.com and the domain points to this server. The mail server then answers with that certificate.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to get an SSL certificate for the server hostname
Secure the control panels, webmail and mail server with a free certificate for the server hostname, and fix the Self-signed warning on port 2087.
- Free SSL certificates (AutoSSL): how they work
Every website gets a free Let's Encrypt certificate automatically. Learn when it is issued, which names it covers, how renewal works and what it needs.
- SSL shows "Waiting for DNS": domain does not point to the server
The SSL/TLS page shows Waiting for DNS or "does not point to this server yet". Learn why the free certificate waits and how to fix your DNS records.