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