[Mimedefang] disable antivirus for one user

Fox, Randy Randy_Fox at csgsystems.com
Wed Jan 28 13:45:39 EST 2004


> From: mimedefang-bounces at lists.roaringpenguin.com 
> [mailto:mimedefang-bounces at lists.roaringpenguin.com] On 
> Behalf Of lists at westerncanada.com
> Sent: Wednesday, January 28, 2004 12:19 PM
> To: mimedefang at lists.roaringpenguin.com
> Subject: [Mimedefang] disable antivirus for one user
....snip....
> 
> does anyone have a quick way to say
> if the recipient is myhoneypot at domain.com exit from the 
> filter completely and deliver as-is?

How about adding and activating filter_recipient?  Then put something
like this in the sub-routine:

sub filter_recipient {
        my($recip, $sender, $ip, $host, $first, $helo) = @_;
        $recip =~ tr/A-Z/a-z/;
        if ($recip =~ /myhoneypot\@domain.com/) {
            return ('ACCEPT_AND_NO_MORE_FILTERING','ok');
        }
}

This is untested code but I believe it should be close....
Randy



More information about the MIMEDefang mailing list