[Mimedefang] Re: Per-recipient customization

David Eisner cradle at umd.edu
Wed Mar 29 12:36:46 EST 2006


First, thanks for all the responses so far. I'm going to Keep It Simple
for now and just use a config file rather than a database.  Our user
base is small enough that we can handle this through requests sent to
the IT staff.

Dirk the Daring wrote:
>    Since you mention NetWare, is it a good idea to assume that the mail
> environment is GroupWise? Modern GroupWise serves POP3 (as well as IMAP,
>   
No.  We're using Mercury (yuck) for now.  This may be changing to
Groupwise when we upgrade our server, though.


>   I wrote code in my MIMEDefang filter to do per-recipient rejection
> based on the SA score. I'm not a Perl programmer by trade, and doubtless
> my code will generate some giggles from anyone who sees just how
> brute-force it is, but it does seem to work well.
>   

Thanks!  This is along the lines of what I was thinking.  You might
consider using a hash rather than walk through the @limitspamusers array
for better performance.  Also, this

     for ( $repindex=0 ; $repindex < @Recipients ; $repindex++ )
         ...
         $spamlimit = _check_limit($Recipients[$repindex]);


can be coded

    for $recip (@Recipients)  
or
    foreach $recip (@Recipients)

        ...

    $spamlimit = _check_limit($recip);


And you're right, this is not laughing.  

So far the biggest problem is that the Bat Book and the Camel Book are about the same size and I keep getting frustrated when I can't find anything in the index because I've picked up the wrong one.

-David






More information about the MIMEDefang mailing list