qmail-ldap and deliver
Edit qmail-ldap.h to allow for interpretation of special characters like $, &, ; <, | etc. in program paths, by changing the value for RESTRICT_PROG:
#define RESTRICT_PROG 0
Then in the qmail source directory:
make clean make setup check
- qmail control file
The ldapdefaultdotmode control file needs to be edited to use the ldapwithprog mode:
echo 'ldapwithprog'>/var/qmail/control/ldapdefaultdotmode
- LDAP Attributes
The following LDAP attributes need to be added or replaced as:
deliverymode: nolocal deliveryprogrampath: /usr/lib/dovecot/deliver -a $RECIPIENT -f $SENDER -d $USER
