World sendmail and LDAP.

Matthew Seaman m.seaman at
Sun Oct 17 04:24:05 PDT 2004

On Sun, Oct 17, 2004 at 11:20:35AM +0100, Lewis Thompson wrote:

> I'm just wondering if anybody can tell me how I can build sendmail from
> world with LDAP support.  I currently have SASL support enabled in
> make.conf (copied examples from defaults/make.conf) and hoped it might
> be possible to do the same for LDAP.  Can anybody tell me if this is the
> case?  Thanks,

This is certainly possible, or, at least by my reading of various
files, it should be possible.  See the mail/sendmail port --
particularly files/site.config.m4.ldap and Makefile for details. I
think that what you need to do is:

    - install one of the net/openldap2{2,1}-{sasl-,}client ports
      according to taste

    - edit the /etc/make.conf settings and append:

      '-I/usr/local/include -DLDAPMAP'  to SENDMAIL_CFLAGS

      '-L/usr/local/lib'  to SENDMAIL_LDFLAGS (if it isn't there already)

      '-lldap -llber' to SENDMAIL_LDADD

Then recompile and reinstall sendmail.  There's plenty in
/usr/share/sendmail/cf/README on how to configure sendmail to use its
LDAP support once it has it.  I think, but I'm not at all sure, that
you should configure sendmail with both SASL and LDAP support for best

I'd be interested in hearing how you get on with this -- plus it would
probably be a good note to add to the default make.conf file.

Alternatively, you can just install the mail/sendmail-ldap port.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list