<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Search base between 2 OU in iRedmail with AD integration]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4455.xml" />
	<updated>2013-02-15T02:36:17Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4455-search-base-between-2-ou-in-iredmail-with-ad-integration.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20339.html#p20339" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>gro555 wrote:</cite><blockquote><p>So I&#039;m wondering, if it is possible to make the mx pointed to New Iredmail server, then from there it will receive the email which recipient have logon at least once to iredmail (means their directory already created in /var/vmail/vmail1) then if it&#039;s not there, it will pass the emails to the old email server.</p></blockquote></div><p>You can set a per-domain relay on NEW iredmail server, so that it can relay all RECEIVED emails to old server. For example:<br /></p><div class="codebox"><pre><code>smtp:[IP_OF_OLD_SERVER]:25</code></pre></div><div class="quotebox"><cite>gro555 wrote:</cite><blockquote><p>Zhang, should I open up new topic for this?</p></blockquote></div><p>Sure, if it&#039;s not related to your question/issue in first post.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-15T02:36:17Z</updated>
			<id>http://www.iredmail.org/forum/post20339.html#p20339</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20333.html#p20333" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nicolasfo wrote:</cite><blockquote><p>I don&#039;t understand what you did when you renamed your OUs...</p></blockquote></div><p>I&#039;m sure I already uncheck the box(protect object from accidental deletion). But somehow it won&#039;t allow me to move the OU into the new OU, until I rename the New OU into the same name like root.</p><p>Anyway, it has been several days, everything work fine, so I&#039;m gonna leave it as it is.<br />Not going to make any other changes.<br />You guys are awesome!!</p><p>I&#039;m stumbling another problem though,<br />The new iredmail server is using the same mail domain as the old server (run on solaris system).<br />I asked my boss if it&#039;s okay to change the mx&nbsp; so it will point to new iredmail server, and he said no.<br />He would like to try it first before using iredmail completely.</p><p>So I&#039;m wondering, if it is possible to make the mx pointed to New Iredmail server, then from there it will receive the email which recipient have logon at least once to iredmail (means their directory already created in /var/vmail/vmail1) then if it&#039;s not there, it will pass the emails to the old email server.</p><p>Zhang, should I open up new topic for this?</p><p>thanks in advance!</p>]]></content>
			<author>
				<name><![CDATA[gro555]]></name>
				<uri>http://www.iredmail.org/forum/user32612.html</uri>
			</author>
			<updated>2013-02-14T17:26:53Z</updated>
			<id>http://www.iredmail.org/forum/post20333.html#p20333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20309.html#p20309" />
			<content type="html"><![CDATA[<p>To unlock moving/deleting OU, you have to : (sorry if it&#039;s not the same than you, my Windows is in french...)<br />- Display<br />- Advanced functionalities<br />- Right click on your OU<br />- Object<br />- Uncheck the tickbox &quot;protect the object against detetes (?)&quot;<br />Then you can move/delete your OU as you want</p><p>Don&#039;t forget to check the box after you made your job, it&#039;s made for that <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I don&#039;t understand what you did when you renamed your OUs...</p>]]></content>
			<author>
				<name><![CDATA[nicolasfo]]></name>
				<uri>http://www.iredmail.org/forum/user6687.html</uri>
			</author>
			<updated>2013-02-13T15:59:37Z</updated>
			<id>http://www.iredmail.org/forum/post20309.html#p20309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20281.html#p20281" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>gro555 wrote:</cite><blockquote><p>I also tried to use two queries files, but then I faced new problem, because it worked for postfix configuration, but not for dovecot.</p></blockquote></div><p>You can use this style in Dovecot too. For example:<br /></p><div class="codebox"><pre><code>#
# Original settings
#
userdb {
    args = /etc/dovecot/dovecot-mysql.conf
    driver = ldap
}

passdb {
    args = /etc/dovecot/dovecot-mysql.conf
    driver = ldap
}</code></pre></div><p>Just add more userdb and passdb for another OU like below:<br /></p><div class="codebox"><pre><code># For users under ou=Employees
userdb {
    args = /etc/dovecot/dovecot-mysql-employees.conf
    driver = ldap
}

passdb {
    args = /etc/dovecot/dovecot-mysql-employees.conf
    driver = ldap
}

# For users under ou=Parttime
userdb {
    args = /etc/dovecot/dovecot-mysql-parttime.conf
    driver = ldap
}

passdb {
    args = /etc/dovecot/dovecot-mysql-parttime.conf
    driver = ldap
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-11T15:09:38Z</updated>
			<id>http://www.iredmail.org/forum/post20281.html#p20281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20274.html#p20274" />
			<content type="html"><![CDATA[<p>Hello All,</p><p>Thank you for all of the replies.<br />I tried Zhang recommendation to allow AD to do root search base, but can&#039;t find any solution for that.<br />Then, as recommended by Nicholas, I tried to move the OU into another OU, but somehow, the AD won&#039;t allow me to do that.</p><p>I also tried to use two queries files, but then I faced new problem, because it worked for postfix configuration, but not for dovecot.</p><p>Then, I googled around, and I stumbled Nicholas&#039;s topics about the same problem:</p><p><a href="http://www.iredmail.org/forum/topic3143-iredmail-support-ad-integration-p2.html">http://www.iredmail.org/forum/topic3143 … on-p2.html</a></p><p>And I read, you have to name the OU to be the same like the root name, so I rename it to be the same like root name and AD let me move those 2 OU under the new OU.</p><p>And now, roundcube work beautifully.<br />And also, I thought, I have to changed the configuration of others systems that use AD, apparently not.<br />All other system work perfectly too, at least for now.</p><p>I will let you guys know if I found any other solution or problems about this.</p><p>Thank you,</p><p>Greg RO</p>]]></content>
			<author>
				<name><![CDATA[gro555]]></name>
				<uri>http://www.iredmail.org/forum/user32612.html</uri>
			</author>
			<updated>2013-02-10T19:12:25Z</updated>
			<id>http://www.iredmail.org/forum/post20274.html#p20274</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20260.html#p20260" />
			<content type="html"><![CDATA[<p>Oh, here&#039;s another way if you cannot config AD to allow search from root dn (dc=example,dc=com): Uses LDAP query files in Postfix instead of one, and use different base dn (ou=Employees, ou=Parttime) in them. For example:</p><p>Original one:<br /></p><div class="codebox"><pre><code>smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ad_sender_login_maps.cf</code></pre></div><p>We now use two query files instead:<br /></p><div class="codebox"><pre><code>smtpd_sender_login_maps =
    proxy:ldap:/etc/postfix/ad_sender_login_maps_employees.cf,
    proxy:ldap:/etc/postfix/ad_sender_login_maps_partime.cf</code></pre></div><p>Update ad_sender_login_maps_employees.cf to use ou=Employees as search base dn:<br /></p><div class="codebox"><pre><code>search_base     = ou=Employees,dc=example,dc=com</code></pre></div><p>Update ad_sender_login_maps_partime.cf to use ou=Parttime as search base dn:<br /></p><div class="codebox"><pre><code>search_base     = ou=Parttime,dc=example,dc=com</code></pre></div><p>That&#039;s all. And replace other LDAP queries the same way.</p><p>Again, please try to configure AD to allow searching from root dn (dc=example,dc=com) first.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-09T06:32:53Z</updated>
			<id>http://www.iredmail.org/forum/post20260.html#p20260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20254.html#p20254" />
			<content type="html"><![CDATA[<p>As far as i know, AD doesn&#039;t allow to use dc=example,dc=com as search base dn by default, but you can change this setting. Unfortunately, i forgot how to change it, or maybe i&#039;m wrong. <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-08T13:20:39Z</updated>
			<id>http://www.iredmail.org/forum/post20254.html#p20254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20251.html#p20251" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I&#039;ve notice this before, and the only thing I found, is to put your 2 OUs (Employees and Partitime) in another OU (called &quot;Companyusers&quot; for example).</p><p>After this, you set the search base to this new OU.</p><p>Nicolas</p>]]></content>
			<author>
				<name><![CDATA[nicolasfo]]></name>
				<uri>http://www.iredmail.org/forum/user6687.html</uri>
			</author>
			<updated>2013-02-08T10:37:53Z</updated>
			<id>http://www.iredmail.org/forum/post20251.html#p20251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Search base between 2 OU in iRedmail with AD integration]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20248.html#p20248" />
			<content type="html"><![CDATA[<p>Hi Zhang,</p><p>First of all thank you for your hardwork.<br />iRedmail is a really good product.</p><p>I have question.<br />I&#039;m following this tutorial: <a href="http://www.iredmail.org/wiki/index.php?title=Integration/Active.Directory.iRedMail">http://www.iredmail.org/wiki/index.php? … y.iRedMail</a><br />to make the iredmail works with our company AD.</p><p>My experience is limited about Active Directory design.<br />But I think our AD is a little bit different.</p><p>All of the users are reside inside OU instead of CN=users, for example, I&#039;m trying to make postfix and dovecot to authenticate users reside between either one of the 2 OU, which are:<br />ou=Employees and ou=Parttime</p><p>I have tried to make the search base to be : <br />dc=example,dc=com</p><p>and it didn&#039;t work.</p><p>But, if I make it like this:<br />ou=Employees,dc=example,dc=com</p><p>or if I make it like this:<br />ou=Parttime,dc=example,dc=com</p><p>It will work.</p><p>I&#039;m wondering if it is possible to make postfix and dovecot to authenticate users reside between either one of the 2 OU.</p><br /><p>Sincerely,</p><p>Greg R O</p><br /><p>==== Required information ====<br />- iRedMail version: 0.8.3 <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): AD<br />- Linux/BSD distribution name and version: Red Hat 6<br />- Related log if you&#039;re reporting an issue: <br />====</p>]]></content>
			<author>
				<name><![CDATA[gro555]]></name>
				<uri>http://www.iredmail.org/forum/user32612.html</uri>
			</author>
			<updated>2013-02-08T07:45:36Z</updated>
			<id>http://www.iredmail.org/forum/post20248.html#p20248</id>
		</entry>
</feed>
