On Thu, May 17, 2001, Evgeny Popov wrote about "RH71 and Sendmail":
> Sendmail on freshly installed RH71 (2 machines) does not respond to
> connections:
> 
> telnet MYIP 25 - Unable connect to host: connection refused.
> 
> telnet 127.0.0.1 25 - getting a prompt.
> 
> I don't have either ipchains/iptables active nor start sendmail through
> xinetd.
> 
> netstat -nl:
> tcp 0 0 127.0.0.1:25 0.0.0.0* LISTEN

As you can see from the above line, sendmail is listening only on the
localhost (127.0.0.1) interface - it will not accept any connections
from non-localhost Internet addresses.

This doesn't have anything to do with firewall, but rather a sendmail
configuration option. Redhat decided (finally) that its default configuration
should be made more secure, so by default sendmail only accepts connections.

BTW, quoting 
http://www.redhat.com/support/manuals/RHL-7.1-Manual/ref-guide/s1-sendmail-changes.html,

        "Do not use Linuxconf to configure Sendmail! The Linuxconf module
         mailconf, designed to make editing /etc/sendmail.cf easier, is
         broken and contains out-of-date information about rule sets used
         in Sendmail configuration."

(btw, I found this page by searching "7.1 sendmail" on redhat.com.)

See the above site on how to configure sendmail. The line causing this
problem is the following section in /etc/mail/sendmail.mc:

  dnl This changes sendmail to only listen on the loopback device 127.0.0.1
  dnl and not on any other network devices. Comment this out if you want
  dnl to accept email over the network.
  DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

after commenting out (with "dnl") this line, run
        m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

-- 
Nadav Har'El                        |     Thursday, May 17 2001, 24 Iyyar 5761
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |May you live as long as you want - and
http://nadav.harel.org.il           |never want as long as you live.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to