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