summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: ee03872bd0e153744bb8ec230e58f667f334fbbd (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.28 2004-03-11 10:29:14 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
  19. @bypass_spam_checks_acl = undef;
  20. $sa_auto_whitelist = 1;
  21. ## Let's bounce everything bad as suggested (why not bad headers per default?)
  22. # ...or let's not (yet)...
  23. #$final_spam_destiny = D_BOUNCE;
  24. #$final_bad_header_destiny = D_BOUNCE;
  25. # We set Postfix timeout to 1200 for the filter, so should be safe raising it here as well
  26. $child_timeout=15*60;
  27. # Deliver quarantined emails through postfix
  28. $virus_quarantine_to = 'virus-quarantine@';
  29. $spam_quarantine_to = 'spam-quarantine@';
  30. # We explicitly set local domains
  31. @local_domains_acl = undef;
  32. my $local_domain_file="/etc/local-COMMON/amavis/local_domains_$mydomain";
  33. if ( -f $local_domain_file ) {
  34. read_hash(\%local_domains, $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_BOUNCE;
  40. $final_banned_destiny = D_BOUNCE;
  41. $final_spam_destiny = D_BOUNCE;
  42. $final_bad_header_destiny = D_BOUNCE;
  43. $virus_admin = "virusalert\@$mydomain";
  44. $spam_admin = "spamalert\@$mydomain";
  45. $mailfrom_notify_admin = "virusalert\@$mydomain";
  46. $mailfrom_notify_recip = "virusalert\@$mydomain";
  47. $mailfrom_notify_spamadmin = "spam.police\@$mydomain";
  48. map { $virus_lovers{lc($_)}=1; } (qw(
  49. postmaster@
  50. virusalert@
  51. ));
  52. map { $spam_lovers{lc($_)}=1; } (qw(
  53. postmaster@
  54. spamalert@
  55. booking@dgi-huset.dk
  56. ));
  57. $bypass_spam_checks_acl = qw( spamalert@ spam.police@ );