Linux‎ > ‎Mail‎ > ‎

Sendmail

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/sendmail.mc file so that you can send and receive mail outside of your local network. Change the following line:

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

to this:

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

Then run the following to regenerate your configuration file:

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

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 sendmail.cf 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.

http://www.linuxhelp.net/guides/sendmail/

Comments