I have a similar setup, however, I do not use or prefer client side rules. I prefer to write all of my rules in procmail, because I use several different imap clients, depending on my location.

I'm not familiar with maildrop, so this message is biased. But, with procmail, you can run your mails through spamc before they reach /var/spool/mail/robbo, which would make it impossible for kmail to get to the messages before SA. This would be more efficient, in my opinion. Here's a simple .procmailrc example that will run messages less than 256K through spamc. You could probably do the same with maildrop.

:0fw
* < 256000
| /path/to/spamc <args>

:0:
* ^X-Spam-Status: Yes
$MAILDIR/spam

This would send only non-spam messages to /var/spool/mail/robbo for kmail. Also, If you're using imap, and your kmail rules are strictly for sorting, rewrite them in procmail -- you'll be much happier.

Brian Byers
[EMAIL PROTECTED]

Rob Blomquist wrote:
I have been working on getting Fetchmail, Spamassassin, and maildrop to work together to allow me to download my mail by fetchmail, pass it through spamassassin, and then let maildrop drop it in a place where I can let Kmail pick it up, and run all its filters on the mail (I have like 20 filters), including SA.

I am thinking that this is going to have fetchmail grab my mail and drop it in /var/spool/mail/robbo, then maildrop will invoke spamc to mark it while it sits in /var/spool/mail/robbo.

I would like to have it moved to another location (say, ~/.markedmail) so that kmail can grab it at its leisure and filter it into my directories. What would I need to do to invoke that? Is there an easier way to handle this fetchmail and spamassassin alone?

The reason I want to change directories is to avoid the probability that mail is picked up by fetchmail and uploaded by kmail before SA has had its turn with it.

Your thoughts? I am not all that familiar with MDAs and would like some second comments before I proceed.

Rob

~/.fetchmailrc:
# Configuration created Tue Oct 19 23:20:59 2004 by fetchmailconf
set postmaster "postmaster"
set bouncemail
set no spambounce
set properties ""
set daemon 5
poll incoming.verizon.net with proto POP3
       user '**********' there with password '********' is 'robbo' here
mda /usr/bin/maildrop

~/.mailfilter:
logfile "~/logs/maildroplog"

`reformail -D 8192 .duplicate.cache`
if ( $RETURNCODE == 0 )
        exit

if ($SIZE > 0)
xfilter "spamc"




Reply via email to