Dovecot Active Directory Authentication

From QmailToaster
Revision as of 16:37, 26 January 2025 by Ebroch (talk | contribs)
Jump to navigation Jump to search

Back

Assumes working AD server

# cd /etc/dovecot
# cat >  dovecot-ldap.conf.ext << __EOF__
hosts = ad.domain.tld
ldap_version = 3
base = dc=domain,dc=tld
auth_bind_userdn = %u
auth_bind = yes
__EOF__

Change passdb, userdb should remain the same

passdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
}
userdb {
  driver = sql
  args = /etc/dovecot/dovecot-sql.conf.ext
}

# systemctl restart dovecot

Configure QMT Dovecot authorization