forked from miracle2k/pysieved
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpysieved.ini
124 lines (85 loc) · 2.69 KB
/
pysieved.ini
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
[main]
# Authentication back-end to use
auth = SASL
# User DB back-end to use
userdb = passwd
# Storage back-end to use
storage = Dovecot
# Bind to what address? (Ignored with --stdin)
#bindaddr = 127.0.0.1
# Listen on what port? (Ignored with --stdin)
port = 2000
# Write a pidfile here
pidfile = /var/run/pysieved.pid
# Prepend this path to result of userdb lookup if not absolute
#base = /var/mail
[TLS]
# Require STARTTLS before authentication
#required = False
# TLS private key file
#key = /etc/ssl/private/woozle.org.key
# TLS certificate file
#cert = /etc/ssl/private/woozle.org.pem
# Passphrase if the TLS private key is encrypted
# (this file should not be world-readable !)
#passphrase = magic
[SASL]
# How do we identify ourself to saslauthd?
service = managesieve
# Where's the magic mux file?
mux = /var/run/saslauthd/mux
[PAM]
# How do we identify ourself to PAM?
service = pysieved
[Virtual]
# Path to storage. %u = user, %d = domain
path = /usr/local/virtual/%d/%u
# What domain to use if no domain name is specified by the user
defaultdomain = none
# What UID and GID should own all files? -1 to not bother
uid = 1001
gid = 1001
# Switch user@host.name to host.name/user?
hostdirs = False
# Template to build path to home directories (overrides hostdirs).
# Available substitutions :
# %l : login (as used for authentication)
# %u : username part of login
# %d : domain part of login (defaultdomain if none)
# %m : email address (as derived from %u@%d)
#homeformat = %d/%m/pysieved
# Domain name to use if login doesn't include a domain part.
#defaultdomain = woozle.org
[MySQL]
dbhost = localhost
dbuser = user
dbpass = pass
dbname = db
auth_query = SELECT username FROM users WHERE username = "%(username)s" AND password = "%(password)s" AND (active = "1")
user_query = SELECT homedir FROM users WHERE username = "%(username)s" AND (active = "1")
[htpasswd]
passwdfile = /etc/exim/virtual/passwd
[Dovecot]
# Path to Dovecot's auth socket (do not set unless you're using Dovecot auth)
#mux = /var/spool/postfix/auth/dovecot
# Path to Dovecot's master socket (if using Dovecot userdb lookup)
#master = /var/run/dovecot/auth-master
# Path to sievec
sievec = /usr/lib/dovecot/sievec
# Where in user directory to store scripts
scripts = .pysieved
# Filename used for the active SIEVE filter (see README.Dovecot)
active = .dovecot.sieve
# What user/group owns the mail storage (-1 to never setuid/setgid)
uid = -1
gid = -1
[Exim]
# Path to sendmail
sendmail = /usr/sbin/sendmail
# Where in user directory to store scripts
scripts = .pysieved
# Filename used for the active SIEVE filter
active = .forward
# What user/group owns the mail storage (-1 to never setuid/setgid)
uid = -1
gid = -1