Ajout : roundcube.
[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 = Shared.%%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_shared_dict = file:/home/mail/acl/%d/shared.db
68 quota = fs:user
69 recipient_delimiter = +
70 sieve = /home/mail/data/%d/%n/sieve
71 sieve_after = /etc/dovecot/sieve/after.d/
72 sieve_before = /etc/dovecot/sieve/before.d/
73 sieve_dir = /home/mail/data/%d/%n/sieve.d/
74 sieve_global_dir = /etc/dovecot/sieve/global.d/
75 sieve_max_script_size = 1M
76 sieve_quota_max_scripts = 0
77 sieve_quota_max_storage = 10M
78 sieve_user_log = /home/mail/log/%d/sieve.%n.log
79 }
80 protocol imap {
81 mail_plugins = $mail_plugins imap_acl imap_quota
82 }
83 service imap-login {
84 inet_listener imap {
85 address = 127.0.0.1
86 port = 143
87 ssl = no
88 }
89 inet_listener imaps {
90 port = 993
91 ssl = yes
92 }
93 }
94 protocol lda {
95 auth_socket_path = /var/run/dovecot/auth-userdb
96 hostname = LOCAL_DOMAINNAME
97 info_log_path =
98 log_path =
99 mail_plugins = $mail_plugins sieve
100 postmaster_address = postmaster+dovecot+lda@LOCAL_DOMAINNAME
101 syslog_facility = mail
102 }
103 protocol lmtp {
104 postmaster_address = postmaster+dovecot+lmtp@LOCAL_DOMAINNAME
105 mail_plugins = $mail_plugins sieve
106 #info_log_path = /tmp/dovecot-lmtp.log
107 }
108 protocol pop3 {
109 }
110 protocol sieve {
111 mail_debug = yes
112 #mail_max_userip_connections = 10
113 #managesieve_implementation_string = Dovecot Pigeonhole
114 managesieve_max_compile_errors = 5
115 #managesieve_max_line_length = 65536
116 #managesieve_notify_capability = mailto
117 #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
118 }
119 protocols = imap lmtp pop3 sieve
120 service lmtp {
121 #executable = lmtp -L
122 process_min_avail = 2
123 unix_listener /var/spool/postfix/private/dovecot-lmtp {
124 user = postfix
125 group = postfix
126 mode = 0600
127 }
128 #user = mail
129 }
130 service auth {
131 user = root
132 unix_listener auth-userdb {
133 user = dovecot
134 group = root
135 mode = 0666
136 }
137 unix_listener /var/spool/postfix/private/auth {
138 user = postfix
139 group = postfix
140 mode = 0660
141 }
142 }
143 service imap {
144 #vsz_limit =
145 # NOTE: most of the memory goes to mmap()ing files.
146 # You may need to increase this limit if you have huge mailboxes.
147 process_limit = 1024
148 }
149 service pop3 {
150 process_limit = 1024
151 }
152 ssl = required
153 ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
154 ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
155 ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
156 ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/key.pem
157 ssl_verify_client_cert = yes
158 userdb {
159 driver = prefetch
160 }
161 userdb {
162 # NOTE: this userdb is only used by lda.
163 args = username_format=%n /etc/dovecot/%d/passwd
164 driver = passwd-file
165 }
166 verbose_ssl = no
167
168 # vim: ft=sh