r16: - revert clamav dependency back to clamav-cn, it does
[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 value from 05-domain_id and 20-debian_defaults
13 # but keep local_domains we got there
14 #
15 $mydomain = '_CN_DOMAIN_';
16 push @local_domains_acl, ( "$mydomain", ".$mydomain" );
17
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.
21 #
22 $mailfrom_notify_admin     = "virusalert\@$mydomain";
23 $mailfrom_notify_recip     = "virusalert\@$mydomain";
24 $mailfrom_notify_spamadmin = "spamalert\@$mydomain";
25 # Keep the default for now
26 #$virus_admin               = "postmaster\@$mydomain";
27
28 # Keep the default for now
29 # $X_HEADER_TAG = 'X-Virus-Scanned';    # (default: undef)
30 # $X_HEADER_LINE = "by $myversion (Debian) at $mydomain";
31
32 # postfix configuration, postfix' listener socket
33 #
34 $forward_method = 'smtp:127.0.0.1:10025';  # where to forward checked mail
35 $notify_method  = $forward_method;         # where to submit notifications
36
37 # postfix setup for notifications, for rationale read the comments about
38 # LMTP in /usr/share/doc/amavisd-new/README.postfix.gz
39 #
40 $final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
41 $final_banned_destiny     = D_BOUNCE;  # (defaults to D_BOUNCE)
42 $final_spam_destiny       = D_BOUNCE;  # (defaults to D_REJECT)
43 $final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested
44
45 # read our legacy sender white/blacklists
46 #
47 if (-f "$MYHOME/whitelist_sender") {
48   read_hash(\%whitelist_sender, "$MYHOME/whitelist_sender");
49 }
50 if (-f "$MYHOME/blacklist_sender") {
51   read_hash(\%blacklist_sender, "$MYHOME/blacklist_sender");
52 }
53
54 # A small optimization
55 $first_infected_stops_scan = 1;        # default is false, all scanners are called
56
57 # placeholder for AVs we might enable
58 #
59 push @av_scanners, (
60
61 # ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/
62 # ['Sophos SAVI', \&sophos_savi ],
63
64 );
65
66 # Always have an AV fallback
67 #
68 push @av_scanners_backup, (
69
70 # always succeeds (uncomment to consider mail clean if all other scanners fail)
71 ['always-clean', sub {0}],
72
73 );
74
75 1;  # insure a defined return