Modification : dovecot : quota .
[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 mail_debug = yes
24 mail_home = /home/mail/data/%d/%n
25 mail_location = maildir:/home/mail/data/%d/%n/Maildir:INDEX=/var/lib/dovecot-index/%d/%n:CONTROL=/var/lib/dovecot-control/%d/%n
26 # NOTE: INDEX et CONTROL sont sur une partition sans quota comme le demande la doc
27 # VOIR: http://wiki2.dovecot.org/Quota/FS
28 namespace inbox {
29 inbox = yes
30 location =
31 mailbox Drafts {
32 special_use = \Drafts
33 }
34 mailbox Junk {
35 special_use = \Junk
36 }
37 mailbox Sent {
38 special_use = \Sent
39 }
40 mailbox "Sent Messages" {
41 special_use = \Sent
42 }
43 mailbox Trash {
44 special_use = \Trash
45 }
46 prefix =
47 separator = +
48 }
49 namespace {
50 #list = children
51 list = yes
52 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
53 prefix = Partages+%%n+
54 separator = +
55 subscriptions = yes
56 type = shared
57 }
58 mail_plugins = $mail_plugins acl quota
59 #mail_privileged_group = mail
60 #mail_access_groups = mail
61 passdb {
62 args = scheme=plain username_format=%n /etc/dovecot/%d/passwd
63 driver = passwd-file
64 }
65 plugin {
66 acl = vfile:/etc/dovecot/acl/global.d
67 acl_anyone = allow
68 acl_shared_dict = file:/home/mail/acl/%d/shared.db
69 #antispam_allow_append_to_spam = yes
70 # NOTE: pour offlineimap
71 antispam_backend = pipe
72 #antispam_crm_args = -u;/home/mail/data/%d/.crm114;/usr/share/crm114/mailfilter.crm
73 antispam_crm_args = -u;/home/mail/crm114;/usr/share/crm114/mailfilter.crm
74 antispam_crm_binary = /usr/bin/crm
75 antispam_debug_target = syslog
76 #antispam_crm_env = HOME=%h;USER=%u
77 antispam_ham_keywords = NonJunk
78 antispam_pipe_program = /usr/bin/crm
79 antispam_pipe_program_args = -u;/home/mail/crm114;/usr/share/crm114/mailfilter.crm;--stats_only;--force
80 antispam_pipe_program_notspam_arg = --learnnonspam
81 antispam_pipe_program_spam_arg = --learnspam
82 antispam_pipe_program_unlearn_spam_args = --unlearn;--learnspam
83 antispam_pipe_program_unlearn_notspam_args = --unlearn;--learnnonspam
84 antispam_pipe_tmpdir = /home/mail/crm114/tmp
85 antispam_signature = X-CRM114-CacheID
86 antispam_signature_missing = move
87 antispam_spam = Junk
88 antispam_spam_keywords = Junk
89 antispam_trash = Trash
90 antispam_unsure = Unsure
91 antispam_verbose_debug = 0
92 quota = maildir:User quota
93 quota_rule = *:storage=256M
94 quota_rule2 = Trash:storage=+64M
95 recipient_delimiter = +
96 sieve = /home/mail/data/%d/%n/sieve
97 sieve_after = /etc/dovecot/sieve/after.d/
98 sieve_before = /etc/dovecot/sieve/before.d/
99 sieve_dir = /home/mail/data/%d/%n/sieve.d/
100 #sieve_extensions = +spamtest +spamtestplus
101 sieve_global_dir = /etc/dovecot/sieve/global.d/
102 sieve_max_script_size = 1M
103 sieve_quota_max_scripts = 0
104 sieve_quota_max_storage = 10M
105 sieve_spamtest_max_value = 10
106 sieve_spamtest_status_header = X-Spam-Score
107 sieve_spamtest_status_type = strlen
108 sieve_user_log = /home/mail/log/%d/sieve.%n.log
109 }
110 protocol imap {
111 mail_plugins = $mail_plugins antispam imap_acl imap_quota
112 }
113 service imap-login {
114 inet_listener imap {
115 address = 127.0.0.1
116 port = 143
117 ssl = no
118 }
119 inet_listener imaps {
120 port = 993
121 ssl = yes
122 }
123 }
124 protocol lda {
125 auth_socket_path = /var/run/dovecot/auth-userdb
126 hostname = LOCAL_DOMAINNAME
127 info_log_path =
128 log_path =
129 mail_plugins = $mail_plugins sieve
130 postmaster_address = postmaster+dovecot+lda@LOCAL_DOMAINNAME
131 syslog_facility = mail
132 }
133 protocol lmtp {
134 postmaster_address = postmaster+dovecot+lmtp@LOCAL_DOMAINNAME
135 mail_plugins = $mail_plugins sieve
136 #info_log_path = /tmp/dovecot-lmtp.log
137 }
138 protocol pop3 {
139 }
140 protocol sieve {
141 mail_debug = yes
142 #mail_max_userip_connections = 10
143 #managesieve_implementation_string = Dovecot Pigeonhole
144 managesieve_max_compile_errors = 5
145 #managesieve_max_line_length = 65536
146 #managesieve_notify_capability = mailto
147 #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
148 }
149 protocols = imap lmtp pop3 sieve
150 service lmtp {
151 #executable = lmtp -L
152 process_min_avail = 2
153 unix_listener /var/spool/postfix/private/dovecot-lmtp {
154 user = postfix
155 group = postfix
156 mode = 0600
157 }
158 #user = mail
159 }
160 service auth {
161 user = root
162 unix_listener auth-userdb {
163 user = dovecot
164 group = root
165 mode = 0666
166 }
167 unix_listener /var/spool/postfix/private/auth {
168 user = postfix
169 group = postfix
170 mode = 0660
171 }
172 }
173 service imap {
174 #vsz_limit =
175 # NOTE: most of the memory goes to mmap()ing files.
176 # You may need to increase this limit if you have huge mailboxes.
177 process_limit = 1024
178 }
179 service pop3 {
180 process_limit = 1024
181 }
182 ssl = required
183 ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
184 ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
185 ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
186 ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/key.pem
187 ssl_verify_client_cert = yes
188 userdb {
189 driver = prefetch
190 }
191 userdb {
192 # NOTE: this userdb is only used by lda.
193 args = username_format=%n /etc/dovecot/%d/passwd
194 driver = passwd-file
195 }
196 verbose_ssl = no
197
198 # vim: ft=sh