[Mimedefang] spam filtering per user on a gateway
Rick Mallett
rmallett at ccs.carleton.ca
Wed Jan 28 18:08:03 EST 2004
Assuming the existence of an account named "jsmith"
if ($score > 10 && $#Recipients < 1 && $Recipients[0] =~ /jsmith\@/i) {
md_graphdefang_log('spam', $hits, $RelayAddr);
action_discard();
}
at the appropriate location in your filter should do the trick,
after which you should be able to corfirm its working by looking
for discard messages in the mail logs. On my system they contain
"Discarding because filter instructed us to" at the end of the line.
- rick
On Wed, 28 Jan 2004, Joe Arnstein wrote:
> Hi group,
>
> Before I start filtering all spam enterprise-wide I would like to test
> it out on my gateways for one user. Can someone show me an example of
> how to configure Mimedefang/Spamassassin to drop messages going to one
> particular user if the spam count is greater than x, treating messages
> to all other users the same as we are now? We are currently just
> adding spam score to the headers allowing individuals to filter in the
> mail client, but if we can cut bandwidth utilization at the gateway we
> can make a lot of manager types happy.
>
> I'm running 2 linux boxes: One with MD 2.38 and SA 2.60; the other
> with MD 2.39 and SA 2.60.
>
> Thanks for your help!
>
> Joe Arnstein
>
>
>
> -------insert clever .sig file
> here--------------------------------------------
> this space intentionally left blank
>
>
>
>
> _______________________________________________
> Visit http://www.mimedefang.org and http://www.canit.ca
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>
More information about the MIMEDefang
mailing list