#!/bin/perl # # /etc/local-COMMON/amavisd.conf.addon # Copyright 2002 Jonas Smedegaard # # $Id: amavisd.conf.addon.in,v 1.7 2003-08-17 22:05:03 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: $@"; # # We use SpamAssassin >= 2.44 @bypass_spam_checks_acl = undef; $sa_auto_whitelist = 1; ## Let's bounce everything bad as suggested (why not bad headers per default?) # ...or let's not (yet)... #$final_spam_destiny = D_BOUNCE; #$final_bad_header_destiny = D_BOUNCE; # We set Postfix timeout to 1200 for the filter, so should be safe raising it here as well $child_timeout=15*60; # Deliver quarantined emails through postfix $virus_quarantine_to = 'virus-quarantine@'; $spam_quarantine_to = 'spam-quarantine@'; # We explicitly set local domains @local_domains_acl = undef; my $local_domain_file="/etc/local-COMMON/amavis/local_domains_$mydomain"; if ( -f $local_domain_file ) { read_hash(\%local_domains, $local_domain_file); } else { warn "Ignoring non-existing file $local_domain_file"; } $spam_admin = "spamalert\@$mydomain"; $mailfrom_notify_admin = "virusalert\@$mydomain"; $mailfrom_notify_recip = "virusalert\@$mydomain"; $mailfrom_notify_spamadmin = "spam.police\@$mydomain"; map { $virus_lovers{lc($_)}=1; } (qw( postmaster@ virusalert@ )); map { $spam_lovers{lc($_)}=1; } (qw( postmaster@ spamalert@ ));