Installing Sendmail 8.14.4
Posted: Thu May 06, 2010 2:51 pm
1. Download the latest stable version:
2. Unzip & untar it to the working directory
3. Chang to the directory
4. Create and modify sendmail.cf
4.1. Make sure cf.m4 has "/etc/mail/cf" in there.
From:
To:
4.2. Compare the new sendmail.cf with the existing sendmail.cf and modify the new sendmail.cf accordingly (use diff to do the comparison).
NOTICE: it is now "dbm" instead of the old "hash".
4.3. Replace existing sendmail.cf with this new sendmail.cf.8.14.4.
5. Copy submit.cf to /etc/mail
Uncomment "MeToo" in submit.cf
6. Backup existing binary
7. Backup /etc/mail/statistics if the historic mailstats data wants to be kept.
otherwise, a new statistics file with 0 byte will replace the old one.
8. Install the new binary
9. Move statistics file back
10. Restart sendmail
Start testing sending and receiving email to validate the new mail server.
Code: Select all
wget ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.14.4.tar.gz
Code: Select all
cd /work/system_apps
gzcat path/sendmail.8.14.4.tar.gz | tar xf -
Code: Select all
cd /work/system_apps/sendmail-8.14.4/
sh Build
Code: Select all
cp -rp /work/system_apps/sendmail-8.14.4/cf/ /etc/mail/
From:
Code: Select all
`define(`_CF_DIR_', `../')',
Code: Select all
`define(`_CF_DIR_', `/etc/mail/cf/')',
Code: Select all
m4 /etc/mail/sendmail.mc.8.14 > /etc/mail/sendmail.cf.8.14.4
NOTICE: it is now "dbm" instead of the old "hash".
4.3. Replace existing sendmail.cf with this new sendmail.cf.8.14.4.
Code: Select all
cp -p sendmail.cf.8.14.4 sendmail.cf
Code: Select all
mv submit.cf submit.cf.8.14.3
cp /work/system_apps/sendmail-8.14.4/cf/cf/submit.cf /etc/mail
6. Backup existing binary
Code: Select all
cd /usr/lib
mv sendmail sendmail.8.14.3
otherwise, a new statistics file with 0 byte will replace the old one.
Code: Select all
mv statistics statistics_ori
Code: Select all
cd /work/system_apps/sendmail-8.14.4
make install
Code: Select all
mv statistics_ori statistics
Code: Select all
/etc/init.d/sendmail stop
/etc/init.d/sendmail start