Dovecot Active Directory Authentication: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
  __EOF__
  __EOF__


Add to /etc/dovecot.conf while commenting any other passdb and userdb settings
Change passdb, userdb should remain the same
mail_location = maildir:~/Maildir/
  passdb {
  passdb {
   driver = ldap
   driver = ldap
Line 19: Line 18:
  }
  }
  userdb {
  userdb {
   driver = static
   driver = sql
   args = uid=89 gid=89 home=/home/vpopmail/domains/%d/%n
   args = /etc/dovecot/dovecot-sql.conf.ext
  }
  }
 
  # systemctl restart dovecot
  # systemctl restart dovecot


[[Qmail_Dovecot_Authentication|Configure QMT Dovecot authorization]]
[[Qmail_Dovecot_Authentication|Configure QMT Dovecot authorization]]

Revision as of 16:37, 26 January 2025

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