Page 1 of 1

Installing Sendmail 8.14.6

Posted: Tue Mar 19, 2013 6:40 pm
by cah
1. Download the latest stable version:

Code: Select all

wget ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.14.6.tar.gz
2. Unzip & untar it to the working directory

Code: Select all

cd /work/system_apps
gzcat sendmail.8.14.6.tar.gz | tar xf -
3. Chang to the directory

Code: Select all

cd /work/system_apps/sendmail-8.14.6/
sh Build (or make)
4. Archive /etc/mail/cf directory

Code: Select all

mv /etc/mail/cf /etc/mail/cf.8.14.5
5. Create and modify sendmail.cf

Code: Select all

cp -rp /work/system_apps/sendmail-8.14.6/cf/ /etc/mail/
5.1. Make sure /etc/mail/cf/m4/cf.m4 has "/etc/mail/cf" in there.

From:

Code: Select all

`define(`_CF_DIR_', `../')',
To:

Code: Select all

`define(`_CF_DIR_', `/etc/mail/cf/')',

Code: Select all

m4 /etc/mail/sendmail.mc_AUTH > /etc/mail/sendmail.cf.8.14.6
5.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".

5.3. Replace existing sendmail.cf with this new sendmail.cf.8.14.6.

Code: Select all

cp -p sendmail.cf.8.14.6 sendmail.cf
6. Copy submit.cf to /etc/mail

Code: Select all

mv submit.cf submit.cf.8.14.5
cp /work/system_apps/sendmail-8.14.6/cf/cf/submit.cf /etc/mail
Uncomment "MeToo" in submit.cf

7. Backup existing binary

Code: Select all

cd /usr/lib
mv sendmail sendmail.8.14.5_AUTH
8. 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.

Code: Select all

mv /etc/mail/statistics /etc/mail/statistics_ori
9. Install the new binary

Code: Select all

cd /work/system_apps/sendmail-8.14.6
make install
10. Move statistics file back

Code: Select all

mv /etc/mail/statistics_ori /etc/mail/statistics
11. Restart sendmail

Code: Select all

/etc/init.d/sendmail stop
/etc/init.d/sendmail start
Start testing sending and receiving email to validate the new mail server.

Making new submit.cf file

Posted: Fri Nov 08, 2013 2:11 pm
by cah
1. Go to /etc/mail/cf/cf

Code: Select all

cd /etc/mail/cf/cf
2. Modify submit.mc
3. Make new submit.cf

Code: Select all

cahtoh02:/etc/mail/cf/cf%make submit.cf
rm -f submit.cf
m4 ../m4/cf.m4 submit.mc > submit.cf || ( rm -f submit.cf && exit 1 )
echo "### submit.mc ###" >>submit.cf
sed -e 's/^/# /' submit.mc >>submit.cf
chmod 444 submit.cf