[Obm] managing two domains with obm

Bert Haverkamp bert at bertenselena.net
Mon Jun 20 20:29:37 CEST 2011


Hello all,

First of all thanks to Sylvain for answering my question. For
reference I've added his reply below.

I now have my two domains, "oatfield.nl' and "bertenselena.net" on one
mailserver that is configured in the global domain.
However I encountered two new problems after this hurdle.
First problem: I still can't create two users in the two domains with
identical names.
bert at oatfield.nl exists. When I now create bert at bertenselena.net it
complains that that name already exists. Is this a limitation in OBM,
or am I overlooking something?

Second problem:
My french is not very good.  I understand there is a problem
configuring the postfix update for the new user brjhaverkamp.
First of all can I switch these log messages to english? Secondly, if
not, can you see what I did wrong?

/var/log/messages:
May 31 21:14:52 hydra update.pl[32446]: INFO: [Entities::obmGroup]:
chargement : groupe d'ID '2', nom 'Users'
May 31 21:14:52 hydra update.pl[32446]: INFO:
[EntitiesFactory::groupFactory]: chargement des liens de groupe d'ID
'2', nom 'Users'
May 31 21:14:52 hydra update.pl[32446]: WARNING:
[Update::updateIncremental]: traitement de groupe d'ID '2', nom
'Users'
May 31 21:14:53 hydra update.pl[32446]: INFO: [Ldap::ldapEngine]: mise
à jour de groupe d'ID '2', nom 'Users', DN
cn=Users,ou=groups,dc=bertenselena.net,dc=local
May 31 21:14:53 hydra update.pl[32446]: INFO: [dbUpdater]: l'entité
groupe d'ID '2', nom 'Users' n'est pas à mettre à jour en BD
May 31 21:14:53 hydra update.pl[32446]: WARNING:
[Update::updateIncremental]: entité groupe d'ID '2', nom 'Users' mise
à jour en BD
May 31 21:14:53 hydra update.pl[32446]: CRITICAL:
[Postfix::smtpInEngine]: au moins une entité nécessitant la
régénération des maps SMTP-in est en erreur de traitement
May 31 21:14:53 hydra update.pl[32446]: CRITICAL:
[Postfix::smtpInEngine]: génération des maps SMTP-in annulée
May 31 21:14:53 hydra update.pl[32446]: CRITICAL:
[Postfix::smtpInEngine]: erreur: utilisateur 'brjhaverkamp' (ID:15),
nom 'Bert Haverkamp'
May 31 21:14:53 hydra update.pl[32446]: CRITICAL: [update]: La mise à
jour ne s'est pas correctement déroulée

I hope someone can help me move forward on this.

Regards,

Bert

On Tue, May 31, 2011 at 9:17 AM, sylvain garcia
<sylvain.garcia at objectif-libre.com> wrote:
> ok,
>
> so there is no way to migrate host from your domain to global domain,
> but i can suggest some way, with two solution:
>
>
> #######1
> you can try to update in database the host_domain_id, but i don't know
> how OBM works with this modification, so try to test with virtual
> machine or other installation before make this in your server.
>
> - update the host domain id to domain_id of global domain (0 is id of
> global domain in my memory..) (select * from Domain to have list and
> id of domain)
> - launch script "/usr/share/obm/www/auto/update.pl --domain-id 0
> --globlal" and /usr/share/obm/www/auto/update.pl --domain-id 1
> --globlal (where 1 is th id of your domain)
> -check log for error messages,check ldap to see if ldap is correct...
> and test to use imap with one user
> - test to create users in your domain and in your second domain.
>
> I don't know if this works...
>
>
> #####2
> I this process doesn't work you can play with obm and host_ip:
>
> - keep your actual host in your actual domain with adress ip of your
> actual host.
> - set an other ip on eth0:0 on your server to have two ip address on
> the same server
> - create an other host (in global domain) with this new ip address
> - check that all services which run on the host listen on all interfaces
> - and create your domain
>
>
> Good lucks, and say me if works for you
>
>
> --
> Sylvain Garcia - Expert OpenSource
>
> Objectif Libre
> http://www.objectif-libre.com
> sylvain.garcia at objectif-libre.com
> 06 72 08 69 64
>
>
>
>
> On Tue, May 31, 2011 at 7:51 AM, Bert Haverkamp <bert at bertenselena.net> wrote:
>> Hello Sylvain,
>>
>> Sorry to hear about your trouble with the OBM company. I remember your
>> name as one of the most active on the mailinglist when I started
>> following OBM a couple of years ago...Thank you for taking the time to
>> answer to my problem.
>>
>> So adding my single obm "host" in the global domain will solve the
>> problem. Thanks for acknowleging that.
>> What is the easiest way to migrate the host? It is now in a subdomain.
>> Is there a way to move it, without deleting it and creating a new one?
>>
>> Regards,
>>
>> Bert
>>
>> On Mon, May 30, 2011 at 5:09 PM, sylvain garcia
>> <sylvain.garcia at objectif-libre.com> wrote:
>>> Hi,
>>>
>>> sorry for pending.. , i'm an old obm core dev into Lingora, and sorry
>>> for this personnal mail but i can't publish on mailing list, i was
>>> fired from obm mailing list by my old company director...
>>>
>>> In order to manage many domain with obm with One server, you must
>>> create obm "host" on global domain and re-use this in each domain. You
>>> can't re-use host which has been created in one "normal domain".
>>>
>>> You can forward my instruction to obm mailing list, this can help others
>>>
>>>
>>> --
>>> Sylvain Garcia - Expert OpenSource
>>>
>>> Objectif Libre
>>> http://www.objectif-libre.com
>>> sylvain.garcia at objectif-libre.com
>>> 06 72 08 69 64
>>>
>>
>



On Mon, May 30, 2011 at 9:50 AM, Bert Haverkamp <bert at bertenselena.net> wrote:
> Hello all,
>
> I'm still stuck on the question belows.
> Can someone tell me how to move a host from a sub-domain to the Global domain.
> And does this make the host usable for multiple sub-domains?
>
> Bert
>
>
> On Thu, May 19, 2011 at 8:49 PM, Bert Haverkamp <bert at bertenselena.net> wrote:
>> Hello all,
>>
>> I've run into an bit of a problem setting up obm to my needs.
>> Till now I have managed one domain with several users with obm. The
>> domain is called oatfield.nl and it contains one host(hydra) that
>> provides smtp, imap, sync, solr, etc.
>> Now I want to add a second domain, called bertenselena.net with a
>> different set of users. I want to have the same host to provide the
>> services for this domain.
>>
>> First of all, is this possible? And secondly if so (I suspect it is)
>> how do I migrate without deleting everything first and setting things
>> up from scratch?
>>
>> I tried moving hydra from the oatfield.nl domain to the global domain.
>> But I can't find out where/how/if this is done.
>> I also tried to add a second host (hydra2) with the same IP address,
>> but obm caught me on that trick. It does not allow two hosts with the
>> same IP. rightly so I think :-)
>>
>> Any advice is welcomed  at this stage.
>>
>> Bert
>>
>


More information about the Obm mailing list