Building sendmail 8.12.10 on Solaris 8 with SASL SMTPAUTH Notes: http://www.sendmail.org/faq/ http://www.slingcode.com/sendmail.php http://www.sendmail.org/~ca/email/auth.html http://www.jonfullmer.com/smtpauth/ http://www.joreybump.com/code/howto/smtpauth.html http://alan2.rateliff.us/SMTP_AUTH-HOWTO.html http://www.sendmail.org/%7Eca/email/authrealms.html#authpwcheck_method http://www.linuxmanagers.org/pipermail/linuxmanagers/2002-July/000578.html milter/README Download http://www.sendmail.org/8.12.10.html Berkeley DB - http://www.sleepycat.com/update/snapshot/db-3.1.17.tar.gz http://ws.foo.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) Build SASL libraries: http://asg.web.cmu.edu/sasl/ ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ Downlod from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.15.tar.gz # cd /build/cyrus-sasl-2.1.15 # export LIBS=-lcrypto # export SASL_USE_GSSAPI=NO # ./configure --prefix=/usr/local --without-krb --enable-login --disable-gssapi \ --disable-krb4 --with-saslauthd=/var/run/saslauthd # make # make install # cp /build/cyrus-sasl-2.1.15/include/sasl.h /usr/local/include/sasl.h # cp /build/cyrus-sasl-2.1.15/include/saslplug.h /usr/local/include/saslplug.h # cp /build/cyrus-sasl-2.1.15/include/saslutil.h /usr/local/include/saslutil.h # cp /build/cyrus-sasl-2.1.15/include/prop.h /usr/local/include/prop.h # chmod 744 /usr/local/include/sasl.h # chmod 744 /usr/local/include/saslplug.h # chmod 744 /usr/local/include/saslutil.h # chmod 744 /usr/local/include/prop.h Sendmail: Download from http://www.sendmail.org/8.12.10.html ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.12.10.tar.Z unpack to: /build/sendmail-8.12.10 # cd /build/sendmail-8.12.10 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.10/devtools/Site/site.config.m4 with the following lines: APPENDDEF(`confENVDEF', `-DNEWDB -DMILTER') (Note don't use -DMILTER if you are NOT going to use it!) APPENDDEF(`confMAPDEF', `-DNEWDB')dnl APPENDDEF(`confINCDIRS', `-I/usr/local/include') APPENDDEF(`confLIBDIRS',`-L/usr/local/lib -R/usr/local/lib') APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL') APPENDDEF(`conf_sendmail_LIBS', `-lsasls') # cd /build/sendmail-8.12.10/sendmail # sh Build Test it: # /build/sendmail-8.12.10/obj.SunOS.5.8.sun4/sendmail/sendmail -d0.1 sendmail.cf || ( rm -f sendmail.cf && exit 1 ) chmod 444 sendmail.cf Install on mailhost02: First login to mailhost02 and save the previous sendmail.cf # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig.sun No go back to mailhost01 and copy the sendmail.cf # scp /build/sendmail-8.12.10/cf/cf/sendmail.cf kinscoe@mailhost02.foo.com:/tmp/sendmail.cf # scp /build/sendmail-8.12.10/obj.SunOS.5.8.sun4/sendmail/sendmail kinscoe@mailhost02.foo.com:/tmp/sendmail Now back on mailhost02 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