Jabber

Aus Wiki Freifunk-3Ländereck
Wechseln zu: Navigation, Suche

apt-get install ejabberd

dpkg-reconfigure ejabberd

- Domain wählen - Admin User und Passwort eintragen

Bearbeiten der Konfiguration unter /etc/ejabberd/ejabberd.cfg. Noch altes Dateiformat in Erlang unter Debian. Der Zugriff ist auf root beschränkt. Web-Konfigurationsoberfläche aktivieren:

Watchdog aktivieren:

%% %% watchdog_admins: If an ejabberd process consumes too much memory, %% send live notifications to those Jabber accounts. %% {watchdog_admins, ["admin@box-1719.ff3l"]}.


Web-Konfiguration aktivieren:

{5280, ejabberd_http, [

                        {request_handlers,
                         [
                          {["pub", "archive"], mod_http_fileserver}
                         ]},
                        %%captcha,
                        http_bind,
                        http_poll,
                        web_admin
                       ]}

Benutzer-Selbstregistrierung aktivieren:

%% No username can be registered via in-band registration: %% To enable in-band registration, replace 'deny' with 'allow' % (note that if you remove mod_register from modules list then users will not % be able to change their password as well as register). % This setting is default because it's more safe. {access, register, [{allow, all}]}. Firewall anpassen:

Deutsch als Standardsprache:

%% %% language: Default language used for server messages. %% {language, "de"}.


 {mod_register, [
                 %%
                 %% After successful registration, the user receives
                 %% a message with this subject and body.
                 %%
                 {welcome_message, {"Welcome!",
                                    "Welcome to a Jabber service powered by Debian. "
                                    "For information about Jabber visit "
                                    "http://www.jabber.org"}},
                 %% Replace it with 'none' if you don't want to send such message:
                 %%{welcome_message, none},
                 %%
                 %% When a user registers, send a notification to
                 %% these Jabber accounts.
                 %%
                 {registration_watchers, ["admin@box-1719.ff3l"]},

Ende

ufw allow 5222 ufw allow 5269 ufw allow 5280

Web-Administration

http://box-1719.ff3l:5280/admin/

[1] http://docs.ejabberd.im/admin/guide/