4 ## amavisd-new CARNet configuration file
6 ## This file contains the config entries that we modify programatically,
7 ## or that we think are better defaults than what Debian provides.
9 ## Do not edit this file, put your changes in 50-user instead!
12 # override $mydomain value from 05-domain_id and 20-debian_defaults
13 # but keep local_domains we got there
15 $mydomain = '_CN_DOMAIN_';
16 push @local_domains_acl, ( "$mydomain", ".$mydomain" );
18 # prettify the return path for notifications a bit in case there's a
19 # separate person handling these, ie. if the user customizes
20 # virusalert or spamalert aliases.
22 $mailfrom_notify_admin = "virusalert\@$mydomain";
23 $mailfrom_notify_recip = "virusalert\@$mydomain";
24 $mailfrom_notify_spamadmin = "spamalert\@$mydomain";
26 # Add a line like this (but uncommented) in 50-user if you want it.
27 #$virus_admin = "postmaster\@$mydomain";
29 # Keep the default for now
30 # $X_HEADER_TAG = 'X-Virus-Scanned'; # (default: undef)
31 # $X_HEADER_LINE = "by $myversion (Debian) at $mydomain";
33 # postfix configuration, postfix' listener socket
35 $forward_method = 'smtp:127.0.0.1:10025'; # where to forward checked mail
36 $notify_method = $forward_method; # where to submit notifications
38 # Default antivirus checking mode
40 @bypass_virus_checks_maps = (
41 \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
43 # Default SPAM checking mode
45 @bypass_spam_checks_maps = (
46 \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
48 # postfix setup for notifications, for rationale read the comments about
49 # LMTP in /usr/share/doc/amavisd-new/README.postfix.gz
51 $final_virus_destiny = D_DISCARD; # (defaults to D_BOUNCE)
52 $final_banned_destiny = D_BOUNCE; # (defaults to D_BOUNCE)
53 $final_spam_destiny = D_BOUNCE; # (defaults to D_REJECT)
54 $final_bad_header_destiny = D_PASS; # (defaults to D_PASS), D_BOUNCE suggested
56 # read our legacy sender white/blacklists
58 if (-f "$MYHOME/whitelist_sender") {
59 read_hash(\%whitelist_sender, "$MYHOME/whitelist_sender");
61 if (-f "$MYHOME/blacklist_sender") {
62 read_hash(\%blacklist_sender, "$MYHOME/blacklist_sender");
65 # A small optimization
66 $first_infected_stops_scan = 1; # default is false, all scanners are called
68 # placeholder for AVs we might enable
72 # ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/
73 # ['Sophos SAVI', \&sophos_savi ],
77 # Always have an AV fallback
79 push @av_scanners_backup, (
81 # Commented out because the name 'sweep' clashes with Debian and FreeBSD
82 # package/port of an audio editor. Make sure the correct 'sweep' is found
83 # in the path when enabling.
85 # ### http://www.sophos.com/ - backs up Sophie or SAVI-Perl
86 ['Sophos Anti Virus (sweep)', 'sweep',
87 '-nb -f -all -rec -ss -sc -archive -cab -tnef --no-reset-atime {}',
88 [0,2], qr/Virus .*? found/,
89 qr/^>>> Virus(?: fragment)? '?(.*?)'? found/,
91 # other options to consider: -mime -oe -idedir=/usr/local/sav
93 # always succeeds (uncomment to consider mail clean if all other scanners fail)
94 ['always-clean', sub {0}],
98 1; # insure a defined return