<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — diferents mail domain and local domain]]></title>
		<link>http://www.iredmail.org/forum/topic3827-diferents-mail-domain-and-local-domain.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic3827.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in diferents mail domain and local domain.]]></description>
		<lastBuildDate>Sun, 09 Sep 2012 00:38:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post18120.html#p18120</link>
			<description><![CDATA[<p>thanks for all your help . . . you can closed the post and mark as solved . . .&nbsp; thanks again</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Sun, 09 Sep 2012 00:38:35 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18120.html#p18120</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post18002.html#p18002</link>
			<description><![CDATA[<div class="quotebox"><cite>donaldyg wrote:</cite><blockquote><p>I dont want thet users use the full domain name to login the webmail service</p></blockquote></div><p>Try to tune Dovecot config file (/etc/dovecot/dovecot-ldap.conf) to use only username (without @domain.ltd) as login name.</p><div class="quotebox"><cite>donaldyg wrote:</cite><blockquote><p>how i disable in roundcube the autocomplete  SUBJECT field when i write a subject ????</p></blockquote></div><p>This is web browser issue, it will help remember them. Not sure whether this feature can be disabled or not. Please try Google yourself.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 03 Sep 2012 08:40:08 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18002.html#p18002</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17990.html#p17990</link>
			<description><![CDATA[<p>other doubt . .&nbsp; . many users use the same pc to send/recieve mails via roundcube webmail . . . the first user write a mail to his girlfriend with a subject I LOVE YOU . . .&nbsp; when de second user login webmail and try to write a mail and in the subject field put for eg: YOU..... the subject filed show the I LOVE YOU subject from the first user. . . .how i disable in roundcube the autocomplete&nbsp; SUBJECT field when i write a subject ????</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Sat, 01 Sep 2012 15:30:47 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17990.html#p17990</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17989.html#p17989</link>
			<description><![CDATA[<p>Hi ZhangHuangbin</p><p>Finally, after hours and hours of hard work, reading documentation, testing and more testing finally finish the job. Wow, isn&#039;t been easy for me, is my firts time config a mail server . . .but thanks to you I made it . . . however I have 2 or 3 minors issues to tuneup, eg: </p><p>Since my AD domain is &quot;dominio.local&quot; and my users email are under &quot;@cpe.com&quot; fill up manually in the mail field of each user I can login Webamil using &quot;user@dominio.local&quot; and &quot;user@cpe.com&quot; and only &quot;user&quot;, last two are ok for me but not the first . . . I dont want thet users use the full domain name to login the webmail service . . . where i can put some rule to invalidate the user when he try to login using full domain name??? Any ideas???</p><p>Later I&#039;ll put here the .cf and dovecot-ldap.conf files config to all the users who need help working in some config like this . . .</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Sat, 01 Sep 2012 12:50:39 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17989.html#p17989</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17883.html#p17883</link>
			<description><![CDATA[<div class="quotebox"><cite>donaldyg wrote:</cite><blockquote><p>like in the postfix .cf files I must change &quot;userPrincipalName=%u&quot; by &quot;mail=%n@cpe.com&quot; ??????</p></blockquote></div><p>Yes.</p><p>It&#039;s a good idea to try it first before asking. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 25 Aug 2012 14:23:22 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17883.html#p17883</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17880.html#p17880</link>
			<description><![CDATA[<p>Hi&nbsp; ZhangHuangbin</p><p>Thanks for your replay, I make the changes and now I got a valid answer every time a make a query, no matter if I ask for the domain user &quot;donald@dominio.local&quot; or the mail user &quot;donald@cpe.com&quot; the lines in the 3 .cf files looks like this:</p><p>------------------------------------<br />ad_sender_login_maps.cf</p><p>query_filter = (&amp;(mail=%u@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />result_attribute = userPrincipalName<br />------------------------------------<br />ad_virtual_group_maps.cf</p><p>query_filter = (&amp;(objectClass=group)(sAMAccountName=%u))<br />special_result_attribute = member<br />result_attribute = userPrincipalName<br />------------------------------------<br />ad_virtual_mailbox_maps.cf</p><p>query_filter = (&amp;(objectClass=person)(mail=%u@cpe.com))<br />result_attribute = userPrincipalName<br />result_format = %d/%u/Maildir/<br />------------------------------------</p><p>Now its time to modify the dovecot-ldap.conf file, in the line:</p><p>user_filter = (&amp;(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))</p><p>like in the postfix .cf files I must change &quot;userPrincipalName=%u&quot; by &quot;mail=%n@cpe.com&quot; ??????</p><p>I hope that with this last doubt the integration goes well, only you can help, my congratulations for the great work you are making here !!! Thanks</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Sat, 25 Aug 2012 13:21:14 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17880.html#p17880</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17878.html#p17878</link>
			<description><![CDATA[<div class="quotebox"><cite>donaldyg wrote:</cite><blockquote><p>As you see if I use<br />query_filter=(&amp;(userPrincipalName=%u@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br />never got a valid asnwer</p></blockquote></div><p>Because you don&#039;t have &quot;userPrincipalName=xxx@cpe.com at all, it&#039;s &quot;mail=xxx@cpe.com&quot;. So please update query_filter to below:<br /></p><div class="quotebox"><blockquote><p>query_filter=(&amp;(<span style="color: red">mail</span>=%u@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 25 Aug 2012 12:42:29 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17878.html#p17878</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17876.html#p17876</link>
			<description><![CDATA[<p>Hi ZhangHuangbin:</p><p>Here is the LDIF data of the user donald:<br />--------------------------------------------------------------<br />dn: CN=Donald Yañez,CN=Users,DC=dominio,DC=local<br />changetype: add<br />accountExpires: 9223372036854775807<br />cn:: RG9uYWxkIFlhw7Fleg==<br />codePage: 0<br />countryCode: 0<br />displayName:: RG9uYWxkIFlhw7Fleg==<br />distinguishedName:: <br /> Q049RG9uYWxkIFlhw7FleixDTj1Vc2VycyxEQz1kb21pbmlvLERDPWxvY2Fs<br />givenName: Donald<br />instanceType: 4<br />mail: donald@cpe.com<br />name:: RG9uYWxkIFlhw7Fleg==<br />objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=dominio,DC=local<br />objectClass: top<br />objectClass: person<br />objectClass: organizationalPerson<br />objectClass: user<br />sAMAccountName: donald<br />sn:: WWHDsWV6<br />userAccountControl: 512<br />userPrincipalName: donald@dominio.local<br />uSNChanged: 16426<br />uSNCreated: 16403<br />whenChanged: 20120824153437.0Z<br />whenCreated: 20120824152837.0Z<br />--------------------------------------------------------------<br />As you see if I use </p><p>query_filter=(&amp;(userPrincipalName=%u@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) </p><p>never got a valid asnwer, but if I change the query to</p><p>query_filter=(&amp;(userPrincipalName=%u@dominio.local)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) </p><p>and i query for donald@cpe.com then I got a valid answer result_attribute=userPrincipalName=donald@dominio.local</p><p>But my doubts still if this result_attribute=donald@dominio.local if the data that mail use to login an account or if a simple query to verify the existency of a valid user around de domain?!?!? Why not use result_attribute=mail for example???? </p><p>Sorry me please . . . thanks . . .</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Sat, 25 Aug 2012 09:29:07 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17876.html#p17876</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17871.html#p17871</link>
			<description><![CDATA[<p>You make me confused.</p><p>The query_filter is used to query mail accounts against AD, if it cannot find any account with query_filter, that means user doesn&#039;t exist.</p><p>Could you please show us the full LDIF data of your user?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 25 Aug 2012 08:17:50 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17871.html#p17871</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17866.html#p17866</link>
			<description><![CDATA[<p>Hi ZhangHuangbin:</p><p>In fact, donald@cpe.com not exist as user, the user is donald@dominio.local, remember that my domian is &quot;dominio.local&quot;, but all my user have mail under &quot;cpe.com&quot; cause I need the mail domain use this sufix. Im new in this and I dont know many things about postfix and dovecot. I need to know various things, eg:</p><p>dovecot cpe.com -- what is this ???</p><p>ad_sender_login_maps.cf have a result_attribute = userPrincipalName, this result is what I need to login the mail server or the user I send the mail ???</p><p>ad_virtual_mailbox_maps.cf have a result_format=xxxxxx, this is the mailbox dir ???</p><p>ad_virtual_group_maps.cf have a result_attribute=userPrincipalName, this list the users who are part of this group ??? </p><p>Please help me with this doubts, thanks to that I&#039;ll be able to understand more about the config I need</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Sat, 25 Aug 2012 02:35:09 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17866.html#p17866</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17863.html#p17863</link>
			<description><![CDATA[<p>- Does user &quot;donald@cpe.com&quot; (userPrincipalName=donald@cpe.com)exist in AD server?<br />- Why not simplify it with simpler LDAP filter first? e.g. Use &quot;(userPrincipalName=donald@cpe.com)&quot; as LDAP query filter instead of &quot;(&amp;(userPrincipalName=donald@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))&quot;</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 25 Aug 2012 01:54:06 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17863.html#p17863</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17857.html#p17857</link>
			<description><![CDATA[<p>Hi ZhangHuangbin</p><p>I follow yours instructions, config LDAP sufix as &quot;dc=dominio,dc=local&quot; and the mail domain as &quot;cpe.com&quot;. During the integration with AD I use &quot;cpe.com&quot; in: </p><p>postconf -e smtpd_sasl_local_domain=&#039;cpe.com&#039;<br />postconf -e virtual_mailbox_domains=&#039;cpe.com&#039;</p><p>Now when I created the transport file I use &quot;cpe.com&quot; too, IS THIS RIGTH OR I HAVE TO USE &quot;dominio.local&quot;???</p><p>You has to know that my local domian AD has users under &quot;dominio.local&quot; but their mails are&nbsp; &quot;@cpe.com&quot;, with this info I created the ad_sender_login_maps.cf file like this:</p><p>-----------------------------------<br />server_host = 192.168.2.4<br />server_port = 389<br />version = 3<br />bind = yes<br />start_tls = no<br />bind_dn = vmail<br />bind_pw = vmail_pass<br />search_base = cn=users,dc=dominio,dc=local<br />scope = sub</p><p># I replace the %s by %u@cpe.com according to <a href="http://www.iredmail.org/forum/topic3165-integration-with-windows-domain.html">http://www.iredmail.org/forum/topic3165 … omain.html</a></p><p>query_filter = (&amp;(userPrincipalName=%u@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))</p><p>result_attribute = userPrincipalName<br />debuglevel = 0<br />-----------------------------------</p><p>Now when I try to verify AD query in postfix:</p><p># postmap -q donald@dominio.local ldap:/etc/postfix/ad_sender_login_maps.cf</p><p>I got nothing by answer, I tried use donald@cpe.com but nothing appear too, here is tho log when I change debuglevel to 1</p><p>root@mail:/etc/postfix# postmap -q donald@dominio.local ldap:/etc/postfix/ad_sender_login_maps.cf<br />postmap: dict_ldap_debug: ldap_create<br />postmap: dict_ldap_debug: ldap_url_parse_ext(ldap://192.168.2.4:389)<br />postmap: dict_ldap_debug: ldap_sasl_bind<br />postmap: dict_ldap_debug: ldap_send_initial_request<br />postmap: dict_ldap_debug: ldap_new_connection 1 1 0<br />postmap: dict_ldap_debug: ldap_int_open_connection<br />postmap: dict_ldap_debug: ldap_connect_to_host: TCP 192.168.2.4:389<br />postmap: dict_ldap_debug: ldap_new_socket: 4<br />postmap: dict_ldap_debug: ldap_prepare_socket: 4<br />postmap: dict_ldap_debug: ldap_connect_to_host: Trying 192.168.2.4:389<br />postmap: dict_ldap_debug: ldap_pvt_connect: fd: 4 tm: 10 async: 0<br />postmap: dict_ldap_debug: ldap_ndelay_on: 4<br />postmap: dict_ldap_debug: ldap_int_poll: fd: 4 tm: 10<br />postmap: dict_ldap_debug: ldap_is_sock_ready: 4<br />postmap: dict_ldap_debug: ldap_ndelay_off: 4<br />postmap: dict_ldap_debug: ldap_pvt_connect: 0<br />postmap: dict_ldap_debug: ldap_open_defconn: successful<br />postmap: dict_ldap_debug: ldap_send_server_request<br />postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:<br />postmap: dict_ldap_debug: ber_scanf fmt ({i) ber:<br />postmap: dict_ldap_debug: ber_flush2: 28 bytes to sd 4<br />postmap: dict_ldap_debug: ldap_result ld 0x21fb9e00 msgid 1<br />postmap: dict_ldap_debug: wait4msg ld 0x21fb9e00 msgid 1 (timeout 10000000 usec)<br />postmap: dict_ldap_debug: wait4msg continue ld 0x21fb9e00 msgid 1 all 1<br />postmap: dict_ldap_debug: ** ld 0x21fb9e00 Connections:<br />postmap: dict_ldap_debug: * host: 192.168.2.4&nbsp; port: 389&nbsp; (default)<br />postmap: dict_ldap_debug:&nbsp; &nbsp;refcnt: 2&nbsp; status: Connected<br />postmap: dict_ldap_debug:&nbsp; &nbsp;last used: Fri Aug 24 11:48:40 2012<br />postmap: dict_ldap_debug:<br />postmap: dict_ldap_debug: ** ld 0x21fb9e00 Outstanding Requests:<br />postmap: dict_ldap_debug:&nbsp; * msgid 1,&nbsp; origid 1, status InProgress<br />postmap: dict_ldap_debug:&nbsp; &nbsp; outstanding referrals 0, parent count 0<br />postmap: dict_ldap_debug:&nbsp; &nbsp;ld 0x21fb9e00 request count 1 (abandoned 0)<br />postmap: dict_ldap_debug: ** ld 0x21fb9e00 Response Queue:<br />postmap: dict_ldap_debug:&nbsp; &nbsp; Empty<br />postmap: dict_ldap_debug:&nbsp; &nbsp;ld 0x21fb9e00 response count 0<br />postmap: dict_ldap_debug: ldap_chkResponseList ld 0x21fb9e00 msgid 1 all 1<br />postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x21fb9e00 NULL<br />postmap: dict_ldap_debug: ldap_int_select<br />postmap: dict_ldap_debug: read1msg: ld 0x21fb9e00 msgid 1 all 1<br />postmap: dict_ldap_debug: ber_get_next<br />postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:<br />postmap: dict_ldap_debug: read1msg: ld 0x21fb9e00 msgid 1 message type bind<br />postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:<br />postmap: dict_ldap_debug: read1msg: ld 0x21fb9e00 0 new referrals<br />postmap: dict_ldap_debug: read1msg:&nbsp; mark request completed, ld 0x21fb9e00 msgid 1<br />postmap: dict_ldap_debug: request done: ld 0x21fb9e00 msgid 1<br />postmap: dict_ldap_debug: res_errno: 0, res_error: &lt;&gt;, res_matched: &lt;&gt;<br />postmap: dict_ldap_debug: ldap_free_request (origid 1, msgid 1)<br />postmap: dict_ldap_debug: ldap_parse_sasl_bind_result<br />postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:<br />postmap: dict_ldap_debug: ldap_msgfree<br />postmap: dict_ldap_debug: ldap_search_ext<br />postmap: dict_ldap_debug: put_filter: &quot;(&amp;(userPrincipalName=donald@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))&quot;<br />postmap: dict_ldap_debug: put_filter: AND<br />postmap: dict_ldap_debug: put_filter_list &quot;(userPrincipalName=donald@cpe.com)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))&quot;<br />postmap: dict_ldap_debug: put_filter: &quot;(userPrincipalName=donald@cpe.com)&quot;<br />postmap: dict_ldap_debug: put_filter: simple<br />postmap: dict_ldap_debug: put_simple_filter: &quot;userPrincipalName=donald@cpe.com&quot;<br />postmap: dict_ldap_debug: put_filter: &quot;(objectClass=person)&quot;<br />postmap: dict_ldap_debug: put_filter: simple<br />postmap: dict_ldap_debug: put_simple_filter: &quot;objectClass=person&quot;<br />postmap: dict_ldap_debug: put_filter: &quot;(!(userAccountControl:1.2.840.113556.1.4.803:=2))&quot;<br />postmap: dict_ldap_debug: put_filter: NOT<br />postmap: dict_ldap_debug: put_filter_list &quot;(userAccountControl:1.2.840.113556.1.4.803:=2)&quot;<br />postmap: dict_ldap_debug: put_filter: &quot;(userAccountControl:1.2.840.113556.1.4.803:=2)&quot;<br />postmap: dict_ldap_debug: put_filter: simple<br />postmap: dict_ldap_debug: put_simple_filter: &quot;userAccountControl:1.2.840.113556.1.4.803:=2&quot;<br />postmap: dict_ldap_debug: ldap_send_initial_request<br />postmap: dict_ldap_debug: ldap_send_server_request<br />postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:<br />postmap: dict_ldap_debug: ber_scanf fmt ({) ber:<br />postmap: dict_ldap_debug: ber_flush2: 188 bytes to sd 4<br />postmap: dict_ldap_debug: ldap_result ld 0x21fb9e00 msgid 2<br />postmap: dict_ldap_debug: wait4msg ld 0x21fb9e00 msgid 2 (timeout 10000000 usec)<br />postmap: dict_ldap_debug: wait4msg continue ld 0x21fb9e00 msgid 2 all 1<br />postmap: dict_ldap_debug: ** ld 0x21fb9e00 Connections:<br />postmap: dict_ldap_debug: * host: 192.168.2.4&nbsp; port: 389&nbsp; (default)<br />postmap: dict_ldap_debug:&nbsp; &nbsp;refcnt: 2&nbsp; status: Connected<br />postmap: dict_ldap_debug:&nbsp; &nbsp;last used: Fri Aug 24 11:48:40 2012<br />postmap: dict_ldap_debug:<br />postmap: dict_ldap_debug: ** ld 0x21fb9e00 Outstanding Requests:<br />postmap: dict_ldap_debug:&nbsp; * msgid 2,&nbsp; origid 2, status InProgress<br />postmap: dict_ldap_debug:&nbsp; &nbsp; outstanding referrals 0, parent count 0<br />postmap: dict_ldap_debug:&nbsp; &nbsp;ld 0x21fb9e00 request count 1 (abandoned 0)<br />postmap: dict_ldap_debug: ** ld 0x21fb9e00 Response Queue:<br />postmap: dict_ldap_debug:&nbsp; &nbsp; Empty<br />postmap: dict_ldap_debug:&nbsp; &nbsp;ld 0x21fb9e00 response count 0<br />postmap: dict_ldap_debug: ldap_chkResponseList ld 0x21fb9e00 msgid 2 all 1<br />postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x21fb9e00 NULL<br />postmap: dict_ldap_debug: ldap_int_select<br />postmap: dict_ldap_debug: read1msg: ld 0x21fb9e00 msgid 2 all 1<br />postmap: dict_ldap_debug: ber_get_next<br />postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:<br />postmap: dict_ldap_debug: read1msg: ld 0x21fb9e00 msgid 2 message type search-result<br />postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:<br />postmap: dict_ldap_debug: read1msg: ld 0x21fb9e00 0 new referrals<br />postmap: dict_ldap_debug: read1msg:&nbsp; mark request completed, ld 0x21fb9e00 msgid 2<br />postmap: dict_ldap_debug: request done: ld 0x21fb9e00 msgid 2<br />postmap: dict_ldap_debug: res_errno: 0, res_error: &lt;&gt;, res_matched: &lt;&gt;<br />postmap: dict_ldap_debug: ldap_free_request (origid 2, msgid 2)<br />postmap: dict_ldap_debug: ldap_parse_result<br />postmap: dict_ldap_debug: ber_scanf fmt ({iAA) ber:<br />postmap: dict_ldap_debug: ber_scanf fmt (}) ber:<br />postmap: dict_ldap_debug: ldap_msgfree<br />postmap: dict_ldap_debug: ldap_free_connection 1 1<br />postmap: dict_ldap_debug: ldap_send_unbind<br />postmap: dict_ldap_debug: ber_flush2: 7 bytes to sd 4<br />postmap: dict_ldap_debug: ldap_free_connection: actually freed</p><p>------------------------------------------------------------------</p><p>Please tell me what I doing wrong, Im new in this world and I need your help, thanks</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Fri, 24 Aug 2012 17:03:33 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17857.html#p17857</guid>
		</item>
		<item>
			<title><![CDATA[Re: diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17819.html#p17819</link>
			<description><![CDATA[<div class="quotebox"><cite>donaldyg wrote:</cite><blockquote><p>Cause I need a diferent domain that I use in my LAN y put  &quot;dc=cpe,dc=com&quot; in the LDAP suffix (root dn) during the  installation, next in the First Virtual Domain Name i use  &quot;cpe.com&quot;, Am I rigth??</p></blockquote></div><p>LDAP suffix is not required to be the same as mail domain name. For example, you can use &quot;dc=example,dc=com&quot; as LDAP suffix, but has mail domain &quot;cpe.com&quot; hosted under this LDAP suffix. It&#039;s just fine.</p><div class="quotebox"><cite>donaldyg wrote:</cite><blockquote><p>postconf -e smtpd_sasl_local_domain=&#039;example.com&#039;<br />postconf -e virtual_mailbox_domains=&#039;example.com&#039;<br />I must put the mail domain (cpe.com) or the local domain (domain.local) ??</p></blockquote></div><p>If you mail domain name is &quot;cpe.com&quot;, please use &quot;cpe.com&quot; in above commands. The rest issues mentioned in your post are caused by the confusion on this.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 22 Aug 2012 15:05:09 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17819.html#p17819</guid>
		</item>
		<item>
			<title><![CDATA[diferents mail domain and local domain]]></title>
			<link>http://www.iredmail.org/forum/post17802.html#p17802</link>
			<description><![CDATA[<p>==== Required information ====<br />- iRedMail version: <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />- Linux/BSD distribution name and version: <br />- Related log if you&#039;re reporting an issue: <br />==== ==== Required information ====<br />- iRedMail version: 0.8.1<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Linux/BSD distribution name and version: Ubuntu Server 10.04<br />- Related log if you&#039;re reporting an issue: <br />==== <br />Hi everybody, first sorry my english.</p><p>I need your help to finish my full installation of&nbsp; iRedmail, I have a LAN with a DNS sufix &quot;domain.local&quot;&nbsp; serve by a Windows Server 2003 SP2 with DNS, DHCP and AD&nbsp; running on it. This server has IP:192.168.2.4 and the&nbsp; mail server has IP:192.168.2.5 and his fully name is&nbsp; mail.domain.local</p><p>You have to know that I sucefull finish this job using the same domain on the local domain and the mail domain, eg: &quot;mydomain.com&quot;</p><p>I need to install iRedMail so that the mail domain its&nbsp; &quot;@cpe.com&quot; . . . I install iRedMail with LDAP backend.<br />Cause I need a diferent domain that I use in my LAN y put&nbsp; &quot;dc=cpe,dc=com&quot; in the LDAP suffix (root dn) during the&nbsp; installation, next in the First Virtual Domain Name i use&nbsp; &quot;cpe.com&quot;, Am I rigth??</p><p>Once I finish I can login roundcube with test user under de &quot;cpe.com&quot; mail domain. Its ok so far . . .<br />The next step is integrated AD with the mail server, I use the integration guide on the official web but here I have some doubts, here:</p><p>postconf -e smtpd_sasl_local_domain=&#039;example.com&#039;<br />postconf -e virtual_mailbox_domains=&#039;example.com&#039;</p><p>I must put the mail domain (cpe.com) or the local domain (domain.local) ??</p><p>When I created the /etc/postfix/transport file I use &quot;cpe.com&quot; or &quot;domain.local&quot; ??</p><p>Now it is time to created the 3 files .cf to query AD, according to <a href="http://www.iredmail.org/forum/topic3165-integration-with-windows-domain.html">http://www.iredmail.org/forum/topic3165 … omain.html</a>&nbsp; it is necessary to make some changes in the query_filter line but I tried several times and never work for me, eg:<br />--------------------------------------------------------------------------------------<br /># File: ad_sender_login_maps.cf<br />server_host&nbsp; &nbsp; &nbsp;= ad.domain.local<br />server_port&nbsp; &nbsp; &nbsp;= 389<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />bind&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = yes<br />start_tls&nbsp; &nbsp; &nbsp; &nbsp;= no<br />bind_dn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= vmail<br />bind_pw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= password_of_vmail<br />search_base&nbsp; &nbsp; &nbsp;= cn=users,dc=domain,dc=local<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= sub<br />query_filter&nbsp; &nbsp; = (&amp;(userPrincipalName=%s)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))<br /># According to the link above&nbsp; I need to sustitute &quot;%s&quot; by &quot;%u@cpe.com&quot; but when I use the postmap line tool <br /># no result is show<br />#However if I put viceversa &quot;%u@domain.local&quot; and i ask for user@cpe.com seems to work<br />result_attribute= userPrincipalName // here we got user@domain.local<br />debuglevel&nbsp; &nbsp; &nbsp; = 0<br />--------------------------------------------------------------------------------------<br /># File: ad_virtual_mailbox_maps.cf<br />server_host&nbsp; &nbsp; &nbsp;= ad.domain.local<br />server_port&nbsp; &nbsp; &nbsp;= 389<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />bind&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = yes<br />start_tls&nbsp; &nbsp; &nbsp; &nbsp;= no<br />bind_dn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= vmail<br />bind_pw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= passwd_of_vmail<br />search_base&nbsp; &nbsp; &nbsp;= cn=users,dc=domain,dc=local<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= sub<br />query_filter&nbsp; &nbsp; = (&amp;(objectclass=person)(userPrincipalName=%s)) // here happens the same<br />result_attribute= userPrincipalName<br />result_format&nbsp; &nbsp;= %d/%u/Maildir/<br />debuglevel&nbsp; &nbsp; &nbsp; = 0<br />--------------------------------------------------------------------------------------</p><p>Now the great doubt, when I edit &quot;/etc/dovecot/dovecot-ldap.conf&quot; in the line</p><p>user_filter&nbsp; &nbsp; &nbsp;= (&amp;(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))</p><p>what I suposed to do, If I leave like this I can login in roundcubemail but the user appears under &quot;@domain.local&quot; but I cant send mails to users under &quot;cpe.com&quot; mail domain, error SMTP 550 it show. However if I change for example &quot;%u&quot; by &quot;%n@cpe.com&quot; the users never logued in, what I suposed to do?!?!?</p><p>Please I need all possible help to finish the full installation, if I make mistakes during the installation or config please tell me where to fix it, thanks . . .</p>]]></description>
			<author><![CDATA[null@example.com (donaldyg)]]></author>
			<pubDate>Tue, 21 Aug 2012 20:50:18 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17802.html#p17802</guid>
		</item>
	</channel>
</rss>
