Thanks, Bob. I'm still ever so slightly confused, as I seem to have both /var/qmail/bin/maildirmake AND /usr/lib/courier-imap/bin/maildirmake, and I'm not sure which one I'm supposed to use.
It occurred to me to ask myself what version of courier-imap I had, so my fingers (which sometimes have a better memory than my brain) typed "ident /usr/lib/courier-imap/bin/maildirmake" - turns out I don't have ident. Wonder what package it comes with? Of course, "yum provides ident" provides thousands of hits :-( So I went to the source (Luke :-), and I've got 4.0.6 (that's what the toaster says to install, so that's what I've got). Nikki [I've top posted this because in this rare instance it seemed to be clearer - hope you don't mind.] Bob Hutchinson wrote: > maildrop is picky about it's filter files and not very helpful about spotting > errors ;-( > > here is a filter to kick-start you (watch out for wrapping): > import EXT > import HOST > > VPOPBIN="/home/vpopmail/bin" > QMAILDIRMAKE="/var/qmail/bin/maildirmake" > > VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED] > VMAILDIR="$VUSERDIR/Maildir" > SPAMDIR="$VUSERDIR/Maildir/.SPAM" > > if (/^X-Spam-Flag: *YES/) > { > `test -d $SPAMDIR` > if( $RETURNCODE == 1 ) > { > `$QMAILDIRMAKE $SPAMDIR;chown -R vpopmail.vchkpw $SPAMDIR` > } > to $SPAMDIR/ > } > else > { > to $VMAILDIR/ > } > > ################################# > # use this for courier-imap v4.xx > # MAILDIRMAKE="/usr/lib/courier-imap/bin/maildirmake" > # MAILDIRACL="/usr/lib/courier-imap/bin/maildiracl" > # `$MAILDIRMAKE -f SPAM $VUSERDIR/Maildir;$MAILDIRACL -set $VUSERDIR/Maildir > INBOX.SPAM owner aceilrstwx;chown -R vpopmail.vchkpw $VUSERDIR/Maildir/.SPAM` > ################################# > > then put something like this in your .qmail-user file > > |/usr/local/bin/maildrop /home/vpopmail/domains/mydomain.com/spam-mailfilter -- Nikki Locke, Trumphurst Ltd. PC & Unix consultancy & programming http://www.trumphurst.com/