Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Notes / Amavisd-new - whitelist IP

Amavisd-new - whitelist IP

Amavisd-new - whitelist IP address, bypass IP address

 

Postfix's main.cf:
smtpd_client_restrictions =
check_client_access hash:/usr/local/etc/postfix/amavis_bypass

contents of /usr/local/etc/postfix/amavis_bypass
(ip address of the client is listed here):
192.168.1.17 FILTER smtp-amavis:[127.0.0.1]:10026

amavisd.conf:
# change existing setting:
$inet_socket_port = [10024, 10026];

$interface_policy{'10026'} = 'CLIENTBYPASS';

$policy_bank{'CLIENTBYPASS'} = {  # mail originating from trusted clients
bypass_spam_checks_maps   => [1],  # don't spam-check
bypass_banned_checks_maps => [1],  # don't banned-check
final_spam_destiny   => D_PASS, # insure spam passes
final_banned_destiny => D_PASS, # insure banned files pass
};

 

Source