# # 31-Dec-02 amo Install Sendmail-8.12.7 # # # # See what/which MTA version you are currently running # ------------------------------------------ telnet localhost 25 quit # # # # cd /usr/local/src # wget http://www.sendmail.org/ftp/sendmail.8.12.7.tar.Z # # # Verify the md5sum of the file # ------------------------------ # md5sum sendmail.8.12.7.tar.gz # # Desired result # 447c93b8ad6dad717a917aa7db9917ff sendmail.8.12.7.tar.gz # b6f4325f788d56bb3c20bfdd4ba65191 sendmail.8.12.7.tar.gz.sig # b956a8d772c31d65c15c4dbab585b9a5 sendmail.8.12.7.tar.Z # 7a9c80bc097ccce1f8f500d7185db9bc sendmail.8.12.7.tar.Z.sig # # # tar zxvfp sendmail.8.12.7.tar.gz # # cd sendmail.8.12.7 # # # Build sendmail-8.12.7 # ---------------------- sh Build # # # # Now Make cf files w/ AntiSpam ( RBL checks ) enabled # ----------------- cd cf/cf wget http://www.Linux-Sec.net/Mail/etc.mail/sendmail.rbl.mc # wget http://www.Linux-Sec.net/Mail/etc.mail/sendmail.rbl.cf # cp sendmail.rbl.mc config.mc sh Build config.cf # -- should have created config.cf # # # Add aditional antispam features ( check_local ) stuff later # ----------------------------------------------------------- # http://www.Linux-Sec.net/Mail/etc.mail/check_local.txt # # # Save old copy first # ------------------- # ** ------------- ** # ** Backup first ** # ** ------------- ** # cd /usr/local/src # tar -zcvf sendmail_backup.previous.tgz /etc/sendmail* /usr/sbin/*mail* /usr/bin/*mail* /etc/mail* # # cp -p /etc/mail/sendmail.mc /etc/mail/sendmail.b4.2002Dec31.mc cp -p /etc/mail/sendmail.cf /etc/mail/sendmail.b4.2002Dec31.cf # cp -p /usr/sbin/sendmail /usr/sbin/sendmail.b4.2002Dec31 # # # # Test sendmail-8.12.7 before Installing and Replacing the current sendmail binaries # ----------------------------------------------------------------------------------- # echo xxx | .../sendmail ... [ options ] ... # # # Now install new sendmail # ------------------------ # -- will install its new updates into various directories # -- including /etc/mail/sendmail.{mc,cf}, /usr/sbin/sendmail # sh Build install # # mail.local # rmail # # # Now build the new sendmail.cf files # ------------------------------------ cd cf/cf cp generic-linux.mc # sh Build config.cf # # # # Install Sendmail w/ antispam features # ------------------------------------- # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/antispam.rbl.uhowto.txt # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/antispam.check_local.uhowto.txt # # # manually install your new sendmail config files # cp -p config.mc /etc/mail/sendmail.mc cp -p config.cf /etc/mail/sendmail.cf # # # Check your Permissions and smrsh # --------------------------------- # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/permissions.txt # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/smrsh.txt # # # More Admin Stuff to do # ----------------------- # cd /etc/mail make # # /etc/rc.d/init.d/sendmail stop /etc/rc.d/init.d/sendmail start # # # Fix any errrors shown # ---------------------- tail -100 /var/log/maillog # # telnet localhost 25 quit # # # make sure local mail delivery works # ------------------------------------ mail -v -s test root < /dev/null # Null message body; hope that's ok # root... Connecting to local... # root... Sent # mail -v -s test info@your_domain.com < /dev/null # # # # End of file