...on Sat, Mar 25, 2006 at 09:22:57PM +1100, Zoong PHAM wrote:

 > Do you  mind to share the instruction of how to replace OpenBSD's
 > sendmail with sendmail.org's 8.13.6?

Warning: Works for me, but may not for you. The 
specific version below is untested, and may miss 
options you need on your system (say, when using 
LDAP maps or SASL, for example). Generally, look 
at devtools/README first.

I don't usually set confMBINDIR, and just
overwrite the /usr/sbin/sendmail link, rendering 
mailwrapper(8) useless.

In the sendmail source tree, create a file called 
devtools/Site/site.config.m4 with about the content 
below:

--- cut ---
dnl # whatever it is you like to pass to cc
define(`confOPTIMIZE', `-Os')

dnl # write sendmail binary to /usr/libexec/sendmail/ for mailwrapper
define(`confMBINDIR', `/usr/libexec/sendmail')

define(`confMAPDEF', `-DMAP_REGEX')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')
APPENDDEF(`conf_sendmail_ENVDEF', `-DDNSMAP -DNETINET6 -DNEEDSGETIPNODE')

dnl # OpenBSD Makefile has this
APPENDDEF(`conf_sendmail_ENVDEF', `-DFAST_PID_RECYCLE')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_USE_SETLOGIN')

dnl # only when milter support is required
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE -pthread')

dnl # only when using NIS/YP
APPENDDEF(`confENVDEF', `-UNIS')
--- cut ---

In the sendmail toplevel dir, run sh ./Build and sh ./Build install

If your OpenBSD came with sendmail 8.13 (probably 
even with 8.12), the new version should work with 
your current sendmail.cf, but you'll want to build 
a new one nevertheless.

If there are errors in this, I'd like to know. 

Alex.

Reply via email to