Building sendmail 8.12.9 on Solaris 8 Notes: http://www.sendmail.org/faq/ http://www.slingcode.com/sendmail.php milter/README Download http://www.sendmail.org/8.12.9.html Berkeley DB - http://www.sleepycat.com/update/snapshot/db-3.1.17.tar.gz http://ws.harcourt.com/pub/soft/src/db-3.1.17.tar.gz (mail1 and mail2 are using DB 3.1.17) # cd /build/db-3.1.17/dist # export CC=gcc # ./configure --prefix=/usr/local # make # make install Test install: # db_verify -V Sleepycat Software: Berkeley DB 3.1.17: (July 31, 2000) Sendmail: Download from http://www.sendmail.org/8.12.9.html ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.12.9.tar.Z unpack to: /build/sendmail-8.12.9 # cd /build/sendmail-8.12.9 Notes about Milter. Milter is rqeuired by MIMEDefang so we need to compile it in to sendmail. Miter however requires pthreads so by default it is not compiled in. Here are the notes about it from http://www.slingcode.com/sendmail.php: MILTER is not compiled by sendmail by default; it requires POSIX thread support on the host operating system. To enable MILTER, edit the Makefile and add libmilter to the end of the subdirectory list, and save the file. This will build the file libmilter.a. SUBDIRS= libsm libsmutil libsmdb sendmail editmap mail.local \ mailstats makemap praliases rmail smrsh vacation libmilter # cp Makefile Makefile.orig Edit Makefile and add libmilter to the end of SUBDIRS as explained above. Do the site config template: Create /build/sendmail-8.12.9/devtools/Site/site.config.m4 with the following lines: APPENDDEF(`confENVDEF', `-DNEWDB -DMILTER') APPENDDEF(`confMAPDEF', `-DNEWDB')dnl APPENDDEF(`confINCDIRS', `-I/usr/local/include') APPENDDEF(`confLIBDIRS',`-L/usr/local/lib -R/usr/local/lib') # sh Build -c Test it: # /build/sendmail-8.12.9/obj.SunOS.5.8.sun4/sendmail/sendmail -d0.1 sendmail.cf || ( rm -f sendmail.cf && exit 1 ) chmod 444 sendmail.cf Install on wsadmin02: First login to wsadmin02 and save the previous sendmail.cf # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig.sun No go back to wsadmin01 and copy the sendmail.cf # scp /build/sendmail-8.12.9/cf/cf/sendmail.cf kinscoe@wsadmin02.harcourt.com:/tmp/sendmail.cf # scp /build/sendmail-8.12.9/obj.SunOS.5.8.sun4/sendmail/sendmail kinscoe@wsadmin02.harcourt.com:/tmp/sendmail Now back on wsadmin02 again: # mv /tmp/sendmail.cf /etc/mail/sendmail.cf # cp /usr/lib/sendmail /usr/lib/sendmail.8.11.6_sun # mv /tmp/sendmail /usr/lib/sendmail Test the new sendmail: # /usr/lib/sendmail -d0.1