s2s Configuration and Development

Hello all.

I have ejabberd setup on my local machine, and I would like to establish a s2s connection to a remote ejabberd server. I honestly don't know where to begin and am actually feeling quite overwhelmed.

At current, I have my ejabberd server setup and serving at localhost. I can point Psi or Pidgin at it and it can run as a chat client on my network. This is all well and good, but not at all what I need it to do.

How do I properly set up ejabberd for a s2s connection from my machine "help.foo.org", to "im.jabberwocky.com"?

Also, I'll be subscribing to a PubSub host. Is there any kind of setup that I need to do on my server for this, or should all of my subscribing be done within my C# code?

When I send my opening stanza to the remote machine, they do DNS dialback to verify my IP address. Should the opening stanza be sent from code, or is there some way that I have to set up ejabberd and it will automatically send the opening stanza?

Should my code act as middleware and listen and send on particular ports for the data coming from "im.jabberwocky.com", or is there some way that I should be tying into my ejabberd server directly and monitoring the data there?

Thank you for any help, guidance, and assistance. I am (obviously) completely new to this. I've read through XMPP: A Definitive Guide, and understand generally how this works, but I can seem to bring the pieces together properly. I know no Erlang, just so we're on the same page.

I apologize for posting here (should this be incorrect), but this seemed to be a series of both "Configuration" and "Development" issues, so I figured I'd start here.

Thanks again,
Jaecen

Quote: At current, I have my

Quote:

At current, I have my ejabberd server setup and serving at localhost. I can point Psi or Pidgin at it and it can run as a chat client on my network. This is all well and good, but not at all what I need it to do.

How do I properly set up ejabberd for a s2s connection from my machine "help.foo.org"

You now have this in ejabberd.cfg:

{hosts, ["localhost"]}.

If you want to have a Jabber domain that can connect to other servers, then you must setup a new host, for example:

{hosts, ["localhost", "foo.org"]}.

Update your DNS, restart ejabberd, and then create accounts in your ejabberd domain foo.org. Those can then connect to other Jabber servers.

Syndicate content