summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: dfa8326e9eca576710bdb0bc5474198f8614a6e9 (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.33 2005-04-12 17:02:31 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 = 1;
  23. $sa_timeout = 300;
  24. ## Let's bounce everything bad as suggested (why not bad headers per default?)
  25. # ...or let's not (yet)...
  26. #$final_spam_destiny = D_BOUNCE;
  27. #$final_bad_header_destiny = D_BOUNCE;
  28. # We set Postfix timeout to 1200 for the filter, so should be safe raising it here as well
  29. $child_timeout=15*60;
  30. # Deliver quarantined emails through postfix
  31. $virus_quarantine_to = 'virus-quarantine@';
  32. $spam_quarantine_to = 'spam-quarantine@';
  33. # We explicitly set local domains
  34. my $local_domain_file="/etc/local-COMMON/amavis/local_domains_$mydomain";
  35. if ( -f $local_domain_file ) {
  36. @local_domains_acl = undef;
  37. read_hash(\%local_domains, $local_domain_file);
  38. read_hash(\%bypass_spam_checks, $local_domain_file);
  39. } else {
  40. warn "Ignoring non-existing file $local_domain_file";
  41. }
  42. # Let amavisd-new handle all bouncing (postfix dual-MTA setup can't properly)
  43. $final_virus_destiny = D_BOUNCE;
  44. $final_banned_destiny = D_BOUNCE;
  45. $final_spam_destiny = D_BOUNCE;
  46. # But ignore bad headers
  47. $final_bad_header_destiny = D_PASS;
  48. $virus_admin = "virusalert\@$mydomain";
  49. $spam_admin = "spamalert\@$mydomain";
  50. $mailfrom_notify_admin = "virusalert\@$mydomain";
  51. $mailfrom_notify_recip = "virusalert\@$mydomain";
  52. $mailfrom_notify_spamadmin = "spam.police\@$mydomain";
  53. map { $virus_lovers{lc($_)}=1; } (qw(
  54. postmaster@
  55. virusalert@
  56. ));
  57. map { $spam_lovers{lc($_)}=1; } (qw(
  58. postmaster@
  59. spamalert@
  60. booking@dgi-huset.dk
  61. ));
  62. $bypass_spam_checks_acl = qw( spamalert@ spam.police@ );