I believe you need to update /opt/zimbra/conf/amavisd.conf.in and set the following Code:
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
$policy_bank{'MYNETS'} = {
originating => 1,
bypass_spam_checks_maps => [1],
allow_disclaimers => %%binary VAR:zimbraDomainMandatoryMailSignatureEnabled%%,
log_level => 1,
}; perhaps a cleaner method would be to create a second listener address which your other servers would relay through instead of port 25 Code:
$inet_socket_port = [10024, 10026];
$interface_policy{'10026'} = 'BYPASS';
$policy_bank{'BYPASS'} = {
originating => 1,
bypass_spam_checks_maps => [1],
bypass_banned_checks_maps => [1],
bypass_header_checks_maps => [1],
}; that will create a second amavisd listener on port 10026; now tell Postfix about it by updating /opt/zimbra/postfix/conf/master.cf and adding Code:
9925 inet n - n - - smtpd
-o smtpd_client_restrictions=permit_mynetworks,reject
-o content_filter=smtp-amavis:[127.0.0.1]:10026
So if your other servers relay on port 9925 all spam checks will be bypassed.
The final alternative would be to fix your sending servers so they don't generate spam type emails