Correction : etc/dovecot/ : protocol sieve{} : namespace inbox{} .
[lhc/ateliers.git] / etc / dovecot / dovecot.conf.m4
1 auth_mechanisms = plain
2 auth_ssl_require_client_cert = no
3 # NOTE: ne marche pas avec l'auth SASL depuis postfix qui ne fournit pas de certificat utilisateurice
4 auth_ssl_username_from_cert = yes
5 auth_verbose = yes
6 auth_debug = yes
7 disable_plaintext_auth = yes
8 first_valid_uid = 1000
9 lda_mailbox_autocreate = no
10 lda_mailbox_autosubscribe = yes
11 listen = *
12 log_timestamp = "%Y-%m-%d %H:%M:%S "
13 local_name imap.LOCAL_DOMAINNAME {
14 ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
15 ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
16 ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/key.pem
17 }
18 local_name imap.cyclocoop.org {
19 ssl_ca = </etc/dovecot/cyclocoop.org/imap/x509/crt+crl.self-signed.pem
20 ssl_cert = </etc/dovecot/cyclocoop.org/imap/x509/crt+crl.self-signed.pem
21 ssl_key = </etc/dovecot/cyclocoop.org/imap/x509/key.pem
22 }
23 local_name imap.ptitvelo.net {
24 ssl_ca = </etc/dovecot/ptitvelo.net/imap/x509/crt+crl.self-signed.pem
25 ssl_cert = </etc/dovecot/ptitvelo.net/imap/x509/crt+crl.self-signed.pem
26 ssl_key = </etc/dovecot/ptitvelo.net/imap/x509/key.pem
27 }
28 local_name pop.LOCAL_DOMAINNAME {
29 ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/pop/x509/crt+crl.self-signed.pem
30 ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/pop/x509/crt+crl.self-signed.pem
31 ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/pop/x509/key.pem
32 }
33 local_name pop.cyclocoop.org {
34 ssl_ca = </etc/dovecot/cyclocoop.org/pop/x509/crt+crl.self-signed.pem
35 ssl_cert = </etc/dovecot/cyclocoop.org/pop/x509/crt+crl.self-signed.pem
36 ssl_key = </etc/dovecot/cyclocoop.org/pop/x509/key.pem
37 }
38 local_name pop.ptitvelo.net {
39 ssl_ca = </etc/dovecot/ptitvelo.net/pop/x509/crt+crl.self-signed.pem
40 ssl_cert = </etc/dovecot/ptitvelo.net/pop/x509/crt+crl.self-signed.pem
41 ssl_key = </etc/dovecot/ptitvelo.net/pop/x509/key.pem
42 }
43 mail_debug = yes
44 mail_home = /home/mail/data/%d/%n
45 mail_location = maildir:/home/mail/data/%d/%n/Maildir:INDEX=/var/lib/dovecot-index/%d/%n:CONTROL=/var/lib/dovecot-control/%d/%n
46 # NOTE: INDEX et CONTROL sont sur une partition sans quota comme le demande la doc
47 # VOIR: http://wiki2.dovecot.org/Quota/FS
48 namespace inbox {
49 # NOTE: ici car protocol sieve {namespace inbox{}} n'a pas l'air de fonctionner
50 inbox = yes
51 location =
52 list = yes
53 prefix =
54 separator = +
55 }
56 namespace {
57 #list = children
58 list = yes
59 location = maildir:/home/mail/data/%%d/%%n/Maildir:INDEX=/var/lib/dovecot-index/%d/%n/Shared/%%n:CONTROL=/var/lib/dovecot-control/%d/%n/Shared/%%n
60 prefix = Partages+%%n+
61 separator = +
62 subscriptions = yes
63 type = shared
64 }
65 mail_plugins = $mail_plugins acl quota virtual
66 #mail_privileged_group = mail
67 #mail_access_groups = mail
68 passdb {
69 args = scheme=plain username_format=%n /etc/dovecot/%d/passwd
70 driver = passwd-file
71 }
72 plugin {
73 acl = vfile:/etc/dovecot/acl/global.d
74 acl_anyone = allow
75 acl_shared_dict = file:/home/mail/acl/%d/shared.db
76 #antispam_allow_append_to_spam = yes
77 # NOTE: pour offlineimap
78 antispam_backend = pipe
79 #antispam_crm_args = -u;/home/mail/data/%d/.crm114;/usr/share/crm114/mailfilter.crm
80 antispam_crm_args = -u;/home/mail/crm114;/usr/share/crm114/mailfilter.crm
81 antispam_crm_binary = /usr/bin/crm
82 antispam_debug_target = syslog
83 #antispam_crm_env = HOME=%h;USER=%u
84 antispam_ham_keywords = NonJunk
85 antispam_pipe_program = /usr/bin/crm
86 antispam_pipe_program_args = -u;/home/mail/crm114;/usr/share/crm114/mailfilter.crm;--stats_only;--force
87 antispam_pipe_program_notspam_arg = --learnnonspam
88 antispam_pipe_program_spam_arg = --learnspam
89 antispam_pipe_program_unlearn_spam_args = --unlearn;--learnspam
90 antispam_pipe_program_unlearn_notspam_args = --unlearn;--learnnonspam
91 antispam_pipe_tmpdir = /home/mail/crm114/tmp
92 antispam_signature = X-CRM114-CacheID
93 antispam_signature_missing = move
94 antispam_spam = Junk
95 antispam_spam_keywords = Junk
96 antispam_trash = Trash
97 antispam_unsure = Unsure
98 antispam_verbose_debug = 0
99 quota = maildir:User quota
100 quota_rule = *:storage=256M
101 quota_rule2 = Trash:storage=+64M
102 recipient_delimiter = +
103 sieve = /home/mail/data/%d/%n/sieve
104 sieve_after = /etc/dovecot/sieve/after.d/
105 sieve_before = /etc/dovecot/sieve/before.d/
106 sieve_dir = /home/mail/data/%d/%n/sieve.d/
107 #sieve_extensions = +spamtest +spamtestplus
108 sieve_global_dir = /etc/dovecot/sieve/global.d/
109 sieve_max_script_size = 1M
110 sieve_quota_max_scripts = 0
111 sieve_quota_max_storage = 10M
112 sieve_spamtest_max_value = 10
113 sieve_spamtest_status_header = X-Spam-Score
114 sieve_spamtest_status_type = strlen
115 sieve_user_log = /home/mail/log/%d/sieve.%n.log
116 }
117 protocol imap {
118 mail_plugins = $mail_plugins antispam imap_acl imap_quota
119 namespace inbox {
120 inbox = yes
121 location =
122 list = yes
123 mailbox Drafts {
124 special_use = \Drafts
125 }
126 mailbox Junk {
127 special_use = \Junk
128 }
129 mailbox Sent {
130 special_use = \Sent
131 }
132 mailbox "Sent Messages" {
133 special_use = \Sent
134 }
135 mailbox Trash {
136 special_use = \Trash
137 }
138 prefix =
139 separator = +
140 }
141 }
142 protocol lda {
143 auth_socket_path = /var/run/dovecot/auth-userdb
144 hostname = LOCAL_DOMAINNAME
145 info_log_path =
146 log_path =
147 mail_plugins = $mail_plugins sieve
148 namespace inbox {
149 inbox = yes
150 location =
151 list = yes
152 prefix =
153 separator = +
154 }
155 postmaster_address = postmaster+dovecot+lda@LOCAL_DOMAINNAME
156 syslog_facility = mail
157 }
158 protocol lmtp {
159 #info_log_path = /tmp/dovecot-lmtp.log
160 mail_plugins = $mail_plugins sieve
161 namespace inbox {
162 inbox = yes
163 location =
164 list = yes
165 prefix =
166 separator = +
167 }
168 postmaster_address = postmaster+dovecot+lmtp@LOCAL_DOMAINNAME
169 }
170 protocol pop3 {
171 namespace all {
172 # NOTE: utilisé par /etc/dovecot/pop3/INBOX/dovecot-virtual
173 hidden = yes
174 list = no
175 location =
176 prefix = all+
177 separator = +
178 }
179 namespace inbox {
180 # NOTE: virtual namespace for the virtual INBOX. Use a global directory for dovecot-virtual files.
181 inbox = yes
182 hidden = yes
183 list = no
184 location = virtual:/etc/dovecot/pop3:INDEX=/var/lib/dovecot-index/%d/%n/POP3:LAYOUT=fs
185 prefix = pop3+
186 separator = +
187 }
188 pop3_client_workarounds =
189 pop3_fast_size_lookups = yes
190 pop3_lock_session = yes
191 pop3_no_flag_updates = yes
192 pop3_uidl_format = %g
193 # NOTE: use GUIDs to avoid accidental POP3 UIDL changes instead of IMAP UIDs.
194 }
195 protocol sieve {
196 mail_debug = yes
197 #mail_max_userip_connections = 10
198 #managesieve_implementation_string = Dovecot Pigeonhole
199 managesieve_max_compile_errors = 5
200 #managesieve_max_line_length = 65536
201 #managesieve_notify_capability = mailto
202 #managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
203 }
204 protocols = imap lmtp pop3 sieve
205 service lmtp {
206 #executable = lmtp -L
207 process_min_avail = 2
208 unix_listener /var/spool/postfix/private/dovecot-lmtp {
209 user = postfix
210 group = postfix
211 mode = 0600
212 }
213 #user = mail
214 }
215 service auth {
216 user = root
217 unix_listener auth-userdb {
218 user = dovecot
219 group = root
220 mode = 0666
221 }
222 unix_listener /var/spool/postfix/private/auth {
223 user = postfix
224 group = postfix
225 mode = 0660
226 }
227 }
228 service imap {
229 #vsz_limit =
230 # NOTE: most of the memory goes to mmap()ing files.
231 # You may need to increase this limit if you have huge mailboxes.
232 process_limit = 1024
233 }
234 service imap-login {
235 inet_listener imap {
236 address = 127.0.0.1
237 port = 143
238 ssl = no
239 }
240 inet_listener imaps {
241 port = 993
242 ssl = yes
243 }
244 }
245 service pop3 {
246 process_limit = 1024
247 }
248 service pop3-login {
249 inet_listener pop3s {
250 port = 995
251 ssl = yes
252 }
253 }
254 ssl = required
255 ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
256 ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
257 ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
258 ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/key.pem
259 ssl_verify_client_cert = yes
260 userdb {
261 driver = prefetch
262 }
263 userdb {
264 # NOTE: this userdb is only used by lda.
265 args = username_format=%n /etc/dovecot/%d/passwd
266 driver = passwd-file
267 }
268 verbose_ssl = no
269
270 # vim: ft=sh