% 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>