<div dir="ltr">Hello Manel,<div><br></div><div style>I did not follow the Kolab hosted domain guide at [1] to add new domains, I used it only for ideas.</div><div style>As described on my blog post [2], I used the Web Administration Panel to add the new domains, and then modified kolab.conf by running my addDomain.php script.</div>
<div style><br></div><div style>I believe that the Kolab hosted domain guide does not reflect the situation of serving multiple domains which is implemented by the Add Domain functionality of the Web Administration Panel in Kolab 3.0. The idea of Kolab hosted domain supports hosting many users on a single domain, eg. <a href="https://kolabsys.com/mykolab">https://kolabsys.com/mykolab</a>, which has different requirements for the LDAP tree.</div>
<div style><br></div><div style>I hope this helps,</div><div style> Timotheus</div><div style><br></div><div style>[1] <a href="http://docs.kolab.org/en-US/Kolab_Groupware/3.0/html/Administrator_Guide/chap-Administrator_Guide-Hosted_Kolab_Groupware_Setup.html">http://docs.kolab.org/en-US/Kolab_Groupware/3.0/html/Administrator_Guide/chap-Administrator_Guide-Hosted_Kolab_Groupware_Setup.html</a><br>
</div><div style>[2] <a href="http://www.tbits.net/tbits-opensource/kolab3multipledomains.html">http://www.tbits.net/tbits-opensource/kolab3multipledomains.html</a></div><div style><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 9 April 2013 09:50, Manel Gimeno Zaragozá <span dir="ltr"><<a href="mailto:magiza83@hotmail.com" target="_blank">magiza83@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hello,<br><br>thanks for your response, I can see that you have all your hosted domains under the base dn.<br><br>Have you follow klab3 hosted doamin guide to create this schema? because if I follow the guide, it generates a new base_dn for each domain, and you have it all under the same base "localhostkolab3". <br>
<br>Regards<br><br>Manel<br><br><br><div><div></div>> Date: Mon, 8 Apr 2013 17:50:00 +0200<br>> Subject: Re: Domain aliases using hosted domains<br>> From: <a href="mailto:timotheus@pokorra.de" target="_blank">timotheus@pokorra.de</a><br>
> To: <a href="mailto:magiza83@hotmail.com" target="_blank">magiza83@hotmail.com</a><br>> CC: <a href="mailto:kolab-users@kolab.org" target="_blank">kolab-users@kolab.org</a><div><div class="h5"><br>> <br>> Hello Manel,<br>
> <br>> I have looked at my own setup again.<br>> <br>> I have indeed something like this in ldap:<br>> dc=kolab2,dc=pokorra,dc=de<br>> +cn=Directory Administrators<br>> +ou=Groups<br>> +ou=People<br>
> ++uid=admin<br>> ++uid=pokorra<br>> dc=kolab,dc=pokorra,dc=de<br>> ++ou=People<br>> <br>> better to see on this screenshot from ldap browser Luma:<br>> <a href="http://www.pokorra.de/kolab/kolab3/screenshotLdapKolab.png" target="_blank">http://www.pokorra.de/kolab/kolab3/screenshotLdapKolab.png</a><br>
> (by the way, kolab2 does not have anything to do with version 2, just<br>> another name for a test domain)<br>> <br>> I wonder how your users get created in LDAP at the moment. Whether you<br>> are missing something in the kolab.conf file for the new domains?<br>
> <br>> I have tried sending emails to my test users, and they do arrive. I<br>> was only able to send emails between the users of Kolab, since I have<br>> not configured the test server yet to receive emails from outside.<br>
> <br>> I am no export to the Postfix and LDAP stuff, just trying to<br>> understand it myself as I go along...<br>> <br>> Hope this helps,<br>> <br>> Timotheus<br>> <br>> <br>> <br>> On 3 April 2013 18:13, Manel Gimeno Zaragozá <<a href="mailto:magiza83@hotmail.com" target="_blank">magiza83@hotmail.com</a>> wrote:<br>
> > Hello,<br>> ><br>> > I've been searching for some solutions and I've see the following blog:<br>> ><br>> > <a href="http://www.tbits.net/tbits-opensource/kolab3multipledomains.html" target="_blank">http://www.tbits.net/tbits-opensource/kolab3multipledomains.html</a><br>
> ><br>> > and it refers to a dev kolab list entry:<br>> ><br>> > <a href="http://lists.kolab.org/pipermail/kolab-devel/2013-April/014274.html" target="_blank">http://lists.kolab.org/pipermail/kolab-devel/2013-April/014274.html</a><br>
> ><br>> > But it not solve my problem, It look like some of you are already working on<br>> > it, but if someone could please provide some light about it, because I'm<br>> > really stuck on this.<br>
> ><br>> > Anyway, I've been thinking about a solution but I'm not sure if it's<br>> > elegant,<br>> ><br>> > - Generate a new "ou" inside management domain called "aliases" and then<br>
> > create a branch for each domain and inside an object for each user and<br>> > inside only the attributes mail and alias. It force me to setup something<br>> > that create this objects<br>> > each time a user is created. Also it has the problem that some info<br>
> > of each user is duplicated (one time in management branch and another in its<br>> > own domain branch).<br>> > it would look like:<br>> > dc=kolab,dc=ddol,dc=es<br>> > ou=aliases<br>
> > ou=<a href="http://kolab.test.es" target="_blank">kolab.test.es</a><br>> > uid=user.uno<br>> > mail=<a href="mailto:user.uno@kolab.test.es" target="_blank">user.uno@kolab.test.es</a><br>
> > alias=<a href="mailto:user.uno@kolabalias1.test.es" target="_blank">user.uno@kolabalias1.test.es</a><br>> > alias=<a href="mailto:user.uno@kolabalias2.test.es" target="_blank">user.uno@kolabalias2.test.es</a><br>
> > uid=user.tres<br>> > mail=<a href="mailto:user.tres@kolab.test.es" target="_blank">user.tres@kolab.test.es</a><br>> > alias=<a href="mailto:user.tres@kolabalias1.test.es" target="_blank">user.tres@kolabalias1.test.es</a><br>
> > alias=<a href="mailto:user.tres@kolabalias2.test.es" target="_blank">user.tres@kolabalias2.test.es</a><br>> > ou=<a href="http://kolabdos.test.es" target="_blank">kolabdos.test.es</a><br>
> > uid=user.dos<br>> > mail=<a href="mailto:user.dos@kolabdos.test.es" target="_blank">user.dos@kolabdos.test.es</a><br>> > alias=<a href="mailto:user.dos@kolabdosalias1.test.es" target="_blank">user.dos@kolabdosalias1.test.es</a><br>
> > alias=<a href="mailto:user.dos@kolabdosalias2.test.es" target="_blank">user.dos@kolabdosalias2.test.es</a><br>> > uid=user.cuatro<br>> > mail=<a href="mailto:user.cuatro@kolabdos.test.es" target="_blank">user.cuatro@kolabdos.test.es</a><br>
> > alias=<a href="mailto:user.cuatro@kolabdosalias1.test.es" target="_blank">user.cuatro@kolabdosalias1.test.es</a><br>> > alias=<a href="mailto:user.cuatro@kolabdosalias2.test.es" target="_blank">user.cuatro@kolabdosalias2.test.es</a><br>
> > so then, the <a href="http://virtual_alias_maps.cf" target="_blank">virtual_alias_maps.cf</a> just must search in the "base_dn<br>> > = ou=aliases,dc=kolab,dc=ddol,dc=es" for the alias domain<br>
> ><br>> > # cat <a href="http://virtual_alias_maps.cf" target="_blank">virtual_alias_maps.cf</a><br>> > server_host = localhost<br>> > server_port = 389<br>
> > version = 3<br>> > search_base = base_dn = ou=aliases,dc=kolab,dc=ddol,dc=es<br>> ><br>> > scope = sub<br>> > domain = ldap:/etc/postfix/ldap/<a href="http://mydestination.cf" target="_blank">mydestination.cf</a><br>
> > bind_dn = uid=kolab-service,ou=Special<br>> > Users,dc=kolab,dc=ddol,dc=es<br>> > bind_pw = datadec<br>> > query_filter = (|(mail=%s)(alias=%s))<br>
> > result_attribute = mail<br>> ><br>> > What do you think? am I getting something wrong? please let me know if i've<br>> > misunderstood something. Before start to modify/create schemas in LDAP, I<br>
> > prefer your opinion.<br>> ><br>> > Thanks & Regards.<br>> ><br>> > Manel<br>> ><br>> > Manel<br>> ><br>> > ________________________________<br>> > From: <a href="mailto:magiza83@hotmail.com" target="_blank">magiza83@hotmail.com</a><br>
> > To: <a href="mailto:kolab-users@kolab.org" target="_blank">kolab-users@kolab.org</a><br>> > Subject: Domain aliases using hosted domains<br>> > Date: Wed, 3 Apr 2013 11:34:32 +0200<br>> ><br>> ><br>
> > Hello,<br>> ><br>> > I'm getting problems to setup domain aliases for hosted domains, what I've<br>> > done is:<br>> ><br>> > - domain manage tab, create a new domain name below the main one (admin<br>
> > web):<br>> > Management domain<br>> > <a href="http://kolab.test.es" target="_blank">kolab.test.es</a><br>> > <a href="http://kolabtres.test.es" target="_blank">kolabtres.test.es</a><br>
> ><br>> > Hosted domain<br>> > <a href="http://kolabdos.test.es" target="_blank">kolabdos.test.es</a><br>> > <a href="http://kolabcuatro.test.es" target="_blank">kolabcuatro.test.es</a><br>
> ><br>> > - Now I have the following data in LDAP<br>> > cn=kolab,cn=config<br>> > associateddomain=<a href="http://kolab.test.es" target="_blank">kolab.test.es</a>,cn=test,cn=config<br>
> > associatedDomain <a href="http://kolab.test.es" target="_blank">kolab.test.es</a><br>> > associatedDomain <a href="http://kolabtres.test.es" target="_blank">kolabtres.test.es</a><br>
> > associateddomain=<a href="http://kolabdos.test.es" target="_blank">kolabdos.test.es</a>,cn=test,cn=config<br>> > associatedDomain <a href="http://kolabdos.test.es" target="_blank">kolabdos.test.es</a><br>
> > associatedDomain <a href="http://kolabcuatro.test.es" target="_blank">kolabcuatro.test.es</a><br>> ><br>> > - Now I've setup an alias for a user like:<br>> > alias <a href="mailto:u.uno@kolabtres.test.es" target="_blank">u.uno@kolabtres.test.es</a><br>
> ><br>> > But if i send an email to <a href="mailto:u.uno@kolabtres.test.es" target="_blank">u.uno@kolabtres.test.es</a> postfix return me that<br>> > user unknown. I've check the ldap lookup tables for postfix and I think the<br>
> > problem is in the base_dn, I've have it setup like:<br>> > # cat <a href="http://mydestination.cf" target="_blank">mydestination.cf</a><br>> > server_host = localhost<br>> > server_port = 389<br>
> > version = 3<br>> > search_base = cn=kolab,cn=config<br>> > scope = sub<br>> ><br>> > bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es<br>
> > bind_pw = ******<br>> ><br>> > query_filter = (&(associatedDomain=%s))<br>> > result_attribute = associateddomain<br>> ><br>> > # postmap -q <a href="http://kolabtres.test.es" target="_blank">kolabtres.test.es</a> ldap:/etc/postfix/ldap/<a href="http://mydestination.cf" target="_blank">mydestination.cf</a><br>
> > <a href="http://kolab.test.es" target="_blank">kolab.test.es</a>,<a href="http://kolabtres.test.es" target="_blank">kolabtres.test.es</a><br>> ><br>> > But when I've try to search in virtual_alias_maps or<br>
> > local_recipients_maps I've no exit:<br>> > # cat <a href="http://virtual_alias_maps.cf" target="_blank">virtual_alias_maps.cf</a><br>> > server_host = localhost<br>> > server_port = 389<br>
> > version = 3<br>> > search_base = dc=%3,dc=%2,dc=%1<br>> > scope = sub<br>> ><br>> > domain = ldap:/etc/postfix/ldap/<a href="http://mydestination.cf" target="_blank">mydestination.cf</a><br>
> ><br>> > bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es<br>> > bind_pw = *****<br>> ><br>> > query_filter =<br>> > (&(|(mail=%s)(alias=%s))(objectclass=kolabinetorgperson))<br>
> > result_attribute = mail<br>> ><br>> > # cat <a href="http://local_recipient_maps.cf" target="_blank">local_recipient_maps.cf</a><br>> > server_host = localhost<br>> > server_port = 389<br>
> > version = 3<br>> > search_base = dc=%3,dc=%2,dc=%1<br>> > scope = sub<br>> ><br>> > domain = ldap:/etc/postfix/ldap/<a href="http://mydestination.cf" target="_blank">mydestination.cf</a><br>
> ><br>> > bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es<br>> > bind_pw = *****<br>> ><br>> > query_filter =<br>> > (&(|(mail=%s)(alias=%s))(|(objectclass=kolabinetorgperson)(|(objectclass=kolabgroupofuniquenames)(objectclass=kolabgroupofurls))(|(|(objectclass=groupofuniquenames)(objectclass=groupofurls))(objectclass=kolabsharedfolder))))<br>
> > result_attribute = mail<br>> ><br>> > # postmap -q <a href="mailto:u.uno@kolabtres.test.es" target="_blank">u.uno@kolabtres.test.es</a><br>> > ldap:/etc/postfix/ldap/<a href="http://virtual_alias_maps.cf" target="_blank">virtual_alias_maps.cf</a><br>
> > # (no exit)<br>> ><br>> > It looks like <a href="http://virtual_alias_maps.cf" target="_blank">virtual_alias_maps.cf</a> tries to search in "search_base =<br>> > dc=%3,dc=%2,dc=%1", in my case it is translated to "search_base =<br>
> > dc=kolabtres,dc=test,dc=es", which do not exits.<br>> > Which configuration should I have to make this work?<br>> ><br>> > Thanks & Regards.<br>> ><br>> > Manel<br>> ><br>
> > _______________________________________________ Kolab-users mailing list<br>> > <a href="mailto:Kolab-users@kolab.org" target="_blank">Kolab-users@kolab.org</a> <a href="https://www.intevation.de/mailman/listinfo/kolab-users" target="_blank">https://www.intevation.de/mailman/listinfo/kolab-users</a><br>
> ><br>> > _______________________________________________<br>> > Kolab-users mailing list<br>> > <a href="mailto:Kolab-users@kolab.org" target="_blank">Kolab-users@kolab.org</a><br>> > <a href="https://www.intevation.de/mailman/listinfo/kolab-users" target="_blank">https://www.intevation.de/mailman/listinfo/kolab-users</a><br>
> <br>> _______________________________________________<br>> Kolab-users mailing list<br>> <a href="mailto:Kolab-users@kolab.org" target="_blank">Kolab-users@kolab.org</a><br>> <a href="https://www.intevation.de/mailman/listinfo/kolab-users" target="_blank">https://www.intevation.de/mailman/listinfo/kolab-users</a><br>
</div></div></div> </div></div>
</blockquote></div><br></div>