Sendmail listening on localhost.localdomain
daniel at cit-linux.net
Fri Aug 16 21:09:01 EST 2002
Very simple procedure,
Go and edit /etc/mail/sendmail.mc in your favourite text editor (as root
Find the line that reads:
Now you have two options here. You can replace 127.0.0.1 with the IP
address you wish to use or simply place dnl at the front of the line
which will make sendmail listen on all available network interfaces. e.g:
dnl DAEMON_OPTIONS('Port=smtp,Addr=127.0.0.1, Name=MTA')
Once this is done save the exit the editor and save the file. Then run
the following command as root:
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
Restart sendmail and there you are. For love of tux if this thing is
going to be live on the net make sure that you are not an open relay. My
experince with 7.3 is the default config will only relay from the local
machine by default which is a good thing but make sure it's tested
before making it live.
Harris Ruan wrote:
> I have sendmail running on Redhat 7.3 but it seems that it only listens
> on localhost.locadomain.
> netstat -a | grep smtp
> tcp 0 0 localhost.localdom:smtp *:* LISTEN
> So I can do "telnet localhost 25"
> but not "telnet [ip address] 25"
> Any ideas to make sendmail to listen on my ip?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 260 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20020816/f575c14b/attachment.bin
More information about the linux