12 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Automatically drop Spam
FromSent OnAttachments
mi...@palmspringairlines.usOct 13, 2005 2:24 pm 
Jay LeeOct 13, 2005 2:40 pm 
Rolan YangOct 13, 2005 5:40 pm 
Jay LeeOct 13, 2005 6:27 pm 
moussOct 13, 2005 6:37 pm 
PollywogOct 14, 2005 8:07 am 
moussOct 14, 2005 3:38 pm 
Chris PetersenOct 15, 2005 3:40 pm 
PollywogOct 15, 2005 5:18 pm 
Chris PetersenOct 15, 2005 7:17 pm 
David PeckMar 29, 2007 11:43 am 
David PeckMar 29, 2007 12:41 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] Automatically drop SpamActions...
From:Rolan Yang (rol@omnistep.com)
Date:Oct 13, 2005 5:40:23 pm
List:net.sourceforge.lists.courier-maildrop

I use this for dropping virus infected emails. You could apply the same to SPAM, but it would not be recommended because no spam filter is 100% effective and that would result in a small percentage of good mails being deleted.

********************************** if (/was a virus\/worm\/trojan. It was removed./:b) { logfile "/var/log/maildrop.log" log "VIRUS DETECTED" to "/dev/null" } **********************************

~Rolan

This will cause maildrop to error out, believing that mail delivery failed for a temporary reason. Maildrop will retry for 3 days or so and then give up, possibly returning a delivery failure to the sender (which in the case of spam, will be faked). This also is not what you want.

Once maildrop is handling an email, the SMTP session has ended, your mail server has accepted the message, there is no way to then reject it. You could *bounce* the email back to the sender but this is very bad form and most spam has a faked sender anyways so it's quite pointless, don't do it. To toilet bowl a message use: