summaryrefslogtreecommitdiff
path: root/amavis/amavisd.conf.addon
blob: 34e1539c38e901b07b378b3965d98b29354cb224 (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.26 2003-08-18 02:00:23 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. $spam_admin = "spamalert\@$mydomain";
  39. $mailfrom_notify_admin = "virusalert\@$mydomain";
  40. $mailfrom_notify_recip = "virusalert\@$mydomain";
  41. $mailfrom_notify_spamadmin = "spam.police\@$mydomain";
  42. map { $virus_lovers{lc($_)}=1; } (qw(
  43. postmaster@
  44. virusalert@
  45. ));
  46. map { $spam_lovers{lc($_)}=1; } (qw(
  47. postmaster@
  48. spamalert@
  49. ));