r11: Preliminary etch package.
[amavisd-cn.git] / templates / 40-carnet
1 use strict;
2
3 ##
4 ## amavisd-new CARNet configuration file
5 ##
6 ## This file contains the config entries that we modify programatically,
7 ## or that we think are better defaults than what Debian provides.
8 ##
9 ## Do not edit this file, put your changes in 50-user instead!
10 ##
11
12 # override $mydomain from 05-domain_id and 20-debian_defaults
13 #
14 $mydomain = '_CN_DOMAIN_';
15 @local_domains_acl = ( "$mydomain", ".$mydomain" );
16
17 # prettify the return path for notifications a bit in case there's a
18 # separate person handling these, ie. if the user customizes
19 # virusalert or spamalert aliases.
20 #
21 $mailfrom_notify_admin     = "virusalert\@$mydomain";
22 $mailfrom_notify_recip     = "virusalert\@$mydomain";
23 $mailfrom_notify_spamadmin = "spamalert\@$mydomain";
24 # Keep the default for now
25 #$virus_admin               = "postmaster\@$mydomain";
26
27 # Keep the default for now
28 # $X_HEADER_TAG = 'X-Virus-Scanned';    # (default: undef)
29 # $X_HEADER_LINE = "by $myversion (Debian) at $mydomain";
30
31 # postfix configuration, postfix' listener socket
32 #
33 $forward_method = 'smtp:127.0.0.1:10025';  # where to forward checked mail
34 $notify_method  = $forward_method;         # where to submit notifications
35
36 # postfix setup for notifications, for rationale read the comments about
37 # LMTP in /usr/share/doc/amavisd-new/README.postfix.gz
38 #
39 $final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
40 $final_banned_destiny     = D_BOUNCE;  # (defaults to D_BOUNCE)
41 $final_spam_destiny       = D_BOUNCE;  # (defaults to D_REJECT)
42 $final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested
43
44 # read our legacy sender white/blacklists
45 #
46 if (-f "$MYHOME/whitelist_sender") {
47   read_hash(\%whitelist_sender, "$MYHOME/whitelist_sender");
48 }
49 if (-f "$MYHOME/blacklist_sender") {
50   read_hash(\%blacklist_sender, "$MYHOME/blacklist_sender");
51 }
52
53 # A small optimization
54 $first_infected_stops_scan = 1;        # default is false, all scanners are called
55
56 # placeholder for AVs we might enable
57 #
58 push @av_scanners, (
59
60 # ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/
61 # ['Sophos SAVI', \&sophos_savi ],
62
63 )
64
65 # Always have an AV fallback
66 #
67 push @av_scanners_backup = (
68
69 # always succeeds (uncomment to consider mail clean if all other scanners fail)
70 ['always-clean', sub {0}],
71
72 )
73
74 1;  # insure a defined return