Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Ldap and milter-greylist

2007-04-14 by Net_Guru_2U

When I tried to run ./configure I kept getting the "Required libmilter
not found. Use --with-libmilter" error even when I supplied the
correct path.  So, I started looking through the config.log and found
that libmilter uses some stuff from ldap if you compile sendmail with
ladp.  So not knowing much about automake I just tweaked the configure
to include -lldap -llber in two places.  One so the configure would
work and one so the compile would work.  Something like this:

# Check for libmilter. For sendmail-8.12.1, -lsm is required too.
# This uses a gross hack on the second AC_CHECK_LIB first argument,
but using
# [-lsm] in the optionnal 5th argument does not seems to help at all.
echo "$as_me:$LINENO: checking for smfi_register in -lmilter" >&5
echo $ECHO_N "checking for smfi_register in -lmilter... $ECHO_C" >&6
if test "${ac_cv_lib_milter_smfi_register+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmilter -lldap -llber $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


And then:


echo "${ECHO_T}$ac_cv_lib_milter_smfi_register" >&6
if test $ac_cv_lib_milter_smfi_register = yes; then
  LIBS="$LIBS -lmilter -lldap -llber"

After that everything went well and except for when I try to use spf
it runs stable.  Hopefully you uber coders should be able to modify
the configure.ac appropriately so I don't have to learn automake.  The
spf problem probably has to do with the resolver or bind or something
like that since I am compiling this on some servers that have been in
service for many years and probably have very old and not thread safe
libraries.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.