My Hackergotchi

Updated: Never — Philip's Blog

Now featuring regular updates!

Tue, 14 Oct 2008

18:42 – Running my own Jabber server

Waiting for other (useful) stuff to compile today, I spent some time setting up my own Jabber server. I've had jabberd compiled on a machine for a long time, I just hadn't gotten around to setting it up yet.

This was surprisingly simple, except for the SSL bits. I spent a good half hour wondering why BitlBee refused to connect with a very strange message:

jabber - Couldn't log in: Stream error: host-unknown: service requested for unknown domain

Turns out that the example <id... parameter in c2s.xml was formatted in such a way to make it non-obvious that I also had to change an example.net on the last line:

<id realm='example.net'
    pemfile='/usr/local/etc/jabberd/server.pem'
    mumble-mumble
>example.net</id>

Silly of me. Even sillier of me to have hacked XMPP STARTTLS support into OpenSSL s_client to try to debug it... As soon as I saw the example.net, a simple grep found the config bug immediately. Difficult works too. :-)

If anyone is interested, the patch is here: openssl_xmpp.diff.

I'll try to con Ben into including that upstream. :-)

Anyway - please replace philip@jabber.belnet.be with philip@paeps.cx on your Jabber roster.

Name:

Email:

URL:

Comment:


Prove that you are not a spammer: