Solved Exim started but no response

gate2vn

Verified User
Joined
Nov 9, 2004
Messages
500
Location
Oslo
I just rebuilt exim and exim_conf. From the mainlog, it shows exim started:
exim 4.97.1 daemon started: pid=110824, -q1h, listening for SMTPS on port 25 (IPv4) port 587 (IPv4) port 465 (IPv4)
But no response at all. Cannot send out email with normal accounts. But LFD warning, such as login root is still sent out.
Tried to connect to 25, 587 and 465 ports, all end up with error in the mainlog:
(SSL_accept): error:0A000126:SSL routines::unexpected eof while reading
Tried to rebuild exim and exim.conf again, restore exim.pl, exim.conf from backup. The same error.

Any idea to fix it?
Thanks.
 
Tried to connect to 25, 587 and 465 ports, all end up with error in the mainlog:
I presume via your mail program since you only get an SSL EOL error?

What happens if you telnet to localhost port 25 so from the server itself.
Which domain name or hostname is this?

Are you using anything special? WHCMS, Nginx, other external tools like immunify?
 
No, nothing special. This server is for email only, no other software than the ones installed by DA. Running on Almalinux 9.
Telnet localhost seems to be OK
# telnet localhost 465
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Can login to webmail, but cannot send. Error from Roundcube is
SMTP Error: Connection failed: (Code: -1)
 
SendSMTPCommand: Timeout waiting for response after 15 seconds.

LookupServer 25083ms
 
And in the server log, it's showing exactly above error:
TLS error on connection from keeper-us-east-1d.mxtoolbox.com [18.209.86.113] (SSL_accept): error:0A000126:SSL routines::unexpected eof while reading
 
Found the reason.

tls_on_connect_ports was configured on all ports 25, 587 and 465. Need to delete 25 and 587, only keep 465. Then it's working.
 
TLS should also be able to work on 587.

Out of curiosity... where did you configure that ports to be used?
 
In that case you can leave that line out of there. Because there is already the line tls_on_connect_ports=465 in the default exim.variables.conf file.
 
Back
Top