protocols = imap
listen = *
ssl = required
ssl_cert = </etc/dovecot/certs/cert.pem
ssl_key = </etc/dovecot/certs/key.pem
service imap-login {
    inet_listener imaps {
        port = 993
        ssl = yes
    }
}
