Привет всем!
Я уже спросил на английском форуме, но не знаю когда там ответят, спрашиваю и тут. Буду признателен если кто-то поможет. Сначала - почему у меня такая старая версия еджабберда 1.1.4-2. Это вынужденно. Поздние версии падают
/usr/local/etc/rc.d/ejabberd start
check_msg: not found.
Гуглил я, но так и не смог это победить, потому и пользуюсь такой версией.
Мой конфиг выглядит так:
override_acls.
%% Admin user
{acl, admin, {user, "adminname", "site.local"}}.
%% Hostname
{hosts, ["site.local", "localhost"]}.
% Blocked users:
{acl, blocked, {user, "test"}}.
% Local users:
{acl, local, {user_regexp, ""}}.
% Everybody can create pubsub nodes
{access, pubsub_createnode, [{allow, all}]}.
% Only admins can use configuration interface:
{access, configure, [{allow, admin}]}.
% Every username can be registered via in-band registration:
{access, register, [{allow, all}]}.
% None username can be registered via in-band registration:
%{access, register, [{deny, all}]}.
{welcome_message, none}.
% List of people who will get notifications about registered users
%{registration_watchers, ["admin1@localhost",
% "admin2@localhost"]}.
% Only admins can send announcement messages:
{access, announce, [{allow, admin}]}.
% Only non-blocked users can use c2s connections:
{access, c2s, [{deny, blocked},
{allow, all}]}.
% Set shaper with name "normal" to limit traffic speed to 1000B/s
{shaper, normal, {maxrate, 1000}}.
% Set shaper with name "fast" to limit traffic speed to 50000B/s
{shaper, fast, {maxrate, 50000}}.
% For all users except admins used "normal" shaper
{access, c2s_shaper, [{none, admin},
{normal, all}]}.
% For all S2S connections used "fast" shaper
{access, s2s_shaper, [{fast, all}]}.
% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.
% Authentication method. If you want to use internal user base, then use
% this line:
{auth_method, internal}.
%% Define the maximum number of time a single user is allowed to connect:
{max_user_sessions, 10}.
% Default language for server messages
{language, "en"}.
% Listened ports:
{listen,
%Ordinary client-2-server service
[{5222, ejabberd_c2s, [{access, c2s},
{max_stanza_size, 65536},
starttls, {certfile, "/etc/ejabberd/ejabberd.pem"},
{shaper, c2s_shaper}]},
% SSL-enabled client-2-server service
{5223, ejabberd_c2s, [{access, c2s},
{max_stanza_size, 65536},
tls, {certfile, "/etc/ejabberd/ejabberd.pem"},
{shaper, c2s_shaper}]},
{5280, ejabberd_http, [http_poll, web_admin]}
]}.
% Use STARTTLS+Dialback for S2S connections
{s2s_use_starttls, true}.
{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.
{modules,
[
{mod_adhoc, []},
{mod_announce, [{access, announce}]}, % Depends on mod_adhoc
{mod_register, [{access, register}]},
{mod_roster, []},
{mod_privacy, []},
{mod_configure, []}, % Depends on mod_adhoc
{mod_configure2, []},
{mod_disco, [{extra_domains, ["users.jabber.org"]}]},
{mod_stats, []},
{mod_vcard, []},
{mod_offline, []},
{mod_echo, []},
{mod_private, []},
{mod_irc, []},
{mod_muc, [{access, muc},
{access_create, muc},
{access_admin, muc_admin}]},
{mod_muc_log, []},
{mod_shared_roster, []},
{mod_pubsub, [{access_createnode, pubsub_createnode}]},
{mod_time, []},
{mod_last, []},
{mod_shared_roster, [{iqdisc, no_queue}]},
{mod_version, []}
]}.
<.code>
Когда я пытаюсь использовать ejabberdctl пишет(под пользователем ejabberd):
<code>
{"init terminating in do_boot",{badarg,[{ets,match_object,[ejabberd_ctl_cmds,'_']},{ets,tab2list,1},{ejabberd_ctl,print_usage,0},{ejabberd_ctl,start,0},{init,start_it,1},{init,start_em,1}]}}
init terminating in do_boot ()
Где-то в нете нашел, что решение будет типа:
$ ejabberdctl ejabberd@mydomain.local
RPC failed on the node 'ejabberd@mydomain.local': nodedown
=ERROR REPORT==== 4-Mar-2010::14:44:50 ===
** System NOT running to use fully qualified hostnames **
** Hostname mydomain.local is illegal **
Неделю уже бьюсь....(( Помогите, кто-нибудь!
Версия erlang r13b03_1,1.