source: npl/mailserver/kopano_conf/root/etc/kopano/dspam.cfg @ 4d919bf

perl-5.22
Last change on this file since 4d919bf was 4d919bf, checked in by Edwin Eefting <edwin@datux.nl>, 7 years ago

dspam config

  • Property mode set to 100644
File size: 2.3 KB
Line 
1##############################################################
2# dspam SERVICE SETTINGS
3
4# Path to store database with retrain-data and server-sync-state
5dspam_path          = /var/lib/kopano/dspam/
6
7# run as specific user
8run_as_user         = kopano
9
10# run as specific group
11run_as_group        = kopano
12
13
14# run server in this path (when not using the -F switch)
15running_path        =   /
16
17
18##############################################################
19# CONNECTION TO KOPANO SERVER SETTINGS
20#
21
22# Login to the Kopano server using this SSL Key
23#sslkey_file         = /etc/kopano/ssl/search.pem
24
25# The password of the SSL Key
26#sslkey_pass         = replace-with-server-cert-password
27
28##############################################################
29# LOG SETTINGS
30
31# Logging method (syslog, file)
32log_method          =   file
33
34# Loglevel (0=no logging, 5=full logging, 6=debugging)
35log_level           =   6
36
37# Logfile for log_method = file, use '-' for stderr
38log_file            =   /var/log/kopano/dspam.log
39
40# Log timestamp - prefix each log line with timestamp in 'file' logging mode
41log_timestamp       =   1
42
43
44##############################################################
45# SPAM FILTER SPECIFIC SETTINGS
46
47# This example is for dspam, the way its configured on a Datux SYN-3 server.
48# Requires a patched dspam version.
49
50# Header and header-value that classify a mail as spam.
51header_result       = X-DSPAM-Result
52header_result_spam  = Spam
53
54# Header that stores the original recipient/user of the mail. (some filters require this when retraining a mail)
55header_user         = X-DSPAM-Recipient
56
57# Header that stores the unique id thats required to retrain a message.
58header_id           = X-DSPAM-Signature
59
60# Actual script that is called to do the retraining.
61# Parameters:
62#  $1: spam-filter user
63#  $2: spam-filter message id or token
64#  $3: retrain classification: 'spam' or 'innocent'
65#  $4: when a previous training should be undone, this has the value 'undo' (e.g. when the user moves a message user back to the previous folder again)
66#      most filters dont support this, and you will probably just retrain the data again.
67retrain_script      = /etc/kopano/userscripts/kopano-dspam-retrain
68
69# Filter out dangerous characters from the parameters before calling the shell script:
70shell_filter_regex  = [^a-zA-Z0-9_,.-]
Note: See TracBrowser for help on using the repository browser.