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