This patch resolved my problem.
On Tue, Nov 22, 2016 at 7:14 PM, Konstantin <[email protected]> wrote:
> Hello,
>
> I noticed today that when a message attachment match @banned_filename_maps
> it still scanned by AV engine.
> Is there any option to bypass messages which considered as blocked from AV
> scan?
>
> I have final_banned_destiny = D_REJECT so there is no need to waste time
> for AV scan.
> Regards
>
--
*This message was delivered using 100% recycled electrons*.
--- /usr/sbin/amavisd-2.11-default 2016-08-02 20:43:45.388879030 +0000
+++ /usr/sbin/amavisd-2.11-default-bypass-patch 2016-11-23 11:14:26.192561191 +0000
@@ -14626,6 +14626,10 @@
scalar(@{$msginfo->per_recip_data}));
}
+ if ($banned_filename_any) {
+ do_log(5, "set all_bypass_virus_checks to 1 - skipping virus_scan for banned_filename_any");
+ $all_bypass_virus_checks = 1;
+ }
my $virus_checking_failed = 0;
if (!$extra_code_antivirus) {
do_log(5, "no anti-virus code loaded, skipping virus_scan");