Departamento de Informatica
2006-Oct-06 13:50 UTC
[CentOS] Help with sendmail ( or Iptables ... or DNS)
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??
Ralph Angenendt
2006-Oct-06 13:54 UTC
[CentOS] Help with sendmail ( or Iptables ... or DNS)
Departamento de Informatica wrote:> so , if the sendmail service is up, what could be happen??Default sendmail installs only listen on 127.0.0.1:25. See sendmail.mc. Ralph -- Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible Bayerischer Rundfunk...80300 M?nchen | ....to right-justify any idea, even one Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <lists.centos.org/pipermail/centos/attachments/20061006/22674386/attachment-0002.sig>
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 > lists.centos.org/mailman/listinfo/centos >uklinux.net - The ISP of choice for the discerning Linux user.