problems with whitelisting

hiller hiller at mpia.de
Thu Mar 24 18:13:50 CET 2022


Dear list,

i have installed amavisd-new version 2.11.0. I have problems with whitelisting.
I have googled around and none of the soltions worked.
I amavisd.conf i did:

read_hash(\%whitelist_sender, '/etc/amavisd.whitelist_ext'),
@whitelist_sender_maps = (\%whitelist_sender),

/etc/amavisd.whitelist_ext contains:
.gooddomain.com
friend at nospammer.org

This does not work. Mails from the good addresses are still spamchecked, bannedchecked and headerchecked.

This also does not work:
@whitelist_sender_maps = (['.gooddomain.com', 'friend at nospammer.org']);


Also this does not work either:
read_hash(\%whitelist_sender, '/etc/amavisd.whitelist_ext');
@whitelist_sender_maps = (\%whitelist_sender);

$interface_policy{'10024'} = '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
};

For me bypass_*_checks_maps seems to be a global on/off switch. With this method i do whitelist any address, no matter of the contents of /etc/amavisd.whitelist_ext.

These are the definition of the ports:
# 10024 = outside email - check, don't sign
# 10026 = inside email - check & sign
# 10028 = mailman - sign only; email was checked on delivery
$inet_socket_port = [10024, 10026, 10028];  # listen on multiple TCP ports


Who has a solution or knows what i am doing wrong?
Is more information from me needed?

With kind regards and thank you in advance, ulrich





More information about the amavis-users mailing list