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

Forward (redirect/nat) traffic with iptables

If you want to redirect/nat some traffic to IP 2.2.2.2 via IP 1.1.1.1, it simply can be done...

Centos 6 Webserver

In this article we will install some software that is useful on a webserver based on...

Security tips for Linux server

1. Use only  strong passwords for all accounts , especially for root. Always use a secure root...

nginx

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

Usefull linux tools

please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...