View Single Post
  #10 (permalink)  
Old 04-24-2009, 12:58 PM
su_A_ve su_A_ve is offline
Special Member
 
Posts: 105
Default

This is how we blacklist outbound emails.... This came from Mark Martinec, author of amavisd-new

The following goes in /opt/zimbra/conf/amavis.conf.in just before the @decoders section - This is based on 4.5.x, however should be the same for newer amavisd-new versions.

The format for the recip_scores_sitewide file would be

reply-to-email@domain.net +100

This will add 100 SA points to an outbound email message, hence triggering amavis evasive actions and discarding the message.

Code:
# Add the following at the end of the  "end of site-wide tables });

### 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);
}
Reply With Quote