hello, try using the package courier-maildrop on your debian-system. it should read the variables exported by qmail-ldap (like $HOME, $SENDER) and should find the $HOME/.mailfilter file. it works really fine with virtual users and you need no additional ldap-lookups.
buz On Mon, 2003-03-10 at 09:49, Szabo Nandor wrote: > Helo! > > I'm using qmail-ldap, and sqwebmail on debian woody system. > > 1. > When I use system users with own home directories, everithyng works fine, > deliveries, filters and autoresponses. I set up maildrop as delivery agent. > # cat $HOME/.qmail -> > |/usr/local/bin/maildrop > > I can edit filters with sqwebmail, > # cat $HOME/.Maildir/maildirfilterconfig -> > MAILDIRFILTER=../.mailfilter > MAILDIR=./Maildir > Sqwebmail generated the $HOME/.mailfilter file correctly. > > 2. > When I use virtual users from LDAP entries, I add > "deleveryprogrampath: /usr/local/bin/maildrop /popusers/USER/.mailfilter" to > USER entry. > Deliveries, filters ok, but autoresponses don't work. > > 3. > I want to add maildrop globally. > > - install maildrop with ldap support: > ./configure --enable-maildropldap --with-dapconfig=/etc/maildropldap.config > > - put qmail-start "|/usr/local/bin/maildrop" to qmail startup script. > > - create the /etc/maildropldap.config file > > PROBLEM: maildrop DOSN'T find the user HOMEDIRECTORY, and the .mailfilter > file. > > # cat /etc/maildropldap.config -> > search_method mail > default_uidnumber 1006 > default_gidnumber 1006 > mail_attr mail > uid_attr uid > #uidnumber_attr uidnumber > #gidnumber_attr gidnumber > maildir_attr mailmessagestore > homedirectory_attr mailmessagestore > quota_attr mailquota > > the virtual user LDAP entry: > objectclass=person > objectclass=qmailUser > [EMAIL PROTECTED] > uid=nszabo > mailhost=anna2.panaphone.hu > mailmessagestore=/popusers/nszabo > mailquota=10000000S,1000C > deliverymode=normal > accountstatus=activ > > maildrop try to use the global virtual user (alias) home directories > (/var/qmail/alias) and mailfilter file!!!!!! > > #tail /var/log/qmail/qmail-send/current -> > maildrop:_Changing_to_/var/qmail/alias/Message_start_at_0_bytes,_envelope_se > nder=alias/maildrop:_Attempting_.mailfilter/maildrop:_Delivering_to_/var/spo > ol/mail/alias//usr/local/bin/maildrop:_Unable_to_open_mailbox./ > > Why maildrop can't find the home directories? > > Thank's > > Szabo Nandor >
