<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br>I've been searching for some solutions and I've see the following blog:<br><br>http://www.tbits.net/tbits-opensource/kolab3multipledomains.html<br><br>and it refers to a dev kolab list entry:<br><br>http://lists.kolab.org/pipermail/kolab-devel/2013-April/014274.html<br><br>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.<br><br>Anyway, I've been thinking about a solution but I'm not sure if it's elegant, <br><br>    - 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<br>        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).<br>        it would look like:<br>            dc=kolab,dc=ddol,dc=es<br>                ou=aliases<br>                    ou=kolab.test.es<br>                        uid=user.uno<br>                            mail=user.uno@kolab.test.es<br>                            alias=user.uno@kolabalias1.test.es<br>                            alias=user.uno@kolabalias2.test.es<br>                        uid=user.tres<br>                            mail=user.tres@kolab.test.es<br>                            alias=user.tres@kolabalias1.test.es<br>                            alias=user.tres@kolabalias2.test.es<br>                    ou=kolabdos.test.es<br>                        uid=user.dos<br>                            mail=user.dos@kolabdos.test.es<br>                            alias=user.dos@kolabdosalias1.test.es<br>                            alias=user.dos@kolabdosalias2.test.es<br>                        uid=user.cuatro<br>                            mail=user.cuatro@kolabdos.test.es<br>                            alias=user.cuatro@kolabdosalias1.test.es<br>                            alias=user.cuatro@kolabdosalias2.test.es                        <br>        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<br>            #  cat virtual_alias_maps.cf<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>                scope = sub<br>                domain = ldap:/etc/postfix/ldap/mydestination.cf<br>                bind_dn = uid=kolab-service,ou=Special 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 misunderstood something. Before start to modify/create schemas in LDAP, I prefer your opinion.<br><br>Thanks & Regards.<br><br>Manel<br><br>Manel <br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: magiza83@hotmail.com<br>To: kolab-users@kolab.org<br>Subject: Domain aliases using hosted domains<br>Date: Wed, 3 Apr 2013 11:34:32 +0200<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hello,<br><br>I'm getting problems to setup domain aliases for hosted domains, what I've done is:<br><br>- domain manage tab, create a new domain name below the main one (admin web):<br>    Management domain<br>        kolab.test.es<br>        kolabtres.test.es<br>    <br>    Hosted domain<br>        kolabdos.test.es<br>        kolabcuatro.test.es<br>    <br>- Now I have the following data in LDAP<br>    cn=kolab,cn=config<br>        associateddomain=kolab.test.es,cn=test,cn=config<br>            associatedDomain kolab.test.es<br>            associatedDomain kolabtres.test.es<br>        associateddomain=kolabdos.test.es,cn=test,cn=config<br>            associatedDomain kolabdos.test.es<br>            associatedDomain kolabcuatro.test.es<br><br>- Now I've setup an alias for a user like:<br>    alias u.uno@kolabtres.test.es<br>    <br>But if i send an email to u.uno@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:<br>    # cat mydestination.cf<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 kolabtres.test.es ldap:/etc/postfix/ldap/mydestination.cf    <br>        kolab.test.es,kolabtres.test.es<br>    <br>    But when I've try to search in virtual_alias_maps or local_recipients_maps I've no exit:<br>    # cat virtual_alias_maps.cf<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/mydestination.cf<br><br>        bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es<br>        bind_pw = *****<br><br>        query_filter = (&(|(mail=%s)(alias=%s))(objectclass=kolabinetorgperson))<br>        result_attribute = mail<br><br>    # cat local_recipient_maps.cf<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/mydestination.cf<br><br>        bind_dn = uid=kolab-service,ou=Special Users,dc=kolab,dc=test,dc=es<br>        bind_pw = *****<br><br>        query_filter = (&(|(mail=%s)(alias=%s))(|(objectclass=kolabinetorgperson)(|(objectclass=kolabgroupofuniquenames)(objectclass=kolabgroupofurls))(|(|(objectclass=groupofuniquenames)(objectclass=groupofurls))(objectclass=kolabsharedfolder))))<br>        result_attribute = mail<br><br>    # postmap -q u.uno@kolabtres.test.es ldap:/etc/postfix/ldap/virtual_alias_maps.cf<br>    # (no exit)<br><br>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.<br>Which configuration should I have to make this work?<br><br>Thanks & Regards.<br>    <br>Manel<br>                                        </div>
<br>_______________________________________________
Kolab-users mailing list
Kolab-users@kolab.org
https://www.intevation.de/mailman/listinfo/kolab-users</div>                                        </div></body>
</html>