I have a server running Qmail with ldap patch 20021201a.
In my configuration I use only a virtual user to deliver mail in
maildirs using qmailscanner and spamassassin.
the deliver program now is qmail default program.
I need for higher control for some account to use maildrop
my ldap ldiff likes
dn: cn= , ou= , dc= ,dc=
mailMessageStore:
givenName:
sn:
userPassword::
mailAlternateAddress:
mail:
objectClass: top
objectClass: inetOrgPerson
objectClass: qmailUser
objectClass: person
uid:
accountStatus: active
cn:
description:
mailQuota:
ldapDeliveryMode: maildrop -u uid
deliveryProgramPath
deliveryMode: normal
qmailDotMode: ldapwithprog
maildrop is compiled with direct ldap support.
my maildropldap.config
hostname xxx.xxx.xxx.xxx
basedn dc=byworks,dc=com
filter &(&(objectclass=qMailUser)(accountStatus=active))
binddn uid=xxxxxxx,dc=xxxxx,dc=xxxx
bindpw xxxxxx
timeout 5
search_method user
default_uidnumber 510
default_gidnumber 552
mail_attr mail
uid_attr uid
uidnumber_attr uidnumber
gidnumber_attr gidnumber
maildir_attr mailMessageStore
homedirectory_attr mailMessageStore
quota_attr mailQuota
maildrop 1.5.2 was compiled with:
./configure --disable-tempdir --without-db --enable-syslog=1
--enable-maildrop-uid=vmail --enable-maildrop-gid=vmail
--enable-smallmsg=65536 --enable-global-timeout=400
--enable-restrict-trusted=1 --enable-trusted-users='vmail'
--enable-trusted-groups='vmail' --enable-maildirquota --with-trashquota
--enable-maildropldap --with-ldapconfig=/etc/maildropldap.config
I try to deliver a mail message directly with a command line action
cat msg | maildrop -d alberto
i got: maildrop: You are not a trusted user
or :maildrop: Invalid user specified
ldap log file
Feb 11 20:57:55 server slapd[29871]: daemon: conn=21624 fd=10 connection
from IP=xxx.xxx.xxx.xxx:44685 (IP=0.0.0.0:389) accepted.
Feb 11 20:57:56 server slapd[6657]: conn=21624 op=0 BIND
dn="UID=XXXXX,DC=XXXXXX,DC=XXX" method=128
Feb 11 20:57:56 server slapd[6657]: conn=21624 op=0 RESULT tag=97 err=49
text=
Feb 11 20:57:56 server slapd[29871]: conn=-1 fd=10 closed
any idea?