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'. |
|
40 |
' WHERE (spamfilter_wblist.rid=?) AND (spamfilter_wblist.email IN (%k))' . |
|
41 |
' ORDER BY spamfilter_wblist.priority DESC'; |
|
42 |
|
098b2f
|
43 |
# |
O |
44 |
# Quarantine settings |
|
45 |
# |
|
46 |
|
|
47 |
$final_virus_destiny = D_BOUNCE; |
542146
|
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 |
|
T |
78 |
|
|
79 |
#------------ Do not modify anything below this line ------------- |
|
80 |
1; # insure a defined return |