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 > do > > 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 146.77.220.236 25 > Trying 146.77.220.236... > telnet: connect to address 164.77.228.236: 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 interface. You need to modify /etc/mail/sendmail.mc to say :- DAEMON_OPTIONS(`Port=smtp, Address=146.77.220.236, Name=MTA')dnl as well as the line that says 127.0.0.1 (if you want it listening on localhost) Then run 'make' in the /etc/mail directory and restart sendmail. Regards Lance > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > uklinux.net - The ISP of choice for the discerning Linux user.