summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: c23ac6da3d3ec366b050a2a345fb934a84208371 (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. # Enable spam checks
  17. @bypass_spam_checks_maps = (
  18. \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
  19. $enable_db = 0;
  20. # Redpill mailhosts use AMaViS only as back-end
  21. $final_banned_destiny = D_DISCARD;
  22. $final_spam_destiny = D_DISCARD;
  23. # Explicitly set local domains
  24. my $local_domains_file="/etc/local-ORG/amavis/local_domains";
  25. if ( -f $local_domains_file ) {
  26. @local_domains_acl = undef;
  27. read_hash(\%local_domains, $local_domains_file);
  28. } else {
  29. warn "Ignoring non-existing file $local_domains_file";
  30. }
  31. # Avoid expensive spamscanning when MX backup
  32. my $nonlocal_domains_file="/etc/local-ORG/amavis/nonlocal_domains";
  33. if ( -f $nonlocal_domains_file ) {
  34. read_hash(\%bypass_spam_checks, $nonlocal_domains_file);
  35. } else {
  36. warn "Ignoring non-existing file $nonlocal_domains_file";
  37. }
  38. # Suppress virus notifications (noone reads them anyway)
  39. $virus_admin = undef;
  40. # Suppress noise if failing to undecipher (e.g. GPG-encrypted mail)
  41. $undecipherable_subject_tag = undef;
  42. $recipient_delimiter = '+';
  43. $sa_spam_subject_tag = undef;
  44. $sa_tag_level_deflt = undef; # permits MUA training
  45. $sa_tag2_level_deflt = 5.0; # move to Junk instead
  46. $sa_kill_level_deflt = 20.0; # also move >10 to Trash
  47. $os_fingerprint_method = 'p0f:127.0.0.1:2345';
  48. my $config_file_addon_org="/etc/local-ORG/amavis/amavisd.conf.addon";
  49. if ( -f $config_file_addon_org ) {
  50. do $config_file_addon_org or die "Error in config file $config_file_addon_org: $@";
  51. } else {
  52. warn "Ignoring non-existing file $config_file_addon_org";
  53. }
  54. 1;