File: sa-learn-cyrus.conf

package info (click to toggle)
sa-learn-cyrus 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 84 kB
  • ctags: 23
  • sloc: perl: 573; makefile: 33; sh: 21
file content (109 lines) | stat: -rw-r--r-- 2,682 bytes parent folder | download | duplicates (2)
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
# Configuration for sa-learn-cyrus
#
# hjb -- 2008-02-12
#
# -------------------------------------------------------
# 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

# -------------------------------------------------------
# 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]

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

# SA configuration file
prefs_file = /etc/spamassassin/local.cf

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

# SA user and group
user = mail
group = mail

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

# -------------------------------------------------------
# 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