Marius Burkard
2016-07-08 73c2f4f9253638a4f21e323e48242217276e3e50
commit | author | age
9200ad 1 use strict;
T 2
3 #
4 # Place your configuration directives here.  They will override those in
5 # earlier files.
6 #
7 # See /usr/share/doc/amavisd-new/ for documentation and examples of
8 # the directives you can use in this file
9 #
10
11 @bypass_virus_checks_maps = (
12    \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
13
14 @bypass_spam_checks_maps = (
15    \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
16
17 #   
18 # Database connection settings
19 #
20
21 @lookup_sql_dsn =
22    ( ['DBI:mysql:database={mysql_server_database};host={mysql_server_ip};port={mysql_server_port}', '{mysql_server_ispconfig_user}', '{mysql_server_ispconfig_password}'] );
23
24 # @storage_sql_dsn = @lookup_sql_dsn;  # none, same, or separate database
25 #$sql_select_policy = 'SELECT "Y" as local FROM mail_domain WHERE CONCAT("@",domain) IN (%k)';
26 # $banned_files_quarantine_method = 'sql';
27 # $spam_quarantine_method         = 'sql';
28
29 #
30 # SQL Select statements
31 #
32
33 $sql_select_policy =
34    'SELECT *,spamfilter_users.id'.
35    ' FROM spamfilter_users LEFT JOIN spamfilter_policy ON spamfilter_users.policy_id=spamfilter_policy.id'.
36    ' WHERE spamfilter_users.email IN (%k) ORDER BY spamfilter_users.priority DESC';
37
38
39 $sql_select_white_black_list = 'SELECT wb FROM spamfilter_wblist'.
2a37f9 40     ' WHERE (spamfilter_wblist.rid=?) AND (spamfilter_wblist.email IN (%k)) AND (spamfilter_wblist.active="y")' .
9200ad 41     ' ORDER BY spamfilter_wblist.priority DESC';
T 42
098b2f 43 #
O 44 # Quarantine settings
45 #
46
47 $final_virus_destiny = D_BOUNCE;
c50462 48 $final_spam_destiny = D_DISCARD;
098b2f 49 $final_banned_destiny = D_BOUNCE;
b9fcb3 50 $final_bad_header_destiny = D_PASS;
9200ad 51
20aa6b 52 # Default settings, we st this very high to not filter aut emails accidently
T 53 $sa_spam_subject_tag = '***SPAM*** ';
54 $sa_tag_level_deflt  = 20.0;  # add spam info headers if at, or above that level
55 $sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level
56 $sa_kill_level_deflt = 60.0; # triggers spam evasive actions
57 $sa_dsn_cutoff_level = 100;   # spam level beyond which a DSN is not sent
58
9200ad 59 #
d45f48 60 # Disable spam and virus notifications for the admin user.
T 61 # Can be overridden by the policies in mysql
62 #
63
64 $virus_admin = undef;
65 $spam_admin = undef;
66
67
68 #
9200ad 69 # Enable Logging
T 70 #
71
72 $DO_SYSLOG = 1;
73 $LOGFILE = "/var/log/amavis.log";  # (defaults to empty, no log)
74
20aa6b 75 # Set the log_level to 5 for debugging
T 76 $log_level = 0;                # (defaults to 0)
9200ad 77
64b2a9 78 $inet_socket_port = [10024,10026];
7c980c 79
73c2f4 80 # :* = send to incoming Port + 1
MB 81 $forward_method = 'smtp:127.0.0.1:*';
82 $notify_method = 'smtp:127.0.0.1:*';
64b2a9 83 $interface_policy{'10026'} = 'ORIGINATING';
F 84 $policy_bank{'ORIGINATING'} = {
85   originating => 1,
86   smtpd_discard_ehlo_keywords => ['8BITMIME'],
87 };
7c980c 88
FS 89 # IP-Addresses for internal networks => load policy MYNETS
90 # - requires -o smtp_send_xforward_command=yes in postfix master.cf
91 @mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 [::1] [FE80::]/10 [FEC0::]/10);
92
93 # Allow SMTP access from IPs in @inet_acl to amvisd SMTP Port
94 @inet_acl = qw( 127.0.0.1 [::1] 192.168.0.0/16 );
64b2a9 95
bd68aa 96 # DKIM
MC 97 $enable_dkim_verification = 1;
d6742c 98 $enable_dkim_signing = 1; # load DKIM signing code
FS 99 $signed_header_fields{'received'} = 0;  # turn off signing of Received
bd68aa 100 @dkim_signature_options_bysender_maps = (
MC 101 { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
9200ad 102
T 103 #------------ Do not modify anything below this line -------------
104 1;  # insure a defined return