Install and Configure Sendmail 8.15.2 due to Solaris 11.2 update messed-up
Posted: Mon Jul 06, 2015 8:04 pm
After upgrading to Solaris 11.2, sendmail stopped working.
I found out Solaris 11.2 installed its own version of sendmail 11.4.9+Sun that does not work with previous configuration.
I had to re-compile the latest version of sendmail (8.15.2)\, came out 07/03/2015) and started my testing.
Sendmail rebuild
This needs several steps to get it to work:
1. Download the latest stable version:
2. Unzip & untar it to the working directory
3. Create a "site.config.m4" file in "<sendmail_src>/devtools/Site" and add the following entries(may or may not need the bottom 2 lines, I don't need them on cahtoh01). This is to add SASL parameter.
Or, just copy from old version:
4. Chang to the directory and build sendmail
5. Archive /etc/mail/cf directory (Solaris 11.2 update messed up the directory)
6. Create and modify sendmail.cf
6.1. Make sure /etc/mail/cf/m4/cf.m4 has "/etc/mail/cf" in there.
From:
To:
6.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".
6.3. Replace existing sendmail.cf with this new sendmail.cf.8.15.2.
7. Copy submit.cf to /etc/mail
Uncomment "MeToo" in submit.cf
8. Backup existing binary
9. 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.
10. Install the new binary
11. Move statistics file back
12. Restart sendmail
Start testing sending and receiving email to validate the new mail server.
I found out Solaris 11.2 installed its own version of sendmail 11.4.9+Sun that does not work with previous configuration.
I had to re-compile the latest version of sendmail (8.15.2)\, came out 07/03/2015) and started my testing.
Sendmail rebuild
This needs several steps to get it to work:
1. Download the latest stable version:
Code: Select all
wget ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.15.2.tar.gz
Code: Select all
cd /work/system_apps
gzcat sendmail.8.15.2.tar.gz | tar xf -
Code: Select all
APPENDDEF(`confENVDEF', `-DSASL=2')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
APPENDDEF(`confLIBDIRS', `-L/usr/local/lib')
APPENDDEF(`confINCDIRS', `-I/usr/local/include')
Code: Select all
cp -p /work/system_apps/sendmail-8.14.6/devtools/Site/site.config.m4 /work/system_apps/sendmail-8.15.2/devtools/Site
Code: Select all
cd /work/system_apps/sendmail-8.15.2/
sh Build (or make)
Code: Select all
mv /etc/mail/cf /etc/mail/cf.8.14.6_9
Code: Select all
cp -rp /work/system_apps/sendmail-8.15.2/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_AUTH > /etc/mail/sendmail.cf.8.14.6
NOTICE: it is now "dbm" instead of the old "hash".
6.3. Replace existing sendmail.cf with this new sendmail.cf.8.15.2.
Code: Select all
cp -p sendmail.cf.8.15.2 sendmail.cf
Code: Select all
mv submit.cf submit.cf.8.14.6
cp /work/system_apps/sendmail-8.15.2/cf/cf/submit.cf /etc/mail
8. Backup existing binary
Code: Select all
cd /usr/lib
mv sendmail sendmail.8.14.5_AUTH
otherwise, a new statistics file with 0 byte will replace the old one.
Code: Select all
mv /etc/mail/statistics /etc/mail/statistics_ori
Code: Select all
cd /work/system_apps/sendmail-8.15.2
make install
Code: Select all
mv /etc/mail/statistics_ori /etc/mail/statistics
Code: Select all
/etc/init.d/sendmail restart