c60c5eb39947dc34a752c3886a7837fade9d27f6
[lhc/ateliers.git] / etc / amavis / 50-user
1 use strict;
2
3 ## GENERAL
4 @local_domains_acl =
5 ( ".heureux-cyclage.org"
6 , ".cyclocoop.org"
7 , ".wiklou.org"
8 );
9 $max_servers = 2;
10
11 ## LOGGING AND DEBUGGING
12 $log_level = 2;
13 # $logfile = undef;
14 $do_syslog = 1;
15 $syslog_ident = 'amavis';
16 $syslog_facility = 'mail';
17 # $logline_maxlen = 980;
18
19 # $log_short_templ ... built-in default at the end of file amavisd
20 # $log_verbose_templ ... built-in default at the end of file amavisd
21 # $log_recip_templ = ... built-in default at the end of file amavisd
22 # $log_templ = $log_short_templ;
23
24 ## MTA INTERFACE
25 $protocol = 'LMTP';
26 @inet_acl = qw( 127.0.0.1 );
27 @mynetworks = qw(127.0.0.0/8 ::1/128);
28 $inet_socket_port = [10024, 10026];
29
30 $interface_policy{'10024'} = 'Net2Loc';
31 $policy_bank{'Net2Loc'} = {
32 forward_method => 'smtp:[127.0.0.1]:10025',
33 notify_method => 'smtp:[127.0.0.1]:10025',
34 };
35 @dkim_signature_options_bysender_maps = (
36 { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } }
37 );
38
39 dkim_key('wiklou.org', 'wiklou', '/var/lib/amavis/dkim/wiklou.org.pem');
40 dkim_key('heureux-cyclage.org', 'heureux-cyclage', '/var/lib/amavis/dkim/heureux-cyclage.org.pem');
41
42 $interface_policy{'10026'} = 'Loc2Net';
43 $policy_bank{'Loc2Net'} = {
44 forward_method => 'smtp:[127.0.0.1]:10027',
45 notify_method => 'smtp:[127.0.0.1]:10027',
46 originating => 1,
47 enable_dkim_signing => 1,
48 smtpd_greeting_banner =>
49 '${helo-name} ${protocol} ${product} Loc2Net service ready',
50 archive_quarantine_to_maps => [],
51 banned_files_lovers_maps => [1],
52 bounce_killer_score => 0,
53 bypass_banned_checks_maps => [1],
54 bypass_decode_parts => 1,
55 bypass_header_checks_maps => [1],
56 bypass_spam_checks_maps => [1],
57 bypass_virus_checks_maps => [1],
58 mynetworks_maps => [],
59 os_fingerprint_method => undef,
60 penpals_bonus_score => undef,
61 remove_existing_spam_headers => undef,
62 remove_existing_x_scanned_headers => undef,
63 signed_header_fields => { 'Sender' => 1 },
64 spam_lovers_maps => [1],
65 };
66
67 ## MODIFICATIONS TO PASSED MAIL
68 #$prefer_our_added_header_fields{lc('X-CRM114-CacheID')} = 0;
69 #$allowed_added_header_fields{lc('X-CRM114-CacheID')} = 1;
70
71 ## ANTI-Spam CONTROLS
72 $sa_mail_body_size_limit = 400*1024;
73 $sa_local_tests_only = 1;
74 # $sa_spawned = 0;
75 # $dspam = undef;
76 # $sa_timeout = 30;
77
78 $sa_tag_level_deflt = undef; # add spam info headers if at, or above that level
79 $sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level
80 #$sa_tag3_level_deflt = undef;
81 $sa_kill_level_deflt = 9999; # triggers spam evasive actions (e.g. blocks mail)
82 $sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
83 # $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off
84 $sa_spam_level_char = '*';
85
86 # NOTE: disable quarantine
87 $banned_quarantine_to = undef;
88 $bad_header_quarantine_method = undef;
89 $bad_header_quarantine_to = undef;
90 $spam_quarantine_method = undef;
91 $spam_quarantine_to = undef;
92 $sa_spam_subject_tag = undef;
93 $virus_quarantine_method = undef;
94 $virus_quarantine_to = undef;
95 $final_banned_destiny = D_PASS; # (defaults to D_BOUNCE)
96 $final_spam_destiny = D_PASS; # (defaults to D_BOUNCE)
97 $final_bad_header_destiny = D_PASS; # (defaults to D_PASS)