I've got two MXes now, with the second using amavis on localhost:10026.
I've set up a policy bank:
$policy_bank{'mx1.example.com'} = {
banned_filename_maps => ['mx1.example.com'],
};
$interface_policy{'10026'} = 'mx1.example.com';
And the associated banned rules:
%banned_rules = (
'DEFAULT' => $banned_filename_re,
'mx1.example.com' => new_RE(
qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll|zip)$'i
),
);
The mail goes to the right place, but nothing happens when amavis scans
a message with an exe attachment:
Feb 11 16:28:50 mx1 amavis[29765]: (29765-01) Passed CLEAN
{RelayedInbound}, mx1.example.com [140.211.166.183]:36193
[65.213.236.244] <[email protected]> -> <[email protected]>,
Message-ID: <[email protected]>, mail_id: uxgYbqgxo2cX,
Hits: -105.031, size: 653323, queued_as: 3kjDcL2HyfzMv0f, 899 ms
Does anyone see what I'm doing wrong? All of the other banned_foo
variables are at their defaults.