14 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filters only work som...
FromSent OnAttachments
Robert StoeberFeb 25, 2003 10:19 am 
Devin RubiaFeb 25, 2003 12:23 pm 
Robert StoeberFeb 25, 2003 4:02 pm 
Devin RubiaFeb 26, 2003 5:20 am 
Robert StoeberFeb 26, 2003 12:18 pm 
Devin RubiaFeb 26, 2003 12:43 pm 
Robert StoeberFeb 26, 2003 2:23 pm 
Devin RubiaFeb 27, 2003 6:27 am 
Robert StoeberFeb 28, 2003 9:36 am 
Devin RubiaFeb 28, 2003 10:24 am 
Sam VarshavchikFeb 28, 2003 2:28 pm 
Robert StoeberFeb 28, 2003 3:54 pm 
Robert StoeberFeb 28, 2003 5:54 pm 
Sam VarshavchikFeb 28, 2003 7:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] filters only work sometimes?Actions...
From:Robert Stoeber (Rob@usabusiness.net)
Date:Feb 26, 2003 2:23:59 pm
List:net.sourceforge.lists.courier-maildrop

At 01:43 PM 2/26/2003, Devin Rubia wrote:

By the looks of these logs, that incoming e-mail is hitting another rule in your filters before it hits the one we have been talking about.

What are the contents of the rule that delivers to:

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

That would be the one stopping that e-mail from being deleted.

I attached the whole filter below which ends up sending 'good' messages to spamassassin (spamc) for processing before final delivery. That all works great - my own mail gets filtered and every message has the X-Spam header, so I know the filter is working.

But the rule that's failing sometimes (apparently) is the very first thing. I wanted to trap that junk before wasting any further processor cycles on it.

Here's something that might be a clue. I must have sent 100 test messages to the 'bad' address now. Every single one gets trapped by the filter rule. Messages that seem to fail/miss the test are true junk mail with goofy headers. Is it possible that maildrop isn't seeing such headers properly?

Here's the mailfilter file:

import HOME import EXT import HOST

VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

logfile "/tmp/junkmail/Maildir/maildrop.log"

if ( /jsmith/:h ) { log "Rule 1: $MATCH" EXITCODE=0 exit }

if ( $SIZE < 262144 ) { exception { xfilter "/usr/bin/spamc -f -u $EXT@$HOST" } } if (/^X-Spam-Flag: *YES/) { exception { to $VHOME/Maildir/.SPAM/ } exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" exit } } else { exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" exit } }