diff --git a/mail/dovecot/dovecot.conf b/mail/dovecot/dovecot.conf index 79f362a06..d3dbe9575 100644 --- a/mail/dovecot/dovecot.conf +++ b/mail/dovecot/dovecot.conf @@ -17,3 +17,11 @@ if [ $prefix_auto = 1 ] ; then prefix="opt/dovecot" set_confopt fi + +# LDAP support +if pkginstalled openldap ; then + pkgprefix -t openldap + var_append CFLAGS ' ' "-I$root$( pkgprefix includedir openldap )" + export CFLAGS + var_append extraconfopt ' ' "--with-ldap" +fi