File: sa-learn-cyrus.conf

package info (click to toggle)
sa-learn-cyrus 0.3.5-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 124 kB
  • ctags: 20
  • sloc: perl: 662; sh: 21; makefile: 7
file content (135 lines) | stat: -rw-r--r-- 3,536 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Configuration for sa-learn-cyrus
#
# hjb -- 2011-11-02
#
# -------------------------------------------------------
# global parameters
#
[global]

# Directory to store output of sa-learn and ipurge temporarily 
tmp_dir = /tmp

# To avoid race conditions, we use a lock file.
lock_file = /var/lock/sa-learn-cyrus.lock

# level of verbosity (0 .. 3)?
verbose	= 1

# Don't excute commands, show only what would be executed,
# Change this to 'no' after testing.
simulate = yes

# Prepend log output with a tag (date, time, pid)? 
# Choose 'no' if you prefer to pipe the output to syslog
# (default is 'yes')
log_with_tag = yes

# -------------------------------------------------------
# Mailbox
#
[mailbox]

# List of mailboxes/users which will be considered.
# If this list is empty all mailboxes will be searched.
#
include_list = ''

# If include_list is empty, only mailboxes matching this pattern will be considered
include_regexp = '.*'

# List of mailboxes/users which will be ignored
exclude_list = ''

# If exclude_list is empty, mailboxes matching this pattern will be ignored
exclude_regexp = ''

# Spam folder relative to INBOX (cyrus nomenclature: e.g. 'junk.Spam')
spam_folder = 'Learn.Spam'

# Ham folder relative to INBOX (cyrus nomenclature: e.g. 'junk.Ham')
ham_folder = 'Learn.Ham'

# Remove spam after feeding it to SA
remove_spam = yes

# Remove ham after feeding it to SA
remove_ham = yes

# -------------------------------------------------------
# Spamassassin
#
[sa]

# run sa-learn in debug mode (useful to examine problems)
debug = no

# Path with system-wide SA preferences
site_config_path = /etc/spamassassin

# Path to sa-learn
learn_cmd = /usr/bin/sa-learn

# Bayes storage mechanism (berkely|sql)
#   berkely: Berkely DB (default) 
#   sql: SQL Database
bayes_storage = berkely

# SA configuration file. 
# Used to get the Bayes database path if bayes_storage = berkely
# Required to run sa-learn. 
prefs_file = /etc/spamassassin/local.cf

# Should permissions of DB files be fixed?
# Ignored unless bayes_storage = berkely
fix_db_permissions = yes

# SA user and group (required if fix_db_permissions = yes)
user = mail
group = mail

# Skip synchronization after every change of database, but sync once 
# after all messages have been learned. 
# May speed up learning from many folders.
sync_once = yes

# Use this if you use the --virtual-config-dir option of spamd (it
# needs to match exactly). See the spamd man page for more
# information.
virtual_config_dir = ''

# -------------------------------------------------------
# IMAP
#
[imap]

# Base directory of IMAP spool (below that mailboxes are located)
base_dir = /var/spool/cyrus/mail

# If base_dir has subdivisions with initial letters of mailbox names
# set initial_letter = yes (default), otherwise choose no.
# Example for joe's mailbox:
#   yes: <base_dir>/j/user/joe/
#    no: <base_dir>/user/joe/
initial_letter = yes

# If your cyrus spool uses domain hierarchy give a list of domains
# Example for mailbox fritz@bar.org and joe@foo.com
#   <base_dir>/domain/b/bar.org/f/fritz
#   <base_dir>/domain/f/foo.com/j/joe
# domains = foo.com bar.org
#
# If you don't use Cyrus's domain support leave the entry empty.
# The initial_letter option (see above) is applied to domains, too.    
domains = ''

# Choose 'unixhierarchysep = yes' if Cyrus is configured to accept usernames
# like 'hans.mueller.somedomain.tld'
unixhierarchysep = no

# imap command to purge mail messages
purge_cmd = /usr/sbin/ipurge

# Cyrus-IMAPd user
user = cyrus