The following code was given by Mark Martinec, author of amavisd. It needs to be placed right after the end of the @score_sender_maps array and before the @decoders array in amavisd.conf.in
Code:
### The following will read a hash of recipients and scores
{ my($hr) = read_hash("/etc/zimbra/recip_scores_sitewide");
my($outer) = {};
while (my($recip,$score) = each %$hr) { $outer->{$recip} = [{'.'=>$score}] }
push(@score_sender_maps, $outer);
} Then simply create a text file named recip_scores_sitewide and the fomat would be like:
Code:
blocked_recip@domain.com +50
.spamdomain.com +50
whitelisted_recip@otherdomain.com -50
.gooddomain.com -50
And reload with zmamavisdctl