Hello everyone!
I have the following problem that started after the server went down due to a power outage.
Now exim is scanning ports 25, 465, 587 but I can’t send or receive emails.
Checking if port 25 is open, at dnschecker shows that port 25 is closed and all other ports such as 80, 21, 465, 587 are ok.
I spoke to the provider about the port and it is open at the provider.
I configured another machine for testing and confirmed that port 25 is in fact open at the provider.
see log trying to send
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo H=xxxx-xx-xx.mail.protection.outlook.com [xx.xx.xx.xx] Connection refused
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo H=xxxx-xx-xx.mail.protection.outlook.com [xx.xx.xx.xx] Connection refused
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo H=xxxx-xx-xx.mail.protection.outlook.com [xx.xx.xx.xx] Connection refused
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo H=xxxx-xx-xx.mail.protection.outlook.com [xx.xx.xx.xx] Connection refused
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo == [email protected] R=dnslookup T=remote_smtp defer (111): Connection refused
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo == [email protected] R=dnslookup T=remote_smtp defer (111): Connection refused
2025-06-19 05:48:02 1uRz7Y-0009EI-Fo == [email protected] R=dnslookup T=remote_smtp defer (111): Connection refused
Listening ports
root@server:~# lsof -Pn +c0 -i:25,465,587 -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
exim4 196812 Debian-exim 4u IPv4 584574 0t0 TCP *:465 (LISTEN)
exim4 196812 Debian-exim 5u IPv4 584575 0t0 TCP *:587 (LISTEN)
exim4 196812 Debian-exim 6u IPv4 584576 0t0 TCP *:25 (LISTEN)
And more interesting is that even on the intranet testing with telnet on another server on the same network as the connection refused on port 25 and port 465 shows connected.
root@cloud:~# telnet 172.20.168.57 25
Trying 172.20.168.57...
telnet: Unable to connect to remote host: Connection refused
root@cloud:~# telnet 172.20.168.57 465
Trying 172.20.168.57...
Connected to 172.20.168.57.
Escape character is '^]'.
quit
Connection closed by foreign host.
Even with the firewall stopped, I can’t connect to port 25 even though I’m on the same intranet.
The site is accessible externally and locally, I can ping it, but the email has this problem.
Has anyone ever encountered this type of problem?