Linux‎ > ‎Mail‎ > ‎


This guide has been around for about 5 years now and the last time it was updated previous to this update was in 2000. A lot has changed in the Linux world since then and I don't feel that this guide is really needed anymore.

The simplest way to set up Sendmail is to grab the sendmail package (rpm, deb) that came with your Linux installation and install it that way. One of the good things doing it this way is most distributions now have an automated update type of service so if someone finds a bug in sendmail your system can update to the latest version without having to download and recompile the source etc.

If you are running Sendmail on Red Hat Linux you will have to edit the /etc/mail/ file so that you can send and receive mail outside of your local network. Change the following line:

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

to this:

dnl # DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

Then run the following to regenerate your configuration file:

m4 /etc/mail/ > /etc/

Dont forget to add the following line to your /etc/hosts.allow file:

sendmail: ALL

If you are interested in hiding your Sendmail version number from people who telnet to port 25, open up your file with a text editor and change this:

O SmtpGreetingMessage=$j Sendmail $v/$Z; $b

to this:

O SmtpGreetingMessage=$j $b

And then restart sendmail.