<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — integration with Windows Domain]]></title>
		<link>https://forum.iredmail.org/topic3165-integration-with-windows-domain.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic3165.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in integration with Windows Domain.]]></description>
		<lastBuildDate>Wed, 11 Jun 2014 00:30:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post31017.html#p31017</link>
			<description><![CDATA[<div class="quotebox"><cite>edwardmacri wrote:</cite><blockquote><p>Should I also edit /etc/amavis/conf.d/50-user accordingly?</p></blockquote></div><p>Yes.</p><p>BTW, Please post your own question in a new forum topic, do not hijack other&#039;s thread.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 11 Jun 2014 00:30:16 +0000</pubDate>
			<guid>https://forum.iredmail.org/post31017.html#p31017</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post31015.html#p31015</link>
			<description><![CDATA[<p>Thank you for great product and support, I appreciate your fast and helpful response.</p><p>&nbsp; &nbsp; I couldn&#039;t get hard code to work, but changing userPrincipalName attribute to mail attribute is working.&nbsp; I think my original problem was dovecot doesn&#039;t like base = dc=corp,dc=example,dc=com, but since I have everything in an OU it works with base = ou=ExampleOU,dc=corp,dc=example,dc=com</p><p>Should I also edit /etc/amavis/conf.d/50-user accordingly?</p><br /><p>Thank you, Ed</p>]]></description>
			<author><![CDATA[null@example.com (edwardmacri)]]></author>
			<pubDate>Tue, 10 Jun 2014 16:48:27 +0000</pubDate>
			<guid>https://forum.iredmail.org/post31015.html#p31015</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post31014.html#p31014</link>
			<description><![CDATA[<p>You can try to hard-code mail domain name in Dovecot/Postfix config files, it&#039;s mentioned in the wiki tutorial.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 10 Jun 2014 15:35:02 +0000</pubDate>
			<guid>https://forum.iredmail.org/post31014.html#p31014</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post31013.html#p31013</link>
			<description><![CDATA[<p>Hello all,</p><p>&nbsp; My domain is corp.example.com, and mail is example.com.&nbsp; Can we just change the userPrincipalName attribute to mail attribute and define in ad such as emacri@example.com?</p><p>&nbsp; &nbsp;I had this working is Postfix but couldn&#039;t get Dovecot accept login.&nbsp; I have tried the above methods but no Dovecot.&nbsp; I am starting over fresh with just corp.example.com to make sure all is working before I start changing things again.</p><p>Thank you, Ed</p>]]></description>
			<author><![CDATA[null@example.com (edwardmacri)]]></author>
			<pubDate>Tue, 10 Jun 2014 15:24:51 +0000</pubDate>
			<guid>https://forum.iredmail.org/post31013.html#p31013</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post23369.html#p23369</link>
			<description><![CDATA[<p>The tutorial works fine with Samba 4 AD DS as well. Another way to serve other mail domains then the DNS name of the AD is to add uPNSuffixes. Either like this: <a href="http://support.microsoft.com/kb/243629">http://support.microsoft.com/kb/243629</a> or by adding a uPNSuffix to an OU. I chose the latter. When using uPNSuffixes you don&#039;t have lock-in in the LDAP-searchstrings and makes the iRedmail suite somewhat more flexible.</p><p>First I added an modified account for iRedmail suite: vmailer@example.org instead of vmail@example.org.</p><p>I also did some changes to some of the files mentioned in the integration how-to:<br />Edit /etc/amavis/conf.d/50-user (at the bottom):<br />$default_ldap&nbsp; &nbsp;= {<br />&nbsp; &nbsp; hostname&nbsp; &nbsp; &nbsp; &nbsp; =&gt; &quot;127.0.0.1&quot;,<br />&nbsp; &nbsp; port&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 389,<br />&nbsp; &nbsp; version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; 3,<br />&nbsp; &nbsp; tls&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; 0,<br />&nbsp; &nbsp; timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; 120,<br />&nbsp; &nbsp; base&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; &quot;ou=%d,dc=example,dc=org&quot;,<br />&nbsp; &nbsp; scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; &quot;sub&quot;,<br />&nbsp; &nbsp; query_filter&nbsp; &nbsp; =&gt; &quot;(&amp;(userPrincipalName=%s)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))&quot;,<br />&nbsp; &nbsp; result_attribute =&gt; &quot;userPrincipalName&quot;,<br />&nbsp; &nbsp; bind_dn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; &quot;cn=vmailer,cn=users,dc=example,dc=org&quot;,<br />&nbsp; &nbsp; bind_password&nbsp; &nbsp;=&gt; &quot;Pa$$w0rd&quot;,<br />};</p><p>Minor changes to /etc/postfix/ad_sender_login_maps.cf, /etc/postfix/ad_virtual_group_maps.cf and /etc/postfix/ad_virtual_mailbox_maps.cf:<br /> search_base = cn=users,dc=example,dc=org -&gt; search_base = dc=example,dc=org</p><p>Changed the following line in/etc/dovecot/dovecot-ldap.conf<br />base = cn=User,dc=example,dc=org -&gt; base = ou=%d,dc=example,dc=org</p><p>Add the mail domain to /etc/postfix/transport.<br />Continue with editing /etc/default/slapd. Uncomment #SLAPD_NO_START=1.</p><p>Thank you<br />Davor</p>]]></description>
			<author><![CDATA[null@example.com (DavorVusir)]]></author>
			<pubDate>Sun, 14 Jul 2013 10:15:27 +0000</pubDate>
			<guid>https://forum.iredmail.org/post23369.html#p23369</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20909.html#p20909</link>
			<description><![CDATA[<p>Hi Frankstar,<br />If you use AD, please use it&#039;s default &quot;group&quot; as mail list.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 18 Mar 2013 13:30:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20909.html#p20909</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20904.html#p20904</link>
			<description><![CDATA[<p>i tought, that doesnt work if i use full Microsoft AD integration ?</p>]]></description>
			<author><![CDATA[null@example.com (Frankstar)]]></author>
			<pubDate>Mon, 18 Mar 2013 13:21:43 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20904.html#p20904</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20903.html#p20903</link>
			<description><![CDATA[<div class="quotebox"><cite>Frankstar wrote:</cite><blockquote><p>how did u guys add alias adresses ?</p></blockquote></div><p>You can add alias addresses manually, or with iRedAdmin-Pro (<a href="http://www.iredmail.org/admin_panel.html">http://www.iredmail.org/admin_panel.html</a>).</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 18 Mar 2013 13:19:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20903.html#p20903</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20902.html#p20902</link>
			<description><![CDATA[<p>other question,</p><p>how did u guys add alias adresses ?</p>]]></description>
			<author><![CDATA[null@example.com (Frankstar)]]></author>
			<pubDate>Mon, 18 Mar 2013 13:18:43 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20902.html#p20902</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20357.html#p20357</link>
			<description><![CDATA[<p>Here&#039;s my configs. It does work, in either this format or with %s.&nbsp; This allows me to choose any domain name which is not to desirable but at least it works.&nbsp; I fail to understand what I should put in the &#039;domains&#039; OU in active directory.&nbsp; Do I put in specific OU&#039;s?&nbsp; Do i place the users in the OU&#039;s? (ie. ou=Domains\ou=domain.ca\%users%).&nbsp; Your help is appreciated and thanks!</p><p>Dovecot<br /></p><div class="codebox"><pre><code>hosts           = ad.domain.lan:389
ldap_version    = 3
auth_bind       = yes
dn              = vmail
dnpass          = Password
base            = ou=DomainUsers,dc=domain,dc=lan
scope           = subtree
deref           = never
user_filter     = (&amp;(userPrincipalName=%n@domain.lan)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter     = (&amp;(userPrincipalName=%n@domain.lan)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = =home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/ </code></pre></div><p>Postfix<br /></p><div class="codebox"><pre><code>server_host     = ad.domain.lan
server_port     = 389
version         = 3
bind            = yes
start_tls       = no
bind_dn         = vmail
bind_pw         = Password
search_base     = ou=DomainUsers,dc=domain,dc=lan
scope           = sub
query_filter    = (&amp;(userPrincipalName=%u@domain.lan)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
result_attribute= userPrincipalName
debuglevel      = 0</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (opiateESP)]]></author>
			<pubDate>Fri, 15 Feb 2013 21:22:27 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20357.html#p20357</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20325.html#p20325</link>
			<description><![CDATA[<p>Can you post your confs files...?</p><p>With the method I&#039;ve mentionned before, it cannot login using a domain wich isn&#039;t in the specified OU... Therefore, I can&#039;t help you if you don&#039;t use this trick, because I only know this one.</p>]]></description>
			<author><![CDATA[null@example.com (nicolasfo)]]></author>
			<pubDate>Thu, 14 Feb 2013 08:29:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20325.html#p20325</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20316.html#p20316</link>
			<description><![CDATA[<p>Ok, so I have it accepting logins now but the problem is it will accept ANY login so long as the username is from AD.&nbsp; I have entered the OpenLDAP query&#039;s as:</p><p><strong>%u@domain.lan</strong> for postfix and <strong>%n@domain.lan</strong> for dovecot.&nbsp; This allows <strong>user@ANYNAME.COM</strong> to login successfully.&nbsp; I guess this is a semi-victory as I can now use my desired domain.&nbsp; Now I just need to restrict this to only allow the domain that I wish to use.</p><p>Any thoughts?</p>]]></description>
			<author><![CDATA[null@example.com (opiateESP)]]></author>
			<pubDate>Wed, 13 Feb 2013 18:20:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20316.html#p20316</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20307.html#p20307</link>
			<description><![CDATA[<p>What is you /var/log/mail.log ?</p><p>What isn&#039;t working as expected ? Did you try tests commands as mentionned in the howto ?</p>]]></description>
			<author><![CDATA[null@example.com (nicolasfo)]]></author>
			<pubDate>Wed, 13 Feb 2013 15:35:18 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20307.html#p20307</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20297.html#p20297</link>
			<description><![CDATA[<p>That didn&#039;t work for me. I know I must be missing something.</p>]]></description>
			<author><![CDATA[null@example.com (opiateESP)]]></author>
			<pubDate>Tue, 12 Feb 2013 18:57:37 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20297.html#p20297</guid>
		</item>
		<item>
			<title><![CDATA[Re: integration with Windows Domain]]></title>
			<link>https://forum.iredmail.org/post20252.html#p20252</link>
			<description><![CDATA[<p>Hello,</p><p>In my case, my AD domain is called &quot;domain.lan&quot; and my externals domains are called &quot;domain2.fr&quot;, &quot;domain3.com&quot;, &quot;domain4.biz&quot;</p><p>So, I&#039;ve made an OU called &quot;domains&quot; at the root of my AD tree (under &quot;domain.lan&quot;) and I&#039;ve made others OU under &quot;domains&quot;, one for each domains I&#039;m supposed to manage.</p><p>After this, in Dovecot :</p><p>/etc/dovecot/dovecot-ldap.conf :<br /></p><div class="codebox"><pre><code>hosts           = dc.domain.lan:389
ldap_version    = 3
auth_bind       = yes
dn              = vmail@domain.lan
dnpass          = password_of_vmail
base            = ou=domains,dc=domain,dc=lan
scope           = subtree
deref           = never
user_filter     = (&amp;(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter     = (&amp;(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = =home=/path_to_your_storage/%Ld/%Ln/Maildir/,=mail=maildir:/path_to_your_storage/mail/%Ld/%Ln/Maildir/</code></pre></div><p>With this config, users must authenticate with, as username, the full email address.</p><p>Use the same config in Postfix, but beware to add the line &quot;result_attribute= userPrincipalName&quot; in each 3 files *_maps.cf&quot; (I&#039;ve modified only those files), beacause you&#039;ll had duplicates results with the tests commands mentionned in the howto.</p><p>Had I answered to your problem ?</p><p>Nicolas</p>]]></description>
			<author><![CDATA[null@example.com (nicolasfo)]]></author>
			<pubDate>Fri, 08 Feb 2013 10:44:55 +0000</pubDate>
			<guid>https://forum.iredmail.org/post20252.html#p20252</guid>
		</item>
	</channel>
</rss>
