

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
12 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Automatically drop Spam| From | Sent On | Attachments |
|---|---|---|
| mi...@palmspringairlines.us | Oct 13, 2005 2:24 pm | |
| Jay Lee | Oct 13, 2005 2:40 pm | |
| Rolan Yang | Oct 13, 2005 5:40 pm | |
| Jay Lee | Oct 13, 2005 6:27 pm | |
| mouss | Oct 13, 2005 6:37 pm | |
| Pollywog | Oct 14, 2005 8:07 am | |
| mouss | Oct 14, 2005 3:38 pm | |
| Chris Petersen | Oct 15, 2005 3:40 pm | |
| Pollywog | Oct 15, 2005 5:18 pm | |
| Chris Petersen | Oct 15, 2005 7:17 pm | |
| David Peck | Mar 29, 2007 11:43 am | |
| David Peck | Mar 29, 2007 12:41 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] Automatically drop Spam | Actions... |
|---|---|---|
| From: | Jay Lee (jl...@pbu.edu) | |
| Date: | Oct 13, 2005 2:40:31 pm | |
| List: | net.sourceforge.lists.courier-maildrop | |
mi...@palmspringairlines.us wrote:
Hi,
I'm using RH4 with qmail 1.05, vpopmail 5.4, courier-imap 4.0.4, spamassassin 3.1, with maildrop 1.8.1. I like to allow automatic delete for all email tagged with SPAM.
Problem is that it's not dropping any SPAM tagged emails.
In script /etc/maildroprc
**********************************
if (/^X-Spam-Status:.*YES/) { echo "Your email was REJECTED by our SPAM filter." DELTAG=1 }
I've no idea where you got this from... I've never heard of the DELTAG environment variable. I don't think this will do anything...
**********************************
Also tried
********************************** if (/^X-Spam-Status: *YES/) { echo "Your email was REJECTED by our SPAM filter." EXITCODE=100 }
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:
if (/^X-Spam-Status: *YES/) { exit }
thus maildrop will exit cleanly, considering the message delivered without ever writing anything to the user's box. This however means that you've got zero chance of recovering false positives or even knowing that there are false positives. Bad idea also. Better idea:
if (/^X-Spam-Status: *YES/) { to "/some/maildirOrMailbox/of/admin/for/fp/checking" }
Thus, when a user suspects that valid mail is getting marked as spam and deleted, they can ask the admin, the admin can do a search in this mailbox and inform the user.
Jay
-- Jay Lee Network / Systems Administrator Information Technology Dept. Philadelphia Biblical University
--







