Sendmail listening on localhost.localdomain

Daniel McNamara daniel at
Fri Aug 16 21:09:01 EST 2002

Very simple procedure,

Go and edit /etc/mail/ in your favourite text editor (as root 
of course)

Find the line that reads:

DAEMON_OPTIONS('Port=smtp,Addr=, Name=MTA')

Now you have two options here. You can replace 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=, 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/ > /etc/

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
Type: application/pgp-signature
Size: 260 bytes
Desc: not available
Url :

More information about the linux mailing list