INSTALL INSTRUCTIONS This is basically my HOW-TO install sendmail on a Redhat system with POP before SMTP authorization. These instructions were tested and written using various Redhat 5.X to 7.X servers and these exact instructions are for RedHat 7.1. kevin@mcgrail.com Uninstall the default sendmail that comes with the OS, but save some of the important files: mkdir /tmp/sendmail-save cd /tmp/sendmail-save tar cvfz sendmail-save.tar.gz /etc/rc.d/init.d/sendmail /etc/sendmail.cf /etc/aliases /etc/mail/ /etc/pam.d/smtp /etc/sysconfig/sendmail /usr/lib/sasl/Sendmail.conf Build the Source: cd /usr/src/ tar zxvf //sendmail.8.11.3.tar.gz cd sendmail-8.11.3 cp sendmail.mc to /usr/src/sendmail-8.11.3/cf/cf cp popauth.m4 to /usr/src/sendmail-8.11.3/cf/hack #RH 7.X Change -- This fixes some non standard paths that Redhat uses cp Linux-OS /usr/src/sendmail-8.11.3/devtools/OS/Linux sh Build sh Build install cd cf/cf sh Build sendmail.cf Install the Configuration files / Make dirs / etc. mkdir /etc/mail mkdir /var/spool/mqueue chmod 755 /etc/mail /var/spool/mqueue chown root.mail /var/spool/mqueue cp sendmail.* /etc/mail/ #NOTE: Poprelayd-KAM requires DB_File which is an ext module of perl and may need to be manually installed. # i.e. 'cd /usr/src/perl-5.6.1/ext/DB_Files/; perl Makefile.PL; make; make install' makemap hash /etc/mail/popauth.db < /dev/null cp poprelayd-KAM.pl /usr/local/sbin/ chmod +x /usr/local/sbin/poprelayd-KAM.pl ###Add Poprelay Daemon to /etc/rc.d/rc.local (i.e. add a line that says this /usr/local/sbin/poprelayd-KAM.pl -d) ###run Poprelay delay /usr/local/sbin/poprelayd-KAM.pl -d #Restore Saved files and Move files to proper locations cd /tmp/sendmail-save tar zxvf sendmail-save.tar.gz mv /tmp/sendmail-save/etc/rc.d/init.d/sendmail /etc/rc.d/init.d cd /etc/rc3.d; ln -s ../init.d/sendmail S80sendmail cd /etc/rc0.d; ln -s ../init.d/sendmail K30sendmail mv /tmp/sendmail-save/etc/aliases /etc/mail/ mv /tmp/sendmail-save/etc/pam.d/smtp /etc/pam.d/ mv /tmp/sendmail-save/etc/sysconfig/sendmail /etc/sysconfig/ mv /tmp/sendmail-save/etc/mail/access /etc/mail mv /tmp/sendmail-save/etc/mail/domaintable /etc/mail mv /tmp/sendmail-save/etc/mail/local-host-names /etc/mail mv /tmp/sendmail-save/etc/mail/mailertable /etc/mail mv /tmp/sendmail-save/etc/mail/Makefile /etc/mail mv /tmp/sendmail-save/etc/mail/trusted-users /etc/mail mv /tmp/sendmail-save/etc/mail/virtusertable /etc/mail mv /tmp/sendmail-save/usr/lib/sasl/Sendmail.conf /usr/lib/sasl/ #Recreate db files /usr/bin/newaliases cd /etc/mail make all #Create smrsh dir and link procmail and vacation mkdir /usr/adm; mkdir /usr/adm/sm.bin; cd /usr/adm/sm.bin; ln -s /usr/bin/procmail procmail; ln -s /usr/bin/vacation vacation #START HER UP! /etc/rc.d/init.d/sendmail start