blob: 34e1539c38e901b07b378b3965d98b29354cb224 (
plain)
- #!/bin/perl
- ### WARNING: This file is generated automatically.
- ### Please edit amavisd.conf.addon.in and run mkaddon.sh
- #
- # /etc/local-COMMON/amavisd.conf.addon
- # Copyright 2002 Jonas Smedegaard <dr@jones.dk>
- #
- # $Id: amavisd.conf.addon,v 1.26 2003-08-18 02:00:23 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@
- ));
|