[Mimedefang] spam filtering per user on a gateway
Jared Armstrong
mimedefang at thestainlesssteelpenguin.org
Wed Jan 28 19:56:00 EST 2004
Another way would be to log the spam, then remove just that one recipient
(jsmith) from the message using delete_recipient(). This would allow others
to receive the message intact. The solution below would only apply when
jsmith is the only recipient, perhaps causing confusion in your test
environment.
Not knocking the provided solution of course, it is probably exactly what you
were looking for.
On Wednesday 28 January 2004 03:01 pm, Joe Arnstein wrote:
> 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
--
[------------------------------------------------------------]
Jared Armstrong System Adminsistrator
Alyeska Resort 907.754.2100
http://www.alyeskaresort.com
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xFA0320D7
[------------------------------------------------------------]
More information about the MIMEDefang
mailing list