Hello Varada,
Port 26 is not opened by default on cPanel machines unless the following has been set in WHM > Service Manager:
exim on another port
Allow exim to listen on port
Here you would have had to place 26 into the field and then click "Save" to change the setting. Now, port 587 is also another alternate port you could add in that area rather than 26, since many ISPs block port 26 as well (but do not block 587).
465 is the TLS on connect port, so that one is opened by default. It's a secure port for exim actually.
You can see which ports are opened for mail and being used by running the following (I've used port 465 as the example):
Code:
[root@itchy:~] # egrep 465 /etc/exim.conf
daemon_smtp_ports = 25 : 465
tls_on_connect_ports = 465
[root@itchy:~] # lsof -i :465
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
exim 16160 mailnull 5u IPv6 198945326 TCP *:smtps (LISTEN)
exim 16160 mailnull 6u IPv4 198945327 TCP *:smtps (LISTEN)
If you run the same commands to check port 26 and/or 587, you will not receive a return unless you've set one of those as the alternate exim port in WHM's Service Manager as previously mentioned.
Thanks!