Quoting Michael Mansour <mic@...>:
> Hi Petar,
>
>> On Fri, Jan 16, 2009 at 10:15:25AM +1100, Michael Mansour wrote:
>> > Hi,
>> >
>> > > Am Donnerstag Januar 15 2009 01:49 schrieb Michael Mansour:
>> > > > Hi Dan,
>> > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > > I use uribl to score emails in SA. What I'd like to do is
>> just drop
>> > > > > > any emails that exist in URIBL_BLACK (the blacklist category of
>> > > > > > uribl).
>> > > > > >
>> > > > > > I'm looking for a way to do this and am wondering if
>> milter-greylist
>> > > > > > can
>> > > >
>> > > > do it?
>> > > >
>> > > > > > I don't think it can because a message needs to be accepted first,
>> > > > > > scanned to query the URI in it against multi.dnsbl.com and then
>> > > > > > perform an appropriate action.
>> > > > >
>> > > > > You used the word drop. Drop is easy. REJECT is hard.
>> > > >
>> > > > Hmm.. ok, how would I just drop these emails?
>> > > >
>> > > > I'm currently looking in SpamAssassin but it's basically a
>> message filter
>> > > > and scorer, no drops. Checking SA 3rd party plugins also
>> don't show any
>> > > > which drop.
>> > >
>> > > perhaps you would like to check out MIMEdefang? (www.mimedefang.org)
>> >
>> > Yeah I know about that but the thing I'm trying to avoid is accepting the
>> > emails for processing altogether. When my servers get hammered
>> with 10 or 20
>> > spams a second, processing that trash only to delete it wastes valuable
>> > resources. It's much better to handle it at the MTA and reject
>> there, so as
>> > not to even process the trash.
>>
>> As long as you're doing checks against the message body, you are
>> processing the message. Just because the processing may take place
>> during the SMTP conversation, doesn't mean that it will claim less
>> resources.
>
> Hmm.. yes you're right. It only comes down then to the processing at the MTA
> being less than the processing done at the scanner. I use MailScanner which
> logs into a DB, so in my case doing this part at the MTA saves processing and
> mail logging down the road, but that may not be the case for others.
>
> Thanks and regards,
>
> Michael.
>
>> Petar Bogdanovic
Personally what I do is, Accept the message, filter it with spamass,
add ip/score into database, do user filtering.
Then ever few min run a script to get stats based on ip for spam
scores, viruses, and other stuff, and pick ip's that should be
blacklisted.
Making the scripts to do this is not very hard, and you can either
hard blacklist, or just blacklist it for an hour or so at a time.