1

Topic: TLS vs SSL

Is there any big difference between:
POP3 service: port 110 over TLS vs port 995 with SSL.
IMAP service: port 143 over TLS vs port 993 with SSL.

Why TLS is most recommended?

So, since TLS is the most recommended, how can I leave POP3 and IMAP services working only in TLS?



==== TRANSLATED FROM ORIGINAL TEXT ====
Há alguma grande diferença entre:
POP3 service: port 110 over TLS vs port 995 with SSL.
IMAP service: port 143 over TLS vs port 993 with SSL.

Porque TLS é mais recomendado?

Então, já que TLS é o mais recomendado, como posso deixar os serviços POP3 e IMAP trabalhando apenas em TLS?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: TLS vs SSL

TLS is newer and more secure. You should generally disable SSL including SSLv3 and only allow TLS connections. Whether you allow TLSv1 up to TLSv1.2 or only the latter depends on your use case.

Do not open Port 995 and 993 in iptables or whatever firewall you use, therefor the ports will be blocked even if you misconfigured something. Since I am not allowing POP3 but only IMAP I have only Port 143 open and Port 587 for SMTP.

3

Re: TLS vs SSL

Both TLS and SSL are secure, the difference is how they work.

*) With SSL, the port number you open can be used for secure connection, and secure connection only.
*) With TLS, the port number can be used for both secure and insecure connections. Usually client connects to port first, then issue command LIKE 'STARTTLS' to establish secure connection. If no such command issued, the connection is plain and insecure. This way we don't need 2 port numbers for insecure + secure connections.

Take SMTP and submission protocol for example. Let's say your server supports sending email through both insecure connection (port 25 without TLS) and secure connection (port 25 with TLS).

Here's how to send email through port 25 without TLS:

ehlo test.com
AUTH PLAIN AHBvc3RtYXN0ZXJAYS5pbwB3d3c=
mail FROM:<postmaster@a.io>
rcpt TO:<postmaster@a.io>
data
[...detailed message here...]
.

And here's secure connection (port 587 with TLS):

ehlo test.com
STARTTLS
ehlo test.com
AUTH PLAIN AHBvc3RtYXN0ZXJAYS5pbwB3d3c=
mail FROM:<postmaster@a.io>
rcpt TO:<postmaster@a.io>
data
[...detailed message here...]
.

4 (edited by gilvancn 2017-10-15 21:39:25)

Re: TLS vs SSL

Okay, got it, guys.
The firewall is preconfigured by iRedMail.
So, who controls the opening/closing of the ports (in CentOS 7), fail2ban or firewalld?

5

Re: TLS vs SSL

firewalld.