• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

There was an error sending your message: Failed to connect to localhost:25

R

Ronaldve

Guest
Just out of nothing qmail stopped working right.

When I want to send an email trough webmail I get this error:
There was an error sending your message: Failed to connect to localhost:25 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]

Restarting qmail does not seem to work.

Who has a solution?
I've not changed anything to the server.
 
I've rebooted the machine. I can send email trough webmail now, but with outlook it does not work.

When sending a test mail I get (freely translated from Dutch) "The submitted server has been found, but there is no reply from the server received".
 
Confirm that xinetd is running and binding to port 25:

# /sbin/service xinetd status
xinetd (pid 6181) is running...

Confirm that port 25 is bound by xinetd:

# netstat -tlnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 28939/xinetd


If all is well above, could be your firewall on the server or believe it or not your workstation.
 
I can send email with oulook again, somehow it took some time to start working with outlook.
Although I can send email, it's way slower than before.
 
Back
Top