base_dir = /var/run/dovecot/
protocols = imap
shutdown_clients = yes
disable_plaintext_auth = no
# ssl_disable = yes

# Si vous desirez utiliser seulement TLS 
#disable_plaintext_auth = yes
ssl_disable = no
ssl_cert_file = /var/qmail/control/servercert.pem
ssl_key_file = /var/qmail/control/servercert.pem

login_dir = /var/run/dovecot/login
login_process_per_connection = yes
login_greeting = Imap ready.
mail_debug = no
## UID et GID de votre utilisateur vpopmail
mail_uid = 89
mail_gid = 89
first_valid_uid = 89
last_valid_uid = 89
first_valid_gid = 89
last_valid_gid = 89
## Ou sont stockés vos maildir ?

mail_location = maildir:~/.maildir

protocol imap {
         listen = 0.0.0.0:143
        login_executable = /usr/libexec/dovecot/imap-login
        mail_max_userip_connections = 32
        mail_plugin_dir = /usr/lib/dovecot/imap
}

auth_verbose = no
auth_debug = no

auth default {

## Socket indispensable pour SASL
     socket listen {
            client {
                   path = /var/spool/postfix/private/auth
                   mode = 0660
                   user = postfix
                   group = postfix
                   }
        } 

## Le mechanisme login, est obligatoire pour authoriser les clients proprio mal developpés a interroger SASL via dovecot. (outlook express)

        mechanisms = plain login
                passdb vpopmail {
                }
                userdb vpopmail {
                }
        user = vpopmail
}