Cpanel 86 Exim uses port 25 for outbound I need to change it to 587

anasnaguib

Registered
Mar 22, 2020
1
0
1
10th of Ramadan
cPanel Access Level
Root Administrator
Cpanel is trying to send email using Exim4 but can not connect to other hosts using port 25 as they support 587.

I checked the OS firewall everything is open, and the configuration is OK, also we tested using telnet client from the server and other servers almost all other smtp uses 587 not 25.

I want to change Exim configuration to use 587 for the outbound connection instead of port 25.

Please advice.
the following is example of the output:
---------------------------------------------
LOG: MAIN
cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1jFjiT-0004VM-VY
delivering 1jFjiT-0004VM-VY
LOG: MAIN
Sender identification U=user D=domain.com S=[email protected]
Connecting to example.net [184.154.52.186]:25 ... failed: Connection timed out (timeout=5m)
LOG: MAIN
H=example.net [184.154.52.186] Connection timed out
LOG: MAIN
== [email protected] R=dkim_lookuphost T=dkim_remote_smtp defer (110): Connection timed out
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Exim by default listens on 587, allowing mail clients to connect over this port. The issue you're experiencing occurs when your provider closes port 25 but exim is not listening on an alternate port. You can change this by going to WHM>>Service Configuration>>Service Manager and select Exim Mail Server (on another port) and allow port 26.