#!/bin/perl # # /etc/local-COMMON/amavisd.conf.addon # Copyright 2002-2007 Jonas Smedegaard # # $Id: amavisd.conf.addon,v 1.49 2007-09-25 12:22:10 jonas Exp $ # # AMaViS configuration file addon (Debian package "amavisd-new") # # Put the following lines at the end of /etc/amavis/amavisd.conf: # # my $config_file_addon="/etc/local-COMMON/amavis/amavisd.conf.addon"; # -f $config_file_addon or die "Cannot find config file $config_file_addon"; # do $config_file_addon or die "Error in config file $config_file_addon: $@"; # # Explicitly set local domains my $local_domains_file="/etc/local-ORG/amavis/local_domains"; if ( -f $local_domains_file ) { @local_domains_acl = undef; read_hash(\%local_domains, $local_domains_file); } else { warn "Ignoring non-existing file $local_domains_file"; } # Avoid expensive spamscanning when MX backup my $nonlocal_domains_file="/etc/local-ORG/amavis/nonlocal_domains"; if ( -f $nonlocal_domains_file ) { read_hash(\%bypass_spam_checks, $nonlocal_domains_file); } else { warn "Ignoring non-existing file $nonlocal_domains_file"; } # Suppress virus notifications (noone reads them anyway) $virus_admin = undef; # Suppress noise if failing to undecipher (e.g. GPG-encrypted mail) $undecipherable_subject_tag = undef; # Recommendations from http://www200.pair.com/mecham/spam/spamfilter20060630.html # ...but lowered slightly $recipient_delimiter = '+'; $sa_tag_level_deflt = undef; $sa_tag2_level_deflt = 3.0; $sa_kill_level_deflt = 10.0; # Default is 2 - let's try increasing for (hopefully) better performance $max_servers = 5; my $config_file_addon_org="/etc/local-ORG/amavis/amavisd.conf.addon"; if ( -f $config_file_addon_org ) { do $config_file_addon_org or die "Error in config file $config_file_addon_org: $@"; } else { warn "Ignoring non-existing file $config_file_addon_org"; } 1;