[CentOS] Help with sendmail ( or Iptables ... or DNS)
lance at uklinux.net
Fri Oct 6 13:59:27 UTC 2006
On Fri, 6 Oct 2006, Departamento de Informatica wrote:
> Hi, i have a CentOS 4.4 running sendmail, with two network interfaces
> (eth0 -> Internet , and eth1 Local Network), from the terminal (SSH) i
> telnet 127.0.0.1 25
> and it connects to sendmail (i think so), but
> from another server (external, and so from the same SSH terminal) i
> try to connect to the Internet IP
> telnet 220.127.116.11 25
> Trying 18.104.22.168...
> telnet: connect to address 22.214.171.124: Connection refused
> telnet: Unable to connect to remote host: Connection refused
> so i was thinking "it could be the fu...ing IPTABLES"
> from terminal execute
> iptables -L| grep smtp
> and the result is:
> ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
> so , if the sendmail service is up, what could be happen??
sendmail by default - for security - doesnt listen on the external
You need to modify /etc/mail/sendmail.mc to say :-
DAEMON_OPTIONS(`Port=smtp, Address=126.96.36.199, Name=MTA')dnl
as well as the line that says 127.0.0.1 (if you want it listening on
Then run 'make' in the /etc/mail directory and restart sendmail.
> CentOS mailing list
> CentOS at centos.org
The ISP of choice for the discerning Linux user.
More information about the CentOS