1 | ############################################################## |
---|
2 | # dspam SERVICE SETTINGS |
---|
3 | |
---|
4 | # Path to store database with retrain-data and server-sync-state |
---|
5 | dspam_path = /var/lib/kopano/dspam/ |
---|
6 | |
---|
7 | # run as specific user |
---|
8 | run_as_user = kopano |
---|
9 | |
---|
10 | # run as specific group |
---|
11 | run_as_group = kopano |
---|
12 | |
---|
13 | |
---|
14 | # run server in this path (when not using the -F switch) |
---|
15 | running_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) |
---|
32 | log_method = file |
---|
33 | |
---|
34 | # Loglevel (0=no logging, 5=full logging, 6=debugging) |
---|
35 | log_level = 6 |
---|
36 | |
---|
37 | # Logfile for log_method = file, use '-' for stderr |
---|
38 | log_file = /var/log/kopano/dspam.log |
---|
39 | |
---|
40 | # Log timestamp - prefix each log line with timestamp in 'file' logging mode |
---|
41 | log_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. |
---|
51 | header_result = X-DSPAM-Result |
---|
52 | header_result_spam = Spam |
---|
53 | |
---|
54 | # Header that stores the original recipient/user of the mail. (some filters require this when retraining a mail) |
---|
55 | header_user = X-DSPAM-Recipient |
---|
56 | |
---|
57 | # Header that stores the unique id thats required to retrain a message. |
---|
58 | header_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. |
---|
67 | retrain_script = /etc/kopano/userscripts/kopano-dspam-retrain |
---|
68 | |
---|
69 | # Filter out dangerous characters from the parameters before calling the shell script: |
---|
70 | shell_filter_regex = [^a-zA-Z0-9_,.-] |
---|