--- /dev/null
+auth_mechanisms = plain
+auth_ssl_require_client_cert = no
+ # NOTE: ne marche pas avec l'auth SASL depuis postfix qui ne fournit pas de certificat utilisateurice
+auth_ssl_username_from_cert = yes
+auth_verbose = yes
+auth_debug = yes
+disable_plaintext_auth = yes
+first_valid_uid = 1000
+lda_mailbox_autocreate = no
+lda_mailbox_autosubscribe = yes
+listen = *
+log_timestamp = "%Y-%m-%d %H:%M:%S "
+local_name imap.LOCAL_DOMAINNAME {
+ ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
+ ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
+ ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/key.pem
+ }
+local_name imap.cyclocoop.org {
+ ssl_ca = </etc/dovecot/cyclocoop.org/imap/x509/crt+crl.self-signed.pem
+ ssl_cert = </etc/dovecot/cyclocoop.org/imap/x509/crt+crl.self-signed.pem
+ ssl_key = </etc/dovecot/cyclocoop.org/imap/x509/key.pem
+ }
+mail_debug = yes
+mail_home = /home/mail/data/%d/%n
+mail_location = maildir:/home/mail/data/%d/%n/Maildir:INDEX=/var/lib/dovecot-index/%d/%n:CONTROL=/var/lib/dovecot-control/%d/%n
+ # NOTE: INDEX et CONTROL sont sur une partition sans quota comme le demande la doc
+ # VOIR: http://wiki2.dovecot.org/Quota/FS
+namespace inbox {
+ inbox = yes
+ location =
+ mailbox Drafts {
+ special_use = \Drafts
+ }
+ mailbox Junk {
+ special_use = \Junk
+ }
+ mailbox Sent {
+ special_use = \Sent
+ }
+ mailbox "Sent Messages" {
+ special_use = \Sent
+ }
+ mailbox Trash {
+ special_use = \Trash
+ }
+ prefix =
+ separator = .
+ }
+namespace {
+ #list = children
+ list = yes
+ 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
+ prefix = Shared.%%n.
+ separator = .
+ subscriptions = yes
+ type = shared
+ }
+mail_plugins = $mail_plugins acl quota
+#mail_privileged_group = mail
+#mail_access_groups = mail
+passdb {
+ args = scheme=plain username_format=%n /etc/dovecot/%d/passwd
+ driver = passwd-file
+ }
+plugin {
+ acl = vfile:/etc/dovecot/acl/global.d
+ acl_shared_dict = file:/home/mail/acl/%d/shared.db
+ quota = fs:user
+ recipient_delimiter = +
+ sieve = /home/mail/data/%d/%n/sieve
+ sieve_after = /etc/dovecot/sieve/after.d/
+ sieve_before = /etc/dovecot/sieve/before.d/
+ sieve_dir = /home/mail/data/%d/%n/sieve.d/
+ sieve_global_dir = /etc/dovecot/sieve/global.d/
+ sieve_max_script_size = 1M
+ sieve_quota_max_scripts = 0
+ sieve_quota_max_storage = 10M
+ sieve_user_log = /home/mail/log/%d/sieve.%n.log
+ }
+protocol imap {
+ mail_plugins = $mail_plugins imap_acl imap_quota
+ }
+service imap-login {
+ inet_listener imap {
+ address = 127.0.0.1
+ port = 143
+ ssl = no
+ }
+ inet_listener imaps {
+ port = 993
+ ssl = yes
+ }
+ }
+protocol lda {
+ auth_socket_path = /var/run/dovecot/auth-userdb
+ hostname = LOCAL_DOMAINNAME
+ info_log_path =
+ log_path =
+ mail_plugins = $mail_plugins sieve
+ postmaster_address = postmaster+dovecot+lda@LOCAL_DOMAINNAME
+ syslog_facility = mail
+ }
+protocol lmtp {
+ postmaster_address = postmaster+dovecot+lmtp@LOCAL_DOMAINNAME
+ mail_plugins = $mail_plugins sieve
+ #info_log_path = /tmp/dovecot-lmtp.log
+ }
+protocol pop3 {
+ }
+protocol sieve {
+ mail_debug = yes
+ #mail_max_userip_connections = 10
+ #managesieve_implementation_string = Dovecot Pigeonhole
+ managesieve_max_compile_errors = 5
+ #managesieve_max_line_length = 65536
+ #managesieve_notify_capability = mailto
+ #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
+ }
+protocols = imap lmtp pop3 sieve
+service lmtp {
+ #executable = lmtp -L
+ process_min_avail = 2
+ unix_listener /var/spool/postfix/private/dovecot-lmtp {
+ user = postfix
+ group = postfix
+ mode = 0600
+ }
+ #user = mail
+ }
+service auth {
+ user = root
+ unix_listener auth-userdb {
+ user = dovecot
+ group = root
+ mode = 0666
+ }
+ unix_listener /var/spool/postfix/private/auth {
+ user = postfix
+ group = postfix
+ mode = 0660
+ }
+ }
+service imap {
+ #vsz_limit =
+ # NOTE: most of the memory goes to mmap()ing files.
+ # You may need to increase this limit if you have huge mailboxes.
+ process_limit = 1024
+ }
+service pop3 {
+ process_limit = 1024
+ }
+ssl = required
+ssl_ca = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
+ssl_cert = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/crt+crl.self-signed.pem
+ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
+ssl_key = </etc/dovecot/LOCAL_DOMAINNAME/imap/x509/key.pem
+ssl_verify_client_cert = yes
+userdb {
+ driver = prefetch
+ }
+userdb {
+ # NOTE: this userdb is only used by lda.
+ args = username_format=%n /etc/dovecot/%d/passwd
+ driver = passwd-file
+ }
+verbose_ssl = no
+
+# vim: ft=sh