## Dovecot configuration file

protocols = imap
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = mail
 
disable_plaintext_auth = no
ssl = no

# mail_location = mbox:/mnt/dovecot-data/mailboxes/%d/%n:INDEX=/mnt/dovecot-data/%d/%n/indexes

mail_location = sdbox:/mnt/dovecot-data/%u/mail

mail_fsync = always
mail_nfs_storage = yes
mail_nfs_index = yes
mmap_disable = yes
login_trusted_networks = 127.0.0.1

auth_mechanisms = plain login

passdb {
  driver = pam
  args = session=yes dovecot
}
userdb {
  driver = passwd
}
service auth {
  user = $default_internal_user
}
service auth-worker {
  user = root
}
service auth-worker {
  user = $default_internal_user
  group = shadow
}
protocol imap {
  mail_plugins = autocreate
}
dict {
}

plugin {
  autocreate  = Drafts
  autocreate2 = Sent
  autocreate3 = Junk
  autocreate4 = Trash
  autosubscribe = Drafts
  autosubscribe2 = Sent
  autosubscribe3 = Junk
  autosubscribe4 = Trash
}