Jennifer Academy

servers/dovecot/dovecot.conf

mail_home=/srv/mail/%Lu
mail_location=sdbox:~/Mail
mail_uid=1000
mail_gid=1000
protocols = imap pop3
first_valid_uid = 1000
last_valid_uid = 1000
auth_mechanisms = plain login xoauth2 oauthbearer
passdb {
  driver = oauth2
  mechanisms = xoauth2 oauthbearer
  args = /etc/dovecot/oauth2.conf
}
passdb {
  driver = static
  args = password=changeme
}
ssl = yes
ssl_cert = </etc/dovecot/cert.pem
ssl_key = </etc/dovecot/key.pem
disable_plaintext_auth = yes
namespace {
  inbox = yes
  separator = /
}
listen = *
log_path=/dev/stdout
info_log_path=/dev/stdout