summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: 85795eb06e63da275739d72071aebb4ce61041c8 (plain)
  1. #!/bin/perl
  2. ### WARNING: This file is generated automatically.
  3. ### Please edit amavisd.conf.addon.in and run mkaddon.sh
  4. #
  5. # /etc/local-COMMON/amavisd.conf.addon
  6. # Copyright 2002 Jonas Smedegaard <dr@jones.dk>
  7. #
  8. # $Id: amavisd.conf.addon,v 1.40 2006-07-31 01:04:57 jonas Exp $
  9. #
  10. # AMaViS configuration file addon (Debian package "amavisd-new")
  11. #
  12. # Put the following lines at the end of /etc/amavis/amavisd.conf:
  13. #
  14. # my $config_file_addon="/etc/local-COMMON/amavis/amavisd.conf.addon";
  15. # -f $config_file_addon or die "Cannot find config file $config_file_addon";
  16. # do $config_file_addon or die "Error in config file $config_file_addon: $@";
  17. #
  18. # We use SpamAssassin >= 2.44 and have working Internet connection
  19. @bypass_spam_checks_acl = undef;
  20. $bypass_spam_checks_acl = qw( spamalert@ spam.police@ );
  21. $sa_local_tests_only = 0;
  22. $sa_auto_whitelist = undef;
  23. $sa_timeout = 300;
  24. # Make SpamAssassin more visible
  25. #$sa_tag_level_deflt = -9999.9;
  26. #$sa_tag2_level_deflt = 1.0;
  27. $sa_kill_level_deflt = 8.0;
  28. ## Let's bounce everything bad as suggested (why not bad headers per default?)
  29. # ...or let's not (yet)...
  30. #$final_spam_destiny = D_BOUNCE;
  31. #$final_bad_header_destiny = D_BOUNCE;
  32. # We set Postfix timeout to 1200 for the filter, so should be safe raising it here as well
  33. $child_timeout=15*60;
  34. # Deliver quarantined emails through postfix
  35. $virus_quarantine_to = 'virus-quarantine@';
  36. $spam_quarantine_to = 'spam-quarantine@';
  37. # We explicitly set local domains
  38. my $local_domain_file="/etc/local-ORG/amavis/local_domains";
  39. if ( -f $local_domain_file ) {
  40. @local_domains_acl = undef;
  41. read_hash(\%local_domains, $local_domain_file);
  42. # read_hash(\%bypass_spam_checks, $local_domain_file);
  43. } else {
  44. warn "Ignoring non-existing file $local_domain_file";
  45. }
  46. # Let amavisd-new handle all bouncing (postfix dual-MTA setup can't properly)
  47. $final_virus_destiny = D_DISCARD;
  48. $final_banned_destiny = D_BOUNCE;
  49. $final_spam_destiny = D_BOUNCE;
  50. # But ignore bad headers
  51. $final_bad_header_destiny = D_PASS;
  52. $virus_admin = "virusalert\@$mydomain";
  53. $spam_admin = "spamalert\@$mydomain";
  54. $mailfrom_notify_admin = "virusalert\@$mydomain";
  55. $mailfrom_notify_recip = "virusalert\@$mydomain";
  56. $mailfrom_notify_spamadmin = "spam.police\@$mydomain";
  57. map { $virus_lovers{lc($_)}=1; } (qw(
  58. postmaster@
  59. virusalert@
  60. ));
  61. map { $spam_lovers{lc($_)}=1; } (qw(
  62. postmaster@
  63. spamalert@
  64. booking@dgi-huset.dk
  65. ));
  66. $bypass_spam_checks_acl = qw( spamalert@ spam.police@ );
  67. 1;