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

Fail2ban

Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the...

Create OpenVPN client

The following instructions are for those VPSGet customers who have installed OpenVPN...

!!Actual Linux KB located : wiki.vpsget.com ***

Linux kb/wiki moved to opur wiki pages and all new articled publiched here:...

FTP

 First of all make sure you have the ports 20-21 opened in your firewall. If not, you...

OpenVPN Access Server

§  Install OpenVPN Access Server Be sure that you are using a clean system and no...