Berkeley DB Reference Guide:


Using Berkeley DB with Sendmail

If you are attempting to use Berkeley DB with Sendmail 8.8.X, you must use Berkeley DB version 1.85 (see the Sleepycat Software web site's historic releases of Berkeley DB page for more information).

Berkeley DB versions 2.0 and later are only supported by Sendmail versions 8.9.X and later.

Berkeley DB versions 3.0 and later are only supported by Sendmail versions 8.10.X and later.

We strongly recommend that you not use Berkeley DB version 1.85. It is no longer maintained or supported and has known bugs that can cause Sendmail to fail. Instead, please upgrade to Sendmail version 8.9.X or later and use a later version of Berkeley DB. For more information on using Berkeley DB with Sendmail, please review the README and src/README files in the Sendmail distribution.

To load sendmail against Berkeley DB, add the following lines to BuildTools/Site/site.config.m4:

APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB/include')
APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB/lib')

where those are the paths to #include <db.h> and libdb.a respectively. Then, run "Build -c" from the src directory.

Note that this Build script will use -DNEWDB on the compiles and -L/path/to/libdb/directory -ldb on the link if it can find libdb.a; the search path is $LIBDIRS:/lib:/usr/lib:/usr/shlib. $LIBDIRS is NULL by default for most systems, but some set it in BuildTools/OS/foo. Anyone can append to it as above (confLIBDIRS is the m4 variable name; LIBDIRS is the shell-script variable name).

To download Sendmail, or to obtain more information on Sendmail, see the Sendmail home page, which includes FAQ pages and problem addresses.


Copyright Sleepycat Software