I'm using Courier with Maildrop and SpamAssassin. When I get something
that SpamAssassin *really* thinks is spam, it deletes it. However, when
it's in that grey area, it puts it into a "ProbableSpam" folder. Now,
every now and then, some legitimate mail gets tossed in there. However,
since I only check that folder about once a week, I often miss the legit
ones.
So, I started sending out a sort of "Your message was tagged as spam"
reply to everything that ends up in ProbableSpam. The problem is,
however, I'm getting lots of bounces, even though I'm tagging the
messages with "Precedence: junk" or "Precedence: bulk". Some of these
messages are coming from the local Courier MTA when it can't even find a
match for the domain. Does anybody have a good way of doing something
like this?
Here's the relevant portion of my .mailfilter file:
# Egregeous spam (score of over 8 or so) gets tossed
if (/^X-Spam-Level: ......../)
to /dev/null
# Anything with spam score of 5 or more that's not from the daemon or
from this routine...
if (/^X-Spam-Level: ...../ && ! /^FROM_DAEMON/ && ! /^X-Loop:
joes@spam.notify/)
{
cc "| (reformail -r -I\"Subject: Mail not received ($SUBJECT)\"
-I\"Errors-To: nobody@nowhere\" -I\"Precedence: junk\" -A\"X-Loop:
joes@spam.notify\" ; \
echo \"Greetings!\" \
echo \"\"; \
echo \"It appears that you recently sent some mail to Joe
Emenaker. The address that you\"; \
echo \"sent to seems to be '$TO' and it looks like the subject
was:\"; \
echo \" '$SUBJECT'\"; \
[snip]
Regards,
- Joe