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