blob: c23ac6da3d3ec366b050a2a345fb934a84208371 (
plain)
- #!/bin/perl
- #
- # /etc/local-COMMON/amavisd.conf.addon
- # Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk>
- #
- # $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: $@";
- #
- # Enable spam checks
- @bypass_spam_checks_maps = (
- \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
- $enable_db = 0;
- # Redpill mailhosts use AMaViS only as back-end
- $final_banned_destiny = D_DISCARD;
- $final_spam_destiny = D_DISCARD;
- # 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;
- $recipient_delimiter = '+';
- $sa_spam_subject_tag = undef;
- $sa_tag_level_deflt = undef; # permits MUA training
- $sa_tag2_level_deflt = 5.0; # move to Junk instead
- $sa_kill_level_deflt = 20.0; # also move >10 to Trash
- $os_fingerprint_method = 'p0f:127.0.0.1:2345';
- 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;
|