Sendmail [25: Connection refused] fix

If you can't receive email from the outside and got next error:

 (Delivery Status Notification [(0) www.domainname.com. [1.1.1.1]:25: Connection refused]).

You should check the iptables , is port listening .

if you can telnet on port 25 from localhost and can't from remote you need to modify your sendmail.cf file. Just comment the next line:

# O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

 

Save config and restart sendmail.

 

 

Was this answer helpful?

 Print this Article

Also Read

Autorun in Linux

To set a script to start at boot in CentOS, add it into /etc/rc3.d/S99local. For example:...

Iptables

Iptables is a Linux based packet filtering firewall. It is a service (daemon)...

Backing up VPS from the inside

This guide will show you how to backup your vsp/container "from the inside vps". First of...

nginx

How to install nginx on Centos Add nginx repo first. To add it, create the file...

Squid+Privoxy+Tor

How to install squid with tor [NOTE: According to vpsget.com AUP/TOS you can use private proxy...