RedHatSendmailInstall

How to install Sendmail under Red Hat

Sendmail is the great-grandfather of all email programs under UNIX. This is just a quick note to recap how to install it under Red Hat (just in case it's not installed by default, as it should be where I work).

So there you go, installation fails under Red Hat, with the message:

Error: Required dependencies:
        /usr/sbin/saslauthd is required for sendmail-8.13.8-8.el5.x86_64

Where the heck is this /usr/sbin/saslauthd? Test on another machine with:

# rpm -qa --filesbypkg | grep -i saslauthd
cyrus-sasl                                  /usr/sbin/saslauthd   

OK, so you need to install the package cyrus-sasl. So far, so good. Except that it does not want to be installed on the local machine, and complains cyrus-sasl-lib is not the correct version (while both version numbers are identical).

So, force the installation, with:

root@galactus:~/install.rpm#  rpm --install --force --nodeps -vv ./cyrus-sasl-2.1.22-5.el5.x86_64.rpm

Once cyrus-sasl has been installed, proceed with the installation of Sendmail with:

root@galactus:~/install.rpm#  rpm --install -vv sendmail-8.13.8-8.el5.x86_64.rpm sendmail-cf-8.13.8-8.el5.x86_64.rpm sendmail-doc-8.13.8-8.el5.x86_64.rpm

And Sendmail should now be installed on your Red Hat machine. The most astute readers will have noticed the machine itself is a Red Hat Enterprise Linux, version 5.

Hope this helps!