Rodrigo Gesswein said the following on 16/02/2004 21:09:
Hello:

   I'm   trying  to  setup  spamc  (spamassassin)  to  work  with
qmail-ldap. My first approach was:
http://marc.theaimsgroup.com/?l=qmail-ldap&m=106279577609165&w=2
but    I    noticed    that    user's   quotas   aren't   updated
($HOME/maildirsize). So, I'm looking for maildrop:

<snip>


I am using a simple maildrop setup. For each user that wants spam filtering I set the deliveryProgramPath attribute for that account.

E.g.

deliveryProgramPath: maildrop /var/qmail/mail/maildrop_SPAM_filter


The default maildrop file (maildrop_SPAM_filter) contains the following:


# Default SPAM maildrop filter.
#
# If the SPAM folder exists then dump it in there (for IMAP users) else
# it goes to INBOX.


if ( $SIZE < 262144 ) { exception { xfilter "/usr/bin/spamc -f -u $USER" } }


if (/^X-Spam-Flag: *YES/) { # then try delivering it to a Spam folder exception { to "./Maildir/.SPAM/" } # ah well, I guess they'll just have to live with disappointment exception { to "./Maildir/" } } else { exception { to "./Maildir/" } }




-- Greg

Reply via email to