You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Richard Bewley <rb...@friend.ly.net> on 2004/03/06 01:57:10 UTC
Whitelist recipient to
Hi,
Currently, the problem I'm having is, some users want to disable spam
filtering. So, say asmith@friend.ly.net wants to disable spam filtering.
So, I add, whitelist_to asmith@friend.ly.net. But, then when a spammer
sends a message to asmith@friend.ly.net; rbewley@friend.ly.net, because
asmith was whitelisted, I get a copy of the spam message even though I want
filtering.
Is there a whitelist_recipient_to, and if so, will this work correctly?
Thanks,
Richard
Updated empty subject, empty body ruls
Posted by Charles Gregory <cg...@hwcn.org>.
Hallo!
A properly formed e-mail has a single blank line between the body and
the header. So let's checl for that. Because some people send a message
that only contains a subject (which is the 'message' conveyed) we meta
check for both a missing subject *and* body. This pairs up nicely with the
check for no subject and 'undisclosed recipients':
header __UNDISCLOSED To =~ /undisclosed.recipients/i
header __NOSUBJECT Subject !~ /\w/i [if-unset: %]
full __BODYNOTBLANK /\w\n\n\w/i
meta LOC_UNDISCLNOSUBJ (__UNDISCLOSED && __NOSUBJECT)
describe LOC_UNDISCLNOSUBJ To undisclosed recipients with no subject
score LOC_UNDISCLNOSUBJ 1.5
meta LOC_NOSUBJNOBODY (__NOSUBJECT && (! __BODYNOTBLANK) )
describe LOC_NOSUBJNOBODY No Subject and no body text
score LOC_NOSUBJNOBODY 1.5
The __BODYNOTBLANK test actually looks for blank line between headers and
body. And because it is a 'full' test, it should not FP on attachment-only
mail.
- Charles
Re: Whitelist recipient to
Posted by Ron McKeating <R....@lboro.ac.uk>.
On Sat, 2004-03-06 at 00:57, Richard Bewley wrote:
> Hi,
>
> Currently, the problem I'm having is, some users want to disable spam
> filtering. So, say asmith@friend.ly.net wants to disable spam filtering.
> So, I add, whitelist_to asmith@friend.ly.net. But, then when a spammer
> sends a message to asmith@friend.ly.net; rbewley@friend.ly.net, because
> asmith was whitelisted, I get a copy of the spam message even though I want
> filtering.
>
> Is there a whitelist_recipient_to, and if so, will this work correctly?
>
Not sure about recipient_to, but we thought about this problem a long
time and came up with a solution which works with exim. Basically
anybody who wants all their spam has to regsiter to say so, we then put
them into a database (though a flat file would work to) and then set
some headers in the email to ensure that if the spam score is over the
trigger, then any recipient that is not in the all_spam list does not
get the message delivered.
I wrote a web page on how we did it here (ignore the stuff about student
address, that is just in because we do not filter student email).
http://www.sprocket.lboro.ac.uk/~ron/email/SPAM_filtering_system.htm
Ron
> Thanks,
> Richard
--
Ron McKeating
Senior IT Services Specialist
Internet Services and Software Solutions
Loughborough University
01509 222329