summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon.in
blob: 5ed1034de6df5c29f0353c3e2d224cd7c543e3f3 (plain)
  1. #!/bin/perl
  2. #
  3. # /etc/local-COMMON/amavisd.conf.addon
  4. # Copyright 2002 Jonas Smedegaard <dr@jones.dk>
  5. #
  6. # $Id: amavisd.conf.addon.in,v 1.14 2005-12-10 23:57:48 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 use SpamAssassin >= 2.44 and have working Internet connection
  17. @bypass_spam_checks_acl = undef;
  18. $bypass_spam_checks_acl = qw( spamalert@ spam.police@ );
  19. $sa_local_tests_only = 0;
  20. #$sa_auto_whitelist = 1;
  21. $sa_timeout = 300;
  22. # Make SpamAssassin more visible
  23. $sa_tag_level_deflt = -9999.9;
  24. $sa_tag2_level_deflt = 5.0;
  25. $sa_kill_level_deflt = 8.0;
  26. ## Let's bounce everything bad as suggested (why not bad headers per default?)
  27. # ...or let's not (yet)...
  28. #$final_spam_destiny = D_BOUNCE;
  29. #$final_bad_header_destiny = D_BOUNCE;
  30. # We set Postfix timeout to 1200 for the filter, so should be safe raising it here as well
  31. $child_timeout=15*60;
  32. # Deliver quarantined emails through postfix
  33. $virus_quarantine_to = 'virus-quarantine@';
  34. $spam_quarantine_to = 'spam-quarantine@';
  35. # We explicitly set local domains
  36. my $local_domain_file="/etc/local-COMMON/amavis/local_domains_$mydomain";
  37. if ( -f $local_domain_file ) {
  38. @local_domains_acl = undef;
  39. read_hash(\%local_domains, $local_domain_file);
  40. read_hash(\%bypass_spam_checks, $local_domain_file);
  41. } else {
  42. warn "Ignoring non-existing file $local_domain_file";
  43. }
  44. # Let amavisd-new handle all bouncing (postfix dual-MTA setup can't properly)
  45. $final_virus_destiny = D_BOUNCE;
  46. $final_banned_destiny = D_BOUNCE;
  47. $final_spam_destiny = D_BOUNCE;
  48. # But ignore bad headers
  49. $final_bad_header_destiny = D_PASS;
  50. $virus_admin = "virusalert\@$mydomain";
  51. $spam_admin = "spamalert\@$mydomain";
  52. $mailfrom_notify_admin = "virusalert\@$mydomain";
  53. $mailfrom_notify_recip = "virusalert\@$mydomain";
  54. $mailfrom_notify_spamadmin = "spam.police\@$mydomain";
  55. map { $virus_lovers{lc($_)}=1; } (qw(
  56. postmaster@
  57. virusalert@
  58. ));
  59. map { $spam_lovers{lc($_)}=1; } (qw(
  60. postmaster@
  61. spamalert@
  62. booking@dgi-huset.dk
  63. ));
  64. $bypass_spam_checks_acl = qw( spamalert@ spam.police@ );