Thursday, June 28, 2007

multiple domain on jabberd2 / wiele domen na jabberd2

if you have properly configured and running server :)

usualy config files are in /etc/jabberd
copy sm.xml to other file example sm.domain2.xml

change:
<>
<>to your second domain example: domain2.com< /id >
optionaly:

<>
<>server< /category > >
<>im< /type >
<>domain2.com server < /name >
< /identity >
change pid file example:
/usr/local/var/jabberd/pid/sm.domain2.pid
add line to jabberd.cfg
sm /usr/local/etc/jabberd/sm.domain2.xml

add line to c2s.xml
< enable="'true'">domain2.com< /id >

to set up multiple domain support you need to run separate sm proceses i will show you a simple way to do it
locate sm executable file, usually it is on /usr/local/bin
cp sm sm.domain2
then

edit jabber run script
locate line:
progs="router resolver sm c2s s2s"

and replace with
progs="router resolver sm sm.domain2 c2s s2s"
in this way you dont need to make a new startup scripts :D

So you need too to setup corectly your jabber SRV record in DNS server for your new/next domain enjoy

No comments: