Dovecot Active Directory Authentication: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
No edit summary  | 
				No edit summary  | 
				||
| Line 5: | Line 5: | ||
  # cd /etc/dovecot  |   # cd /etc/dovecot  | ||
  # cat >  dovecot-ldap.conf.ext << __EOF__  |   # cat >  dovecot-ldap.conf.ext << __EOF__  | ||
  hosts =   |   hosts = ad.domain.tld  | ||
  ldap_version = 3  |   ldap_version = 3  | ||
  base = dc=domain,dc=tld  |   base = dc=domain,dc=tld  | ||
Revision as of 11:28, 13 January 2025
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__
Add to /etc/dovecot.conf while commenting any other passdb and userdb settings
mail_location = maildir:~/Maildir/
passdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
}
userdb {
  driver = static
  args = uid=89 gid=89 home=/home/vpopmail/domains/%d/%n
}
# systemctl restart dovecot