On Fri, 14 Jun 2002, William Lanning wrote:

> >>> On Thu, 13 Jun 2002, Alex Meaden ([EMAIL PROTECTED]) spoke:
> > ...to Red Hat 7.3. ...cannot get the SMTP server (Sendmail) working.
> > I have modified /etc/mail/access to allow relaying from the local
> > network, and have updated access.db. I cannot however connect to port 25
> > from other machines on the network - but I can locally. ...I test it
> > using telnet to port 25, which should at least give the Sendmail banner
> > even if relaying is blocked.
> 
> Alex, sendmail is listening on localhost only.  If you really want the box
> to listen for network connections, I suggest editing the
> '/etc/sendmail.cf' file.
> 
> Look specifically for the line that reads...
> O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
> 
> And change it to:
> O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA
> 
> Restart sendmail and your done.  Alternatively, you could force sendmail
> to listen only on a specific IP address (instead of all 0s), just make
> sure the IP you specify is really bound to your NIC. ;)
> 
> Cheers,
> William

Do NOT edit the sendmail.cf file.  The correct way to do this is to make 
all changes in the /etc/mail/sendmail.mc file and then run the M4 macro.  
The instructions are at the top of this file.  

You will need to comment out (use dnl at the beginning of the lines) the 
lines near the bottom of the file that are stopping sendmail from 
listening for only the local host.  Read the comments they're self 
explanatory.  Once the M4 macro is run you need to restart sendmail by 
doing a

service sendmail restart

There are many reasons why you shouldn't make changes directly in 
sendmail.cf.  Some changes are next to impossible to make manually, 
sendmail.cf may not work across releases of sendmail, all changes are made 
in one place and not lost, etc...

Gerry



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to