From 225d8f83c69b229b420bc4e95f0d9d17db29c4db Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 17 May 2023 01:52:02 +0200 Subject: [PATCH] install_amavis.sh: do virus check on whitelisted addresses. --- install_amavis.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/install_amavis.sh b/install_amavis.sh index 4cde30c..86d5079 100755 --- a/install_amavis.sh +++ b/install_amavis.sh @@ -3954,12 +3954,6 @@ use strict; ## - -## - Global whitelisting of senders. -## - -## - Don't know if this works !! -## - -@whitelist_sender_maps = (\%whitelist_sender); - ## - %whitelist_sender = ( ## - # Full E-Mail Adresses ## - adress1@domain1.com => '1', @@ -3986,6 +3980,21 @@ use strict; ## - read_hash(\%whitelist_sender, '/etc/postfix/sender_whitelist'); +## - Global whitelisting of senders. +## - +## - Don't know if this works !! +## - +@whitelist_sender_maps = (\%whitelist_sender); + +## - Only whitelist from Spam, Banned and Header check and NOT from virus checks.. +## - +\$interface_policy{'10026'} = 'VIRUSONLY'; +\$policy_bank{'VIRUSONLY'} = { # mail from the pickup daemon + bypass_spam_checks_maps => ['@whitelist_sender_maps'], # don't spam-check this mail + bypass_banned_checks_maps => ['@whitelist_sender_maps'], # don't banned-check this mail + bypass_header_checks_maps => ['@whitelist_sender_maps'], # don't header-check this mail +}; + ## --- ## - Default antivirus checking mode