qmail-ldap

        ATTENTION:

Please make sure that you read /var/qmail/doc/PORT_NOTES.  It
contains important information about testing and configuring qmail,
and finally replacing sendmail with qmail.

You should also add /var/qmail/man to your MANPATH (see manpath(1)
or login.conf(5)).

Do not forget to read /var/qmail/doc/QLDAPINSTALL. After all, this
is NOT our old stock qmail. And, /var/qmail/doc/ANTISPAM for some
antispam control measures.

You can enable qmail as your default mailer:

# this will disable the default MTA 1) do "make disable-sendmail"

# enable qmail as your default MTA 2) do "make enable-qmail"

=====><=====

If you've built this port with TLS support (WITH_TLS=yes)

==> You will need to provide a working certificate in
/var/qmail/control/cert.pem :

# makes a self-signed certificate 3) do "make certificate"

# makes a certificate request 4) do "make certificate-req"

=====><=====

Now, you need to use it. Check a little FreeBSD specific how-to at
http://freebsd.cg.nu/postfixqmail-ldap.html
===>   Compressing manual pages for qmail-ldap2-with_tls-1.03.20020901_2
===>   Registering installation for qmail-ldap2-with_tls-1.03.20020901_2
===> SECURITY REPORT: 
      This port has installed the following binaries which execute with
      increased privileges.
/var/qmail/bin/qmail-queue

      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/var/qmail/bin/pbsdbd

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: 
http://www.nrg4u.com/
===>  Cleaning for libtool-1.5.10
===>  Cleaning for perl-5.8.6_2
===>  Cleaning for openldap-client-2.2.23
===>  Cleaning for qmail-ldap2-with_tls-1.03.20020901_2

# make disable-sendmail
===> I hope you know what you are doing:
===> You just told your system to not
===> automaticaly start sendmail on your
===> next startup.
===> (i.e., added sendmail_enable="NONE" to rc.conf)
参考
http://www.tom.sfc.keio.ac.jp/~torry/ldap/ldap.html#doc1_121
参考
http://freebsd.cg.nu/postfixqmail-ldap.html
参考
http://www.lifewithqmail.org/ldap/