The default config file in RH9 instructs sendmail to listen only on the
loopback interface.  To change this modify /etc/mail/sendmail.cf and
then restart sendmail.  e.g. service sendmail restart.

Both methods below will modify sendmail.cf to listen on ALL interfaces. 
Modifying it to listen to a specific interface is left a an exercise for
the reader.


1) Modify sendmail.cf directly.

Find the line:
   O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
Change it to read
   O DaemonPortOptions=Port=smtp, Name=MTA


2) Modify sendmail.mc, then generate a new sendmail.cf with m4

Find the section in /etc/mail/sendmail.mc that reads:

dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback
address
dnl # 127.0.0.1 and not on any other network devices. Remove the
loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Modify the mc file as specified in the comments and generate a new
sendmail.cf.  (There are plenty of docs out there on how to do this.)


  - Paul


On Fri, 2003-09-19 at 14:32, Peramslist wrote:
> Hi,
>  
> I've installed Sendmail 8.12.9 on Redhat Linux 9. But since I'm quite
> new to the sendmail and knowing that most of you gurus use sendmail, I
> am posting this question. I did a search on the web for this but no
> link pointed to what I'm looking for.
> I'd appreciate if you can let me know how I can specify sendmail to
> use interface eth0.
>  
> Regards,
>  
> Peram


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to