summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: 899ea7b8434be7a805deb963cb380ff0d307e48e (plain)
  1. #!/bin/perl
  2. #
  3. # /etc/local-COMMON/amavisd.conf.addon
  4. # Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk>
  5. #
  6. # $Id: amavisd.conf.addon,v 1.48 2007-09-25 11:49:36 jonas Exp $
  7. #
  8. # AMaViS configuration file addon (Debian package "amavisd-new")
  9. #
  10. # Put the following lines at the end of /etc/amavis/amavisd.conf:
  11. #
  12. # my $config_file_addon="/etc/local-COMMON/amavis/amavisd.conf.addon";
  13. # -f $config_file_addon or die "Cannot find config file $config_file_addon";
  14. # do $config_file_addon or die "Error in config file $config_file_addon: $@";
  15. #
  16. # We explicitly set local domains
  17. my $local_domain_file="/etc/local-ORG/amavis/local_domains";
  18. if ( -f $local_domain_file ) {
  19. @local_domains_acl = undef;
  20. read_hash(\%local_domains, $local_domain_file);
  21. # read_hash(\%bypass_spam_checks, $local_domain_file);
  22. } else {
  23. warn "Ignoring non-existing file $local_domain_file";
  24. }
  25. # Suppress virus notifications (noone reads them anyway)
  26. $virus_admin = undef;
  27. # Recommendations from http://www200.pair.com/mecham/spam/spamfilter20060630.html
  28. # ...but lowered slightly
  29. $recipient_delimiter = '+';
  30. $sa_tag_level_deflt = undef;
  31. $sa_tag2_level_deflt = 3.0;
  32. $sa_kill_level_deflt = 10.0;
  33. # Default is 2 - let's try increasing for (hopefully) better performance
  34. $max_servers = 5;
  35. my $config_file_addon_org="/etc/local-ORG/amavis/amavisd.conf.addon";
  36. if ( -f $config_file_addon_org ) {
  37. do $config_file_addon_org or die "Error in config file $config_file_addon_org: $@";
  38. } else {
  39. warn "Ignoring non-existing file $config_file_addon_org";
  40. }
  41. 1;