[Mimedefang] disable antivirus for one user
David F. Skoll
dfs at roaringpenguin.com
Wed Jan 28 14:22:39 EST 2004
On Wed, 28 Jan 2004, Rick Mallett wrote:
> sub filter_recipient() {
> my ($recip, $sender, $ip, $hostname, $first, $helo, @rcpt) = @_;
>
> return ('ACCEPT_AND_NO_MORE_FILTERING','ok') if
> lc($recip) =~ /<?myhoneypot\@domain.com>?/;
>
> return ('CONTINUE', "ok");
> }
That will work, but because of a limitation in Milter, the message
won't be filtered even if there's more than one recipient. Thus, if
there are two recipients: windoze_user at mydomain.com and honeypot at mydomain.com,
then returning ACCEPT_AND_NO_MORE_FILTERING for honeypot will *also* not
filter the mail for windoze_user.
The "correct" way to do this is to stream by recipient and then make
your decisions in filter_begin/filter/filter_end. This has downsides too,
notably the burden of generating bounce messages if a message that was
streamed is subsequently rejected.
Regards,
David.
More information about the MIMEDefang
mailing list