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