Установил пакетом jabberd-1.4.2b5.tgz, далее поковырял конфиг. файл /etc/jabberd/jabber.xml
Запускаю jabberd и вот что получаю..20060607T23:11:19: [notice] (-internal): initializing server
20060607T23:11:22: [warn] (s2s): Dropping connection due to illegal incoming packet on an unverified socket from BSD.cisco.ru to update.jabber.org (208.245.212.98):
<stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>
20060607T23:11:22: [notice] (update.jabber.org): bouncing a packet to jsm@update.jabber.org/1.4.2 from BSD.cisco.ru: Server Connect Failed
20060607T23:11:22: [alert] (BSD.cisco.ru): hostname maps back to ourselves!
20060607T23:11:22: [notice] (BSD.cisco.ru): failed to establish connection
20060607T23:11:22: [warn] (BSD.cisco.ru): dropping a packet to BSD.cisco.ru from jsm@update.jabber.org/1.4.2: Server Connect Failed
20060607T23:15:17: [notice] (BSD.cisco.ru): bouncing a routed packet to testuser@BSD.cisco.ru from 14@c2s/80D9300: Internal Delivery Errortestuser@BSD.cisco.ru --> это когда я пытаюсь клиентом зарегистрироваться у себя на сервере.. :-(
П.С. BSD.cisco.ru не является моим хостом. естественно вместо BSD.cisco.ru используется свой хостнейм.
% cat jabber.xml<jabber>
<service id="sessions">
<host><jabberd:cmdline flag="h">BSD.cisco.ru</jabberd:cmdline></host>
<jsm xmlns="jabber:config:jsm">
<filter>
<default/>
<max_size>100</max_size>
<allow>
<conditions>
<ns/> <!-- Matches if the iq's xmlns is the same as the specified namespace -->
<unavailable/> <!-- Flag that matches when the reciever is unavailable (offline) -->
<from/> <!-- Matches if the sender's jid is the specified jid -->
<resource/> <!-- Matches if the sender's resource (anything after the / in a jid) is the specified resource -->
<subject/> <!-- Matches if the message's subject is the specified subject (no regex yet) -->
<body/> <!-- Matches if the message body is the specified body (no regex yet) -->
<show/> <!-- Matches if the receiver's presence has a show tag that is the same as the specified text -->
<type/> <!-- Matches if the type of the message is the same as the specified text ("normal" is okay) -->
<roster/> <!-- Flag that matches when the sender is in the receiver's roster -->
<group/> <!-- Matches when the sender is in the specified group -->
</conditions>
<actions>
<error/> <!-- Sends back an error message to the sender, with the specified text -->
<offline/> <!-- Flag that stores the message offline -->
<forward/> <!-- forwards the message to the specified jid -->
<reply/> <!-- Sends back a reply to the sender with the specified text in the body -->
<continue/> <!-- Flag that continues rule matching, after a rule matches -->
<settype/> <!-- Changes the type of message to the specified type, before delivery to the receiver -->
</actions>
</allow>
</filter><vCard>
<FN>Official BSD.cisco.ru Jabber Server</FN>
<DESC>Live Free or Die</DESC>
<URL>http://BSD.cisco.ru/</URL>
</vCard><register notify="yes">
<instructions>Choose a username and password to register with this server.</instructions>
<name/>
<email/>
</register><welcome>
<subject>Welcome!</subject>
<body>Welcome to the Jabber server at BSD.cisco.ru -- we hope you enjoy this service! For information about how to use Jabber, visit the Jabber User's Guide at http://docs.jabber.org/</body>
</welcome><update><jabberd:cmdline flag="h">BSD.cisco.ru</jabberd:cmdline></update>
<vcard2jud/>
<browse>
<service type="jud" jid="users.BSD.cisco.ru" name="Jabber User Directory">
<ns>jabber:iq:search</ns>
<ns>jabber:iq:register</ns>
</service>
</browse>
</jsm><load main="jsm">
<jsm>/usr/pkg/lib/jabberd/jsm.so</jsm>
<mod_echo>/usr/pkg/lib/jabberd/jsm.so</mod_echo>
<mod_roster>/usr/pkg/lib/jabberd/jsm.so</mod_roster>
<mod_time>/usr/pkg/lib/jabberd/jsm.so</mod_time>
<mod_vcard>/usr/pkg/lib/jabberd/jsm.so</mod_vcard>
<mod_last>/usr/pkg/lib/jabberd/jsm.so</mod_last>
<mod_version>/usr/pkg/lib/jabberd/jsm.so</mod_version>
<mod_announce>/usr/pkg/lib/jabberd/jsm.so</mod_announce>
<mod_agents>/usr/pkg/lib/jabberd/jsm.so</mod_agents>
<mod_browse>/usr/pkg/lib/jabberd/jsm.so</mod_browse>
<mod_admin>/usr/pkg/lib/jabberd/jsm.so</mod_admin>
<mod_filter>/usr/pkg/lib/jabberd/jsm.so</mod_filter>
<mod_offline>/usr/pkg/lib/jabberd/jsm.so</mod_offline>
<mod_presence>/usr/pkg/lib/jabberd/jsm.so</mod_presence>
<mod_auth_plain>/usr/pkg/lib/jabberd/jsm.so</mod_auth_plain>
<mod_auth_digest>/usr/pkg/lib/jabberd/jsm.so</mod_auth_digest>
<mod_auth_0k>/usr/pkg/lib/jabberd/jsm.so</mod_auth_0k>
<mod_log>/usr/pkg/lib/jabberd/jsm.so</mod_log>
<mod_register>/usr/pkg/lib/jabberd/jsm.so</mod_register>
<mod_xml>/usr/pkg/lib/jabberd/jsm.so</mod_xml>
</load>
</service><xdb id="xdb">
<host/>
<load>
<xdb_file>/usr/pkg/lib/jabberd/xdb_file.so</xdb_file>
</load>
<xdb_file xmlns="jabber:config:xdb_file">
<spool><jabberd:cmdline flag='s'>/var/spool/jabberd</jabberd:cmdline></spool>
</xdb_file>
</xdb><service id="c2s">
<load>
<pthsock_client>/usr/pkg/lib/jabberd/pthsock_client.so</pthsock_client>
</load>
<pthcsock xmlns='jabber:config:pth-csock'>
<authtime/>
<karma>
<init>10</init>
<max>10</max>
<inc>1</inc>
<dec>1</dec>
<penalty>-6</penalty>
<restore>10</restore>
</karma><ip port="5222">81.77.122.82</ip>
</pthcsock>
</service><log id='elogger'>
<host/>
<logtype/>
<format>%d: [%t] (%h): %s</format>
<file>/var/log/jabberd/error.log</file>
<stderr/>
</log><log id='rlogger'>
<host/>
<logtype>record</logtype>
<format>%d %h %s</format>
<file>/var/log/jabberd/record.log</file>
</log><service id="dnsrv">
<host/>
<load>
<dnsrv>/usr/pkg/lib/jabberd/dnsrv.so</dnsrv>
</load>
<dnsrv xmlns="jabber:config:dnsrv">
<resend service="_jabber._tcp">s2s</resend> <!-- for supporting SRV records -->
<resend>s2s</resend>
</dnsrv>
</service><service id="s2s">
<load>
<dialback>/usr/pkg/lib/jabberd/dialback.so</dialback>
</load>
<dialback xmlns='jabber:config:dialback'>
<legacy/>
<ip port="5269">81.77.122.82</ip>
<karma>
<init>50</init>
<max>50</max>
<inc>4</inc>
<dec>1</dec>
<penalty>-5</penalty>
<restore>50</restore>
</karma>
</dialback>
</service><io>
<rate points="5" time="25"/>
</io><pidfile>/var/run/jabberd/jabber.pid</pidfile>
</jabber>
Убрал эту строчку --> <update><jabberd:cmdline flag="h">BSD.cisco.ru</jabberd:cmdline></update> и получаем в итоге только одну строчку (то, что даемон удачно инициализировался), когда создаём пользователя (пытаюсь зайти клиентом на свой сервер) получаю тоже самое сообщение:
20060608T12:12:04: [notice] (netbsd.rusc.ru): bouncing a routed packet to test@netbsd.rusc.ru from 14@c2s/80D4300: Internal Delivery ErrorЗапускаю в "debug mode" (verbose) --> jabberd -D
Thu Jun 8 14:51:42 2006 mio.c:620 mio while loop, working
Thu Jun 8 14:51:42 2006 mio.c:607 mio while loop top
Thu Jun 8 14:51:42 2006 mio.c:620 mio while loop, working
Thu Jun 8 14:51:42 2006 mio.c:760 MIO read from socket 14: <iq xmlns="jabber:client" id="reg1" type="set"><query xmlns="jabber:iq:register"><username>test</username><p
assword>12345</password></query></iq>
Thu Jun 8 14:51:42 2006 c2s [client.c:277] pthsock_client_read called with: m:80D5300 flag:3 arg:8086700
Thu Jun 8 14:51:42 2006 deliver.c:474 DELIVER 4:BSD.cisco.ru <route type='auth' to='test@BSD.cisco.ru' from='14@c2s/80D5300'><iq xmlns='jabber:client' id='reg1' type='
set'><query xmlns='jabber:iq:register'><username>test</username><password>12345</password></query></iq></route>
Thu Jun 8 14:51:42 2006 deliver.c:678 delivering to instance 'dnsrv'
Thu Jun 8 14:51:42 2006 deliver.c:606 delivery failed (Internal Delivery Error)
Thu Jun 8 14:51:42 2006 log.c:116 <log type='notice' from='BSD.cisco.ru'>bouncing a routed packet to test@BSD.cisco.ru from 14@c2s/80D5300: Internal Delivery Error</lo
g>
Thu Jun 8 14:51:42 2006 deliver.c:474 DELIVER 3:BSD.cisco.ru <log type='notice' from='BSD.cisco.ru'>bouncing a routed packet to test@BSD.cisco.ru from 14@c2s/80D5300:
Internal Delivery Error</log>
Thu Jun 8 14:51:42 2006 deliver.c:678 delivering to instance 'elogger'
20060608T11:51:42: [notice] (BSD.cisco.ru): bouncing a routed packet to test@BSD.cisco.ru from 14@c2s/80D5300: Internal Delivery Error
Thu Jun 8 14:51:42 2006 deliver.c:474 DELIVER 4:c2s <route type='error' to='14@c2s/80D5300' from='test@BSD.cisco.ru' error='Internal Delivery Error'><iq xmlns='jabber:
client' id='reg1' type='set'><query xmlns='jabber:iq:register'><username>test</username><password>12345</password></query></iq></route>
Thu Jun 8 14:51:42 2006 deliver.c:678 delivering to instance 'c2s'
Thu Jun 8 14:51:42 2006 c2s [client.c:164] test@BSD.cisco.ru has an active session, delivering packet
Thu Jun 8 14:51:42 2006 c2s [client.c:167] closing down session test@BSD.cisco.ru at request of session manager
Thu Jun 8 14:51:42 2006 mio.c:1054 mio_write called on x: 0 buffer: <stream:error>Disconnected</stream:error></stream:stream>
Thu Jun 8 14:51:42 2006 mio.c:279 write_dump writing data: <stream:error>Disconnected</stream:error></stream:stream>
Thu Jun 8 14:51:42 2006 c2s [client.c:277] pthsock_client_read called with: m:80D5300 flag:4 arg:8086700
Thu Jun 8 14:51:42 2006 c2s [client.c:282] io_select Socket 14 close notification
Thu Jun 8 14:51:42 2006 mio_ssl.c:133 SSL Cleanup for 0
Thu Jun 8 14:51:42 2006 mio.c:366 freed MIO socket
Thu Jun 8 14:51:42 2006 mio.c:607 mio while loop top
Thu Jun 8 14:51:42 2006 mio.c:620 mio while loop, working
Thu Jun 8 14:51:42 2006 mio.c:607 mio while loop top
Thu Jun 8 14:52:26 2006 jabberd.c:255 main load check of 1.00 with 4 total threads
Thu Jun 8 14:52:28 2006 usercount 0 total usersПочему оно 1) полезло в dnsrv (несмотря на то, что должно локально доставляться) 2) до dnsrv не добралось?
Что разве никто не сталкивался с похожей проблемой? :-/