Domain aliases using hosted domains

Timotheus Pokorra timotheus at pokorra.de
Mon Apr 15 10:43:22 CEST 2013


Hello Manel,

I did not follow the Kolab hosted domain guide at [1] to add new domains, I
used it only for ideas.
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.

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.
https://kolabsys.com/mykolab, which has different requirements for the LDAP
tree.

I hope this helps,
  Timotheus

[1]
http://docs.kolab.org/en-US/Kolab_Groupware/3.0/html/Administrator_Guide/chap-Administrator_Guide-Hosted_Kolab_Groupware_Setup.html
[2] http://www.tbits.net/tbits-opensource/kolab3multipledomains.html



On 9 April 2013 09:50, Manel Gimeno Zaragozá <magiza83 at hotmail.com> wrote:

> Hello,
>
> thanks for your response, I can see that you have all your hosted domains
> under the base dn.
>
> 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".
>
> Regards
>
> Manel
>
>
> > Date: Mon, 8 Apr 2013 17:50:00 +0200
> > Subject: Re: Domain aliases using hosted domains
> > From: timotheus at pokorra.de
> > To: magiza83 at hotmail.com
> > CC: kolab-users at kolab.org
>
> >
> > Hello Manel,
> >
> > I have looked at my own setup again.
> >
> > I have indeed something like this in ldap:
> > dc=kolab2,dc=pokorra,dc=de
> > +cn=Directory Administrators
> > +ou=Groups
> > +ou=People
> > ++uid=admin
> > ++uid=pokorra
> > dc=kolab,dc=pokorra,dc=de
> > ++ou=People
> >
> > better to see on this screenshot from ldap browser Luma:
> > http://www.pokorra.de/kolab/kolab3/screenshotLdapKolab.png
> > (by the way, kolab2 does not have anything to do with version 2, just
> > another name for a test domain)
> >
> > I wonder how your users get created in LDAP at the moment. Whether you
> > are missing something in the kolab.conf file for the new domains?
> >
> > I have tried sending emails to my test users, and they do arrive. I
> > was only able to send emails between the users of Kolab, since I have
> > not configured the test server yet to receive emails from outside.
> >
> > I am no export to the Postfix and LDAP stuff, just trying to
> > understand it myself as I go along...
> >
> > Hope this helps,
> >
> > Timotheus
> >
> >
> >
> > On 3 April 2013 18:13, Manel Gimeno Zaragozá <magiza83 at hotmail.com>
> wrote:
> > > Hello,
> > >
> > > I've been searching for some solutions and I've see the following blog:
> > >
> > > http://www.tbits.net/tbits-opensource/kolab3multipledomains.html
> > >
> > > and it refers to a dev kolab list entry:
> > >
> > > http://lists.kolab.org/pipermail/kolab-devel/2013-April/014274.html
> > >
> > > But it not solve my problem, It look like some of you are already
> working on
> > > it, but if someone could please provide some light about it, because
> I'm
> > > really stuck on this.
> > >
> > > Anyway, I've been thinking about a solution but I'm not sure if it's
> > > elegant,
> > >
> > > - Generate a new "ou" inside management domain called "aliases" and
> then
> > > create a branch for each domain and inside an object for each user and
> > > inside only the attributes mail and alias. It force me to setup
> something
> > > that create this objects
> > > each time a user is created. Also it has the problem that some info
> > > of each user is duplicated (one time in management branch and another
> in its
> > > own domain branch).
> > > it would look like:
> > > dc=kolab,dc=ddol,dc=es
> > > ou=aliases
> > > ou=kolab.test.es
> > > uid=user.uno
> > > mail=user.uno at kolab.test.es
> > > alias=user.uno at kolabalias1.test.es
> > > alias=user.uno at kolabalias2.test.es
> > > uid=user.tres
> > > mail=user.tres at kolab.test.es
> > > alias=user.tres at kolabalias1.test.es
> > > alias=user.tres at kolabalias2.test.es
> > > ou=kolabdos.test.es
> > > uid=user.dos
> > > mail=user.dos at kolabdos.test.es
> > > alias=user.dos at kolabdosalias1.test.es
> > > alias=user.dos at kolabdosalias2.test.es
> > > uid=user.cuatro
> > > mail=user.cuatro at kolabdos.test.es
> > > alias=user.cuatro at kolabdosalias1.test.es
> > > alias=user.cuatro at kolabdosalias2.test.es
> > > so then, the virtual_alias_maps.cf just must search in the "base_dn
> > > = ou=aliases,dc=kolab,dc=ddol,dc=es" for the alias domain
> > >
> > > # cat virtual_alias_maps.cf
> > > server_host = localhost
> > > server_port = 389
> > > version = 3
> > > search_base = base_dn = ou=aliases,dc=kolab,dc=ddol,dc=es
> > >
> > > scope = sub
> > > domain = ldap:/etc/postfix/ldap/mydestination.cf
> > > bind_dn = uid=kolab-service,ou=Special
> > > Users,dc=kolab,dc=ddol,dc=es
> > > bind_pw = datadec
> > > query_filter = (|(mail=%s)(alias=%s))
> > > result_attribute = mail
> > >
> > > What do you think? am I getting something wrong? please let me know if
> i've
> > > misunderstood something. Before start to modify/create schemas in
> LDAP, I
> > > prefer your opinion.
> > >
> > > Thanks & Regards.
> > >
> > > Manel
> > >
> > > Manel
> > >
> > > ________________________________
> > > From: magiza83 at hotmail.com
> > > To: kolab-users at kolab.org
> > > Subject: Domain aliases using hosted domains
> > > Date: Wed, 3 Apr 2013 11:34:32 +0200
> > >
> > >
> > > Hello,
> > >
> > > I'm getting problems to setup domain aliases for hosted domains, what
> I've
> > > done is:
> > >
> > > - domain manage tab, create a new domain name below the main one (admin
> > > web):
> > > Management domain
> > > kolab.test.es
> > > kolabtres.test.es
> > >
> > > Hosted domain
> > > kolabdos.test.es
> > > kolabcuatro.test.es
> > >
> > > - Now I have the following data in LDAP
> > > cn=kolab,cn=config
> > > associateddomain=kolab.test.es,cn=test,cn=config
> > > associatedDomain kolab.test.es
> > > associatedDomain kolabtres.test.es
> > > associateddomain=kolabdos.test.es,cn=test,cn=config
> > > associatedDomain kolabdos.test.es
> > > associatedDomain kolabcuatro.test.es
> > >
> > > - Now I've setup an alias for a user like:
> > > alias u.uno at kolabtres.test.es
> > >
> > > But if i send an email to u.uno at kolabtres.test.es postfix return me
> that
> > > user unknown. I've check the ldap lookup tables for postfix and I
> think the
> > > problem is in the base_dn, I've have it setup like:
> > > # cat mydestination.cf
> > > server_host = localhost
> > > server_port = 389
> > > version = 3
> > > search_base = cn=kolab,cn=config
> > > scope = sub
> > >
> > > bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es
> > > bind_pw = ******
> > >
> > > query_filter = (&(associatedDomain=%s))
> > > result_attribute = associateddomain
> > >
> > > # postmap -q kolabtres.test.es ldap:/etc/postfix/ldap/mydestination.cf
> > > kolab.test.es,kolabtres.test.es
> > >
> > > But when I've try to search in virtual_alias_maps or
> > > local_recipients_maps I've no exit:
> > > # cat virtual_alias_maps.cf
> > > server_host = localhost
> > > server_port = 389
> > > version = 3
> > > search_base = dc=%3,dc=%2,dc=%1
> > > scope = sub
> > >
> > > domain = ldap:/etc/postfix/ldap/mydestination.cf
> > >
> > > bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es
> > > bind_pw = *****
> > >
> > > query_filter =
> > > (&(|(mail=%s)(alias=%s))(objectclass=kolabinetorgperson))
> > > result_attribute = mail
> > >
> > > # cat local_recipient_maps.cf
> > > server_host = localhost
> > > server_port = 389
> > > version = 3
> > > search_base = dc=%3,dc=%2,dc=%1
> > > scope = sub
> > >
> > > domain = ldap:/etc/postfix/ldap/mydestination.cf
> > >
> > > bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es
> > > bind_pw = *****
> > >
> > > query_filter =
> > >
> (&(|(mail=%s)(alias=%s))(|(objectclass=kolabinetorgperson)(|(objectclass=kolabgroupofuniquenames)(objectclass=kolabgroupofurls))(|(|(objectclass=groupofuniquenames)(objectclass=groupofurls))(objectclass=kolabsharedfolder))))
> > > result_attribute = mail
> > >
> > > # postmap -q u.uno at kolabtres.test.es
> > > ldap:/etc/postfix/ldap/virtual_alias_maps.cf
> > > # (no exit)
> > >
> > > It looks like virtual_alias_maps.cf tries to search in "search_base =
> > > dc=%3,dc=%2,dc=%1", in my case it is translated to "search_base =
> > > dc=kolabtres,dc=test,dc=es", which do not exits.
> > > Which configuration should I have to make this work?
> > >
> > > Thanks & Regards.
> > >
> > > Manel
> > >
> > > _______________________________________________ Kolab-users mailing
> list
> > > Kolab-users at kolab.org
> https://www.intevation.de/mailman/listinfo/kolab-users
> > >
> > > _______________________________________________
> > > Kolab-users mailing list
> > > Kolab-users at kolab.org
> > > https://www.intevation.de/mailman/listinfo/kolab-users
> >
> > _______________________________________________
> > Kolab-users mailing list
> > Kolab-users at kolab.org
> > https://www.intevation.de/mailman/listinfo/kolab-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20130415/2a33f7f5/attachment.html>


More information about the users mailing list