<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Active Directory integration in Dovecot]]></title>
		<link>https://forum.iredmail.org/topic21221-active-directory-integration-in-dovecot.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21221.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Active Directory integration in Dovecot.]]></description>
		<lastBuildDate>Tue, 22 Sep 2026 09:08:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Active Directory integration in Dovecot]]></title>
			<link>https://forum.iredmail.org/post92254.html#p92254</link>
			<description><![CDATA[<p>It&#039;s recommended to run iRedMail Enterprise Edition with better Active Directory integration:<br /><a href="https://docs.iredmail.org/ee.ad.html">https://docs.iredmail.org/ee.ad.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 22 Sep 2026 09:08:47 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92254.html#p92254</guid>
		</item>
		<item>
			<title><![CDATA[Re: Active Directory integration in Dovecot]]></title>
			<link>https://forum.iredmail.org/post92253.html#p92253</link>
			<description><![CDATA[<p>Thank you for the detailed description. I managed to find out that Debian13 uses a new version of Dovecot, in which the syntax of configuration files has been changed. Most likely, iRedmail does not yet take this into account. I deployed a new server on Debian 12, and the integration with Active Directory was successfully launched strictly in accordance with the official documentation.</p>]]></description>
			<author><![CDATA[null@example.com (msh)]]></author>
			<pubDate>Tue, 22 Sep 2026 06:18:05 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92253.html#p92253</guid>
		</item>
		<item>
			<title><![CDATA[Re: Active Directory integration in Dovecot]]></title>
			<link>https://forum.iredmail.org/post92250.html#p92250</link>
			<description><![CDATA[<p>In config above i used mail attribute as user identifier.<br />Commented line (#home) in my conf is not actually commented. You may uncomment it. But in line 108 of conf file there is only mail_path used. I suppose, that this is what exactly necessary instead of home variable.</p>]]></description>
			<author><![CDATA[null@example.com (gautamabuddha)]]></author>
			<pubDate>Mon, 21 Sep 2026 16:20:32 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92250.html#p92250</guid>
		</item>
		<item>
			<title><![CDATA[Re: Active Directory integration in Dovecot]]></title>
			<link>https://forum.iredmail.org/post92249.html#p92249</link>
			<description><![CDATA[<p>Finally win! Here is part of my WORKING dovecot.conf, which allows AD authentication.</p><p>###########################################################<br />#<br /># Virtual mail accounts.<br />#</p><p>ldap_uris = ldap://&lt;AD DC name or IP&gt;:389<br />ldap_version = 3<br />ldap_debug_level = 0<br />ldap_deref = never<br />ldap_base = OU=orgunit,DC=domain,DC=loc<br />ldap_scope = subtree<br />ldap_starttls = no<br />ldap_auth_dn = CN=iredmail,OU=ServiceAccounts,DC=domain,DC=loc<br />ldap_auth_dn_password = Pd1lsdd8jhKKJftf*kj2tXjC7L7</p><p>userdb ldap {<br />&nbsp; &nbsp; filter = (&amp;(objectCategory=person)(objectClass=user)(mail=%{user})(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />&nbsp; &nbsp; fields {<br />&nbsp; &nbsp; &nbsp; &nbsp; #home = /var/vmail/vmail1/%{user | domain | lower}/%{user | username | lower}<br />&nbsp; &nbsp; &nbsp; &nbsp; mail_path = /var/vmail/vmail1/%{user | domain | lower}/%{user | username | lower}<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; iterate_filter = (&amp;(objectCategory=person)(objectClass=user)(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />&nbsp; &nbsp; iterate_fields {<br />&nbsp; &nbsp; &nbsp; &nbsp; user = %{ldap:mail}<br />&nbsp; &nbsp; }<br />}</p><p>passdb ldap {<br />&nbsp; &nbsp; bind = yes<br />&nbsp; &nbsp; filter = (&amp;(mail=%{user})(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />&nbsp; &nbsp; fields {<br />&nbsp; &nbsp; &nbsp; &nbsp; user = %{ldap:mail}<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; use_worker = yes<br />}</p>]]></description>
			<author><![CDATA[null@example.com (gautamabuddha)]]></author>
			<pubDate>Mon, 21 Sep 2026 16:13:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92249.html#p92249</guid>
		</item>
		<item>
			<title><![CDATA[Re: Active Directory integration in Dovecot]]></title>
			<link>https://forum.iredmail.org/post92248.html#p92248</link>
			<description><![CDATA[<p>Absolutely same problem. I installed iRedMail with integration with AD two years ago, and all worked fine. <br />Couple days ago i set up a new installation. Postfix is OK, but Dovecot is not. I found a fresh official docs (HowTo), which says, that in current version (2.4.1-4 on debian 13.6) all settings must be done in dovecot.conf. <br />As user i used a mail attribute instead of mailRoutingAddress:<br />user = %{ldap:mail}<br />Also i used this settins to log login attempts:<br />auth_verbose = yes<br />auth_debug_passwords = yes<br />Then restart dovecot service and try to login as described in iRedMail doc (telnet localhost 143 and so on). When login fails, type this:<br />journalctl -e -u dovecot<br />It will show details about unsuccessful login attempt.<br />When i add this<br />passdb ldap {<br />&nbsp; bind_userdn = %{user}<br />&nbsp; bind = yes<br />}<br />in log i see, that in AD is no mail attribute. How so?<br />When i remove lines<br />&nbsp; bind_userdn = %{user}<br />&nbsp; bind = yes<br />in log i see, that in AD is no mail usePassword attribute.<br />I don&#039;t know, what to do more. Any suggestions, please?</p>]]></description>
			<author><![CDATA[null@example.com (gautamabuddha)]]></author>
			<pubDate>Sun, 20 Sep 2026 18:28:08 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92248.html#p92248</guid>
		</item>
		<item>
			<title><![CDATA[Active Directory integration in Dovecot]]></title>
			<link>https://forum.iredmail.org/post92246.html#p92246</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.8.8 <br />- Deployed with downloadable installer<br />- Linux/BSD distribution name and version: Debian13<br />- Store mail accounts: LDAP <br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>I installed iredmail 1.8.8 with OpenLDAP on Debian13 and configured the integration with ActiveDirectory according to the official instructions </p><p>The connection between Dovecot and AD via LDAP is not working. The diagnostics show that Dovecot is using the configuration from the dovecot.conf file and is not taking into account the connection parameters in the dovecot-ldap.conf file.</p><p>Example of an error:</p><p># telnet localhost 143<br />Trying ::1...<br />Connected to localhost.<br />Escape character is &#039;^]&#039;.<br />* OK [CAPABILITY IMAP4rev1 LOGIN-REFERRALS ID ENABLE IDLE SASL-IR LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.<br />. login mailuser@staff.local ********<br />. NO [AUTHENTICATIONFAILED] Authentication failed.<br />==========================================</p><p>dovecot-ldap.conf:</p><p>hosts&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= pc01.staff.local:389<br />ldap_version&nbsp; &nbsp; = 3<br />auth_bind&nbsp; &nbsp; &nbsp; &nbsp;= yes<br />dn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = cn=intmail2-ldap,dc=staff,dc=local<br />dnpass&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = ************<br />base&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = ou=chelgu,dc=staff,dc=local<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= subtree<br />deref&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= never<br />debug_level&nbsp; &nbsp; &nbsp;= 0</p><p># Below two are required by command &#039;doveadm mailbox ...&#039;<br />iterate_attrs&nbsp; &nbsp;= userPrincipalName=user<br />iterate_filter&nbsp; = (&amp;(userPrincipalName=*)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))</p><p>user_filter&nbsp; &nbsp; &nbsp;= (&amp;(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />pass_filter&nbsp; &nbsp; &nbsp;= (&amp;(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />pass_attrs&nbsp; &nbsp; &nbsp; = userPassword=password<br />default_pass_scheme = CRYPT<br />user_attrs&nbsp; &nbsp; &nbsp; = mail=master_user,mail=user,=home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/<br />============================================</p><p>The output of doveconf -n shows the default LDAP connection parameters from the dovecot.conf file.</p><p>***<br />ldap_auth_dn = cn=vmail,dc=staff,dc=local<br />ldap_auth_dn_password = # hidden, use -P to show it<br />ldap_base = o=domains,dc=staff,dc=local<br />ldap_uris = ldap://127.0.0.1:389<br />***</p>]]></description>
			<author><![CDATA[null@example.com (msh)]]></author>
			<pubDate>Wed, 16 Sep 2026 11:19:57 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92246.html#p92246</guid>
		</item>
	</channel>
</rss>
