install_amavis.sh: some changes (i.e. port number) for whitelisted sender addresses.

This commit is contained in:
Christoph 2023-05-18 12:51:27 +02:00
parent 058ea39ce7
commit db1c2fd72b

View File

@ -3904,6 +3904,8 @@ use strict;
# 10024: default listening port # 10024: default listening port
# 10026: used for whitelisting IP's (trusted networks) # 10026: used for whitelisting IP's (trusted networks)
# #
# 10029: used for whitelisting senders from spam checks BUT NOT from virus check
#
# Notice: take care, to configure postfix sending mails from # Notice: take care, to configure postfix sending mails from
# trusted networks to port 10026 # trusted networks to port 10026
# #
@ -3924,10 +3926,8 @@ use strict;
# #
# #
#\$inet_socket_port = [10024, 10026]; #\$inet_socket_port = [10024, 10026];
#\$inet_socket_port = [10024, 10029];
# We use port '10026' for whitelisted sender (no spam checks) - see below #\$inet_socket_port = [10024, 10026, 10029];
#
\$inet_socket_port = [10024, 10026];
# Bypass spam checking fro trusted networks # Bypass spam checking fro trusted networks
# #
@ -3940,6 +3940,16 @@ use strict;
#}; #};
# Bypass spam checking for whitelisted senders
#
#\$interface_policy{'10029'} = '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
#};
## - 7 instances seems to be a good value. ## - 7 instances seems to be a good value.
## - ## -
\$max_servers = 7; \$max_servers = 7;
@ -3990,15 +4000,6 @@ read_hash(\%whitelist_sender, '/etc/postfix/sender_whitelist');
## - ## -
@whitelist_sender_maps = (\%whitelist_sender); @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 ## - Default antivirus checking mode