Espero te sirva este texto:




  Running a Jabber server under Debian with eJabberd

11 October 2007 <http://jerakeen.org/everything/2007/10/11/> in blog
<http://jerakeen.org/blog/>
tagged with [debian <http://jerakeen.org/tags/debian/>] [jabber
<http://jerakeen.org/tags/jabber/>] [server
<http://jerakeen.org/tags/server/>] (edit <http://jerakeen.org/edit/4695/>)

I like to run my own jabber server, so that I can be contacted as
[email protected] <xmpp://[email protected]>. Also, I’m a sucker for
punishment. I’ve run serveral different Jabber servers over the last
year or so, and yesterday I started toying with ejabberd
<http://www.ejabberd.im/>. It was probably the easiest to set up of any
of the servers I’ve tried, and I recommend it.

I’m running Debian etch, and installing the daemon was a matter of:

|sudo apt-get install ejabberd
|

Once installed, edit |/etc/ejabberd/ejabberd.cfg|. A ‘%’ at the
beginning of a line is a comment, and lines finish with a ‘.’ character.
This config file is read only once, and the settings are put into the
ejabbed server database on startup. Unfortunately, that’s probably
already happened, so uncomment the |override_acls.| directive - this
makes the server re-read the ACL settings from this file on next startup.

I’ll assume that you own the ‘example.com’ domain and want the JID
‘[email protected]’. Uncomment the line below ‘%% Admin user’. It wants
to be something like

|%% Admin user
{acl, admin, {user, "user", "example.com"}}.
|

Change the line below ‘%% Hostname’ to set the hostname of the server:

|%% Hostname
{hosts, ["example.com"]}.
|

You may want to look through the rest of the settings. But don’t bother,
they’re all very boring. Now restart the server, to pick up the
new settings:

|sudo ejabberdctl restart
|

|ejabberdctl| can also register your admin / jabber user if you’ve
turned off anonymous registration:

|sudo ejabberdctl register user example.com <password>
|

Right, you’re done. Assuming that the DNS A record for |example.com|
resolves to the machine you’ve been playing with (it doesn’t have to,
see below), you now have a Jabber server with an admin user. You can
visit http://example.com:5280/ to administer your server, but there’s
not a huge amount to do there.


    DNS SRV records

If the A record for |example.com| /doesn’t/ resolve to your server you
can still run a server for example.com by pointing DNS SRV records to
your server. In fact, you should do this anyway, in the same way that
your email will arrive if the A record for your domain points to the
mail server, but MX records are still a good idea.

Assuming your Jabber server runs on a machine called
|jabber.example.com|, you’ll want the following scary DNS records:

|_xmpp-client._tcp 900 IN SRV 5 0 5222 jabber.example.com.
_xmpp-server._tcp 900 IN SRV 5 0 5269 jabber.example.com.
_jabber._tcp      900 IN SRV 5 0 5269 jabber.example.com.
|

You can check that they’re been set properly using this excellent tool
<http://demon.dopeman.org/xmpp_srv_test/?domain=example.com> (dead now,
sigh), but it’ll probably take a while for the DNS updates to propagate.
If you have the |dig| command line tool, you can also try

|dig -t srv _xmpp-client._tcp.example.com
|

to ask your local DNS server for one of the SRV records.


    Alternatives

You don’t /have/ to use ejabberd. Viable alternatives are:

    * djabberd <http://www.danga.com/djabberd/> - lovely if you know
      Perl and want to extend/hack on a Jabber server. Unfortunately
      it’s somewhat tricky to configure out of the box, isn’t in Debian,
      and needs various things checked out from subversion repositories
      if you want to do esoteric things like preserve your friends
      roster across daemon restarts or have messages queued when
      you’re offline.
    * jabberd <http://jabberd.org/> - I really don’t want to trust an
      internet server written in C any more. It was the original/first
      Jabber server, if this makes you approve of it more.
    * Not running your own Jabber server - Very worth considering.
      Unlike running your own mail server or web server, it’s very hard
      to change your mind later and have someone else host it. I know of
      very few 3rd party Jabber hosting providers. Yet. Running your own
      server is purely a vanity thing, but hosting your own email domain
      used to be a vanity thing too. However, one company that /will/
      host your Jabber server for you is..
    * Google apps for your domain <http://www.google.com/a/> - One of
      the apps Google provide is a chat (Jabber) server. You can ignore
      everything else they do and just use the Jabber server part,
      assuming you have enough DNS access to your domain to point the
      SRV records to it.


|
salu2
ariel

|

Yannsel Peral Martínez wrote:
> alguin me podría explicar como enlazar dos servidores jabber, he abierto los 
> pueros en ambos servidores (5269) pero ambos no se ven entre si.
>
> saludos 
>
> _______________________________________________
> Cancelar suscripción
> https://listas.softwarelibre.cu/mailman/listinfo/linux-l
> Buscar en el archivo
> http://listas.softwarelibre.cu/buscar/linux-l
>
> ___________
>  
> Este mensaje ha sido analizado por Mailscanner
> Servicio de Protección contra virus 
> A U S A - Sucursal Cienfuegos
>
>
>
>   

___________
 
Este mensaje ha sido analizado por Mailscanner
Servicio de Protecci�n contra virus 
A U S A - Sucursal Cienfuegos


_______________________________________________
Cancelar suscripción
https://listas.softwarelibre.cu/mailman/listinfo/linux-l
Buscar en el archivo
http://listas.softwarelibre.cu/buscar/linux-l

Responder a