Thanks Clint this helped a lot. At the moment though I'm facing the problem that when I apply a rule on an incoming message that should move that message to a specified folder, the message gets copied rather than moved to that folder (i.e. a copy remains in the inbox). Did you experience a similar behaviour?
David. am 25.4.2002 17:49 Uhr, schrieb Clint Bullock ([EMAIL PROTECTED]) > David Reindl wrote: > >> Is it possible to use maildrop for mail filtering with qmail-ldap by just >> setting the attributes qmailDotMode and deliveryProgramPath? >> > Most of this information is contained in the docs: > [maildrop or sqwebmail source]/maildir/README.maildirfilter.html > > Here's a sample of how I have things setup and working (just the relevant > stuff): > (I'm using a sample user named john) > > 1) LDAP Attributes > deliveryMode: normal > deliveryProgramPath: /usr/bin/maildrop /home/users/john/.mailfilter > > 2) Controls > ~control/ldapdefaultdotmode: both > (also can be set in LDAP with "qmailDotMode" attribute) > > 3) Files > - in the "deliveryProgramPath" attribute, you'll notice that it points to > ".mailfilter" in the user's homedir. This is the default for MailDrop, but I > define it in the attribute since I'm using a virtual user's environment with > no local accounts. This is the maildrop filtering recipe. > > > Notes: > > If you plan to use SQWebMail with filtering turned on, you can place a file > named "maildirfilterconfig" in the user's Maildir. Mine looks something like > this, > ---- $HOME/Maildir/maildirfilterconfig > MAILDIRFILTER=../.mailfilter > MAILDIR=./Maildir > ---- > > > A default mail filtering recipe (.mailfilter) might look like this, > ---- $HOME/.mailfilter > #MFMAILDROP=1 > # > # DO NOT EDIT THIS FILE. This is an automatically generated filter. > > to "./Maildir/." > ---- > > > With automatic user homedir creation turned on, you could have a script > similar to this one that creates all the default files and directories for a > new user when the first email is received. > ---- /var/qmail/bin/create_homedir > #!/bin/sh > mkdir -m 700 -p $1 ; > cp /var/qmail/stuff/maildrop_mailfilter $1/.mailfilter ; > chmod 600 $1/.mailfilter ; > /var/qmail/bin/maildirmake $1/Maildir ; > cp /var/qmail/stuff/maildirfilterconfig $1/Maildir/ ; > chmod 600 $1/Maildir/maildirfilterconfig ; > #EOF > ---- > > > ~control/dirmaker should look something like this, > ---- dirmaker > /var/qmail/bin/create_homedir > ---- > > > Also, I just used the default spec file from the maildrop source to compile an > rpm of maildrop on my system. > > Hope this helps,
