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