<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>RE: [JDEV] Jabber server redirection</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>You have tos et up an mx record of company.com pointing to jabber.su.company.com</FONT>
</P>
<P><FONT SIZE=2>-----Mensaje original-----</FONT>
<BR><FONT SIZE=2>De: Thomas Parslow (PatRat) [<A HREF="mailto:tom@almostobsolete.net">mailto:tom@almostobsolete.net</A>] </FONT>
<BR><FONT SIZE=2>Enviado el: Miércoles, 20 de Febrero de 2002 12:10 p.m.</FONT>
<BR><FONT SIZE=2>Para: Dave Dykstra</FONT>
<BR><FONT SIZE=2>Asunto: Re: [JDEV] Jabber server redirection</FONT>
</P>
<P><FONT SIZE=2>> I would like to be able to set up jabber in my company so that people can</FONT>
<BR><FONT SIZE=2>> have a jabber ID of id@company.com, rather than id@jabber.sub.company.com</FONT>
<BR><FONT SIZE=2>> when we run a server on jabber.sub.company.com. Is there a way to do that,</FONT>
<BR><FONT SIZE=2>> or a plan to be able to do that at some point? It's conceivable that I'd</FONT>
<BR><FONT SIZE=2>> be able to run a small redirection server on the machine called company.com,</FONT>
<BR><FONT SIZE=2>> but it has to use very little resources because the primary purpose of that</FONT>
<BR><FONT SIZE=2>> machine is web service. In fact, I'm thinking I might want to set up</FONT>
<BR><FONT SIZE=2>> the redirection server to lookup up IDs in a database and redirect people</FONT>
<BR><FONT SIZE=2>> to different servers for load balancing. Any suggestions?</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Thanks,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> - Dave Dykstra</FONT>
</P>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>How about using SRV record for the domain? The Jabber server should</FONT>
<BR><FONT SIZE=2>recognize the SRV record (it's supported it since 1.2 afaik) and</FONT>
<BR><FONT SIZE=2>connect to wherever it points to for S2S. You'd need to add something</FONT>
<BR><FONT SIZE=2>like this to the DNS zone for company.com:</FONT>
</P>
<P><FONT SIZE=2>_jabber._tcp IN SRV 30 30 5269 jabber.sub.company.com</FONT>
</P>
<P><FONT SIZE=2>The problem with this is getting the clients to connect to the correct</FONT>
<BR><FONT SIZE=2>server, if you just set them to connect to "jabber.sub.company.com" then</FONT>
<BR><FONT SIZE=2>they will send "jabber.sub.company.com" as the to attribute of the</FONT>
<BR><FONT SIZE=2>opening <stream:stream> tag which makes the server look for</FONT>
<BR><FONT SIZE=2>"jabber.sub.company.com" in the spool directory.</FONT>
</P>
<P><FONT SIZE=2>The only solution I can see to this is for clients to support</FONT>
<BR><FONT SIZE=2>connecting to an address which is different from the server name. In</FONT>
<BR><FONT SIZE=2>the client I am developing I allow the user to specify the name of the</FONT>
<BR><FONT SIZE=2>server in the username field by entering it in the form:</FONT>
<BR><FONT SIZE=2>user@server.com.</FONT>
</P>
<P><FONT SIZE=2>Does anyone have any other ideas on how to do this?</FONT>
</P>
<P><FONT SIZE=2>Thomas Parslow (PatRat) ICQ #:26359483</FONT>
<BR><FONT SIZE=2>Rat Software</FONT>
<BR><FONT SIZE=2><A HREF="http://www.rat-software.com/" TARGET="_blank">http://www.rat-software.com/</A></FONT>
<BR><FONT SIZE=2>Please leave quoted text in place when replying</FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>jdev mailing list</FONT>
<BR><FONT SIZE=2>jdev@jabber.org</FONT>
<BR><FONT SIZE=2><A HREF="http://mailman.jabber.org/listinfo/jdev" TARGET="_blank">http://mailman.jabber.org/listinfo/jdev</A></FONT>
</P>
<P><FONT SIZE=2>---</FONT>
<BR><FONT SIZE=2>Incoming mail is certified Virus Free.</FONT>
<BR><FONT SIZE=2>Checked by AVG anti-virus system (<A HREF="http://www.grisoft.com" TARGET="_blank">http://www.grisoft.com</A>).</FONT>
<BR><FONT SIZE=2>Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/2002</FONT>
<BR><FONT SIZE=2> </FONT>
<BR>
<BR><FONT SIZE=2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (<A HREF="http://www.grisoft.com" TARGET="_blank">http://www.grisoft.com</A>).<BR>
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/2002<BR>
</FONT>
</P>
</BODY>
</HTML>