You should not have to setuid/setgid for this to work. I am using
maildrop with LDAP and qmail for over a year. I only used
"'--enable-maildropldap' '--enable-maildirquota'" when building. My
/etc/maildropldap.config file is 600 and owned by the virtual user. It
sounds like something is not configured right in you maildropldap.config
file. The key parts of mine look like:
Thanks for your input!
I believe my maildropldap.config is correct, since it works fine when
maildrop is suid root. This is puzzling me most.
I include it here, in case someone spots some error in it:
hostname localhost
basedn ou=users,dc=metis,dc=fi
timeout 5
search_method mail
default_uidnumber 6000
default_gidnumber 6000
mail_attr mail
uid_attr uid
maildir_attr mailMessageStore
homedirectory_attr mailMessageStore
quota_attr mailQuotaSize
vmail:vmail is 6000:6000 and the file is owned and readable by vmail only.
BTW: Are you using maildrop 1.6.2 or earlier? Did you take the
suid/sgid bits off by hand after intallation? The installation script
makes maildrop suid root by default.