SSL/TLS Email Certificate Errors — How to Fix Them
Fix SSL and TLS certificate errors in Outlook, Thunderbird, Apple Mail, and mobile email clients. Includes certificate mismatch and expired certificate fixes.
SSL/TLS certificate errors in your email client mean the connection between your app and the mail server can't be verified as secure. These errors are common and usually fixable in a few steps.
Common SSL/TLS Email Errors
"The certificate is not from a trusted authority"
Cause: Your email client doesn't trust the SSL certificate on the mail server. This often happens with shared hosting where the mail server uses a certificate for the hosting company's domain, not yours.
Fix:
- Ask your hosting provider for the secure mail server hostname (e.g.
server1.hostingcompany.com) and use that as the incoming/outgoing server instead ofmail.yourdomain.com. - Or, if you trust the server, accept the certificate exception in your email client.
"Certificate hostname mismatch" / "SSL certificate name mismatch"
Cause: The server name in the SSL certificate doesn't match the server name you entered in your email client settings.
Fix: Change the incoming/outgoing server name to match what's on the certificate. Check your hosting panel for the correct server hostname.
"The SSL certificate has expired"
Cause: The server's SSL certificate has expired and hasn't been renewed.
Fix: Contact your email/hosting provider and ask them to renew the SSL certificate. If you manage your own server, renew the certificate through your SSL provider (Let's Encrypt is free).
"Cannot connect to the server" (after enabling SSL)
Cause: Wrong port number for the encryption type, or the firewall is blocking the SSL port.
Fix: Make sure you're using the correct port:
| Protocol | Correct Port | Encryption |
|---|---|---|
| IMAP | 993 | SSL/TLS |
| IMAP | 143 | STARTTLS (no SSL) |
| SMTP | 465 | SSL/TLS |
| SMTP | 587 | STARTTLS |
| POP3 | 995 | SSL/TLS |
How to Fix SSL Errors in Specific Clients
Outlook
- Go to File → Account Settings → Account Settings.
- Double-click your email account → More Settings → Advanced.
- Verify the ports and encryption settings match the table above.
Thunderbird
- Go to Account Settings → Server Settings.
- Check the Connection Security and Port settings.
- If you see a certificate error popup, click View Certificate to inspect it.