summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: 4ec84ec32ddfd735746276a2abd979b5ac0c2c23 (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.49 2007-09-25 12:22:10 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. # Explicitly set local domains
  17. my $local_domains_file="/etc/local-ORG/amavis/local_domains";
  18. if ( -f $local_domains_file ) {
  19. @local_domains_acl = undef;
  20. read_hash(\%local_domains, $local_domains_file);
  21. } else {
  22. warn "Ignoring non-existing file $local_domains_file";
  23. }
  24. # Avoid expensive spamscanning when MX backup
  25. my $nonlocal_domains_file="/etc/local-ORG/amavis/nonlocal_domains";
  26. if ( -f $nonlocal_domains_file ) {
  27. read_hash(\%bypass_spam_checks, $nonlocal_domains_file);
  28. } else {
  29. warn "Ignoring non-existing file $nonlocal_domains_file";
  30. }
  31. # Suppress virus notifications (noone reads them anyway)
  32. $virus_admin = undef;
  33. # Suppress noise if failing to undecipher (e.g. GPG-encrypted mail)
  34. $undecipherable_subject_tag = undef;
  35. $recipient_delimiter = '+';
  36. $sa_tag_level_deflt = undef; # permits MUA training
  37. $sa_tag2_level_deflt = undef; # move to Junk instead
  38. $sa_kill_level_deflt = 20.0; # also move >10 to Trash
  39. my $config_file_addon_org="/etc/local-ORG/amavis/amavisd.conf.addon";
  40. if ( -f $config_file_addon_org ) {
  41. do $config_file_addon_org or die "Error in config file $config_file_addon_org: $@";
  42. } else {
  43. warn "Ignoring non-existing file $config_file_addon_org";
  44. }
  45. 1;