[Mimedefang] spam filtering per user on a gateway
Joe Arnstein
mimedefang at claireandjoe.com
Wed Jan 28 19:01:10 EST 2004
Hi Rick,
Great! Thanks a lot for the tip. I'm assuming it should go first in
the list to avoid too much re-writing on Mimedefang's part.
Thanks again for your help.
Joe Arnstein
-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of Rick
Mallett
Sent: Wednesday, January 28, 2004 6:08 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] spam filtering per user on a gateway
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
>
_______________________________________________
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