Create libmilter
The libmilter Milter
library is not automatically built when you build
sendmail. If you wish to
build and install it you must do so
manually.[444] Note that you do not need to define the
-DMILTER
Build macro to build the
library, but including it does not hurt.
First build sendmail in your
usual manner. Then cd
into the
libmilter directory and build
again there:
%./Build -c -f ../../mybulid.m4
... lots of output here %cd libmilter
%./Build
... lots of output here
Here, a number of Build-time
switches were specified to build
sendmail. Recall (Build sendmail on page 53) that those
switches create a Makefile, and thereafter are no longer
needed. That is why a bare ./Build
command can be used in the
libmilter
directory.
After the libmilter is built, you must install
it. The place where it is installed, and the
permissions given to it, are defined by the various
confLIB
...
Build macros (confLIB... on page 81). By default,
libmilter
will be installed in /usr/lib, so the install
command must be
run by root:
# ./Build install
... lots of output here
The library file, libmilter.a, is
installed by default in the
/usr/lib directory. Two
corresponding #include
files,
mfapi.h and
mfdef.h, are installed by
default in the
/usr/include/libmilter
directory. No Unix manual pages are installed.
Instead, you must read HTML files located under the
sendmail source tree, in
libmilter/docs, to learn how
to use this library.
[444] † For Linux, the sendmail rpm package includes a prebuilt
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.