πŸ”’
SSL & TLS

Setting Up SSL for Email: SMTP, IMAP and POP3

πŸ“… 12 October 2026 ✏️ 12 October 2026 ⏱ 5 min leestijd

Learn how to correctly set up SSL/TLS for SMTP, IMAP and POP3, with the right ports and settings for secure, encrypted email traffic.

Without SSL, your email program sends and receives messages and passwords unencrypted over the internet. By correctly configuring SSL/TLS on the SMTP, IMAP, and POP3 connections of your mail account, all traffic is encrypted. In this article you’ll learn which ports you need, how to set them up, and what to do if it doesn’t work right away.

What is SSL/TLS for email

SSL and TLS are encryption protocols that ensure the connection between your mail program and the mail server cannot easily be intercepted. TLS is the modern successor to SSL, but mail clients often still use the umbrella term SSL, even when TLS is actually being used. There are two ways encryption is established: via SSL/TLS, where the connection is set up encrypted from the start, and via STARTTLS, where an unencrypted connection is initiated first and then upgraded to an encrypted connection. Both methods are secure as long as you use the correct port associated with the method.

Without encryption, SMTP, IMAP, and POP3 send everything in plain text by default, including your username and password. This is a risk on any network, but especially on public Wi-Fi. That’s why we recommend always using SSL or STARTTLS for every mail account, never an unencrypted connection.

Mail programSSL/TLSencryptionMail server

The right ports for SMTP, IMAP and POP3

Each protocol has standard ports for encrypted and unencrypted connections. Always use the encrypted variant:

  • SMTP (sending): port 465 for SSL/TLS, or port 587 with STARTTLS. Port 25 is unencrypted and is blocked by many providers for outgoing mail.
  • IMAP (receiving, synchronizes with the server): port 993 for SSL/TLS. Port 143 is unencrypted or uses STARTTLS.
  • POP3 (receiving, downloads locally): port 995 for SSL/TLS. Port 110 is unencrypted or uses STARTTLS.

For the mail server hostname, you usually use mail.yourdomain.com, but always check this in your hosting panel, as some providers use different server names.

πŸ’‘ Tip: Choose IMAP over POP3 wherever possible. With IMAP, your mail stays synchronized across all your devices, while POP3 often removes messages from the server once they’ve been downloaded.

Setting up SSL in your mail program

The exact steps differ per mail program, but the principle is the same in every program.

1

Open the account settings

Go to the server settings of your mail account in Outlook, Apple Mail, Thunderbird, or your mobile mail app.

2

Enter the incoming server

Enter the IMAP or POP3 server with port 993 (IMAP) or 995 (POP3) and select SSL/TLS as the security type.

3

Enter the outgoing server

Enter the SMTP server with port 465 (SSL/TLS) or 587 (STARTTLS) and make sure authentication is enabled with your full email address and password.

4

Test the connection

Send a test email to yourself. If it arrives and you can also receive mail, the encrypted connection has been set up correctly.

At Tandata, you can find the exact mail server settings, including ports, clearly listed in Plesk under your mail account. If you’re unsure about the correct settings for your domain, check the knowledge base or contact support.

Solving common problems

If you can’t set up an encrypted connection, first check the following points:

  • Wrong port or security type: a mismatch between port and security type (for example, port 465 with STARTTLS instead of SSL/TLS) almost always results in an error message.
  • Expired or incorrect SSL certificate: if the mail server’s certificate is not valid for the server name used, your mail program will show a warning. In that case, use exactly the server name matching the certificate.
  • Firewall or antivirus blocking the connection: some security software scans mail traffic and blocks encrypted ports as a result. Check your firewall or antivirus settings.
  • Outdated mail client: older mail programs sometimes no longer support modern TLS versions. Update your software to the latest version.

If the problem persists, check whether the domain is pointed correctly and whether the mail service is active. This is also relevant if you’ve recently switched to a new hosting provider, since DNS changes can take some time to propagate everywhere.

Frequently Asked Questions

Is SSL the same as TLS?

Not quite. TLS is the successor to SSL and is used today, but the name SSL is still often used in mail programs as an umbrella term for encrypted connections.

Which port do I use for sending email?

For SMTP you use port 465 with SSL/TLS or port 587 with STARTTLS. Port 25 is unencrypted and is often blocked by internet providers.

Why do I get a certificate warning for my mail server?

This usually happens when the server name in your mail program doesn’t match the name for which the SSL certificate was issued. Use the exact mail server name from your hosting panel.

Can I use both IMAP and POP3?

Technically this is possible, but it’s not recommended, as it can lead to confusion about which messages have already been downloaded or deleted. Choose one protocol, preferably IMAP.

Does SSL for email also work on mobile phones?

Yes, all modern mail apps on smartphones support SSL/TLS. Enter the same ports and security type as you would for a desktop mail program.

Conclusion

Setting up SSL/TLS for SMTP, IMAP, and POP3 is essential for securing your email traffic. Always use the encrypted ports (465 or 587 for SMTP, 993 for IMAP, 995 for POP3) and, if issues arise, first check the port, security type, and server name. With correctly configured business email and a valid SSL certificate on your domain name, you’ll always send and receive mail securely.

View web hosting β†’

Was dit artikel nuttig?