<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Case &#187; ejabberd</title>
	<atom:link href="http://case.net.ru/tag/ejabberd/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sun, 29 Jan 2012 08:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Переходим на Jabber</title>
		<link>http://case.net.ru/2009/02/06/jabber/</link>
		<comments>http://case.net.ru/2009/02/06/jabber/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 15:46:28 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ejabberd]]></category>
		<category><![CDATA[mcabber]]></category>
		<category><![CDATA[pyicqt]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=199</guid>
		<description><![CDATA[Устанавливаем erlang-lite (без Java, X11, ODBC): 1 2 3 4 5 6 # cd /usr/ports/lang/erlang-lite/ # grep WITH Makefile WITHOUT_JAVA= yes WITHOUT_X11= yes WITHOUT_ODBC= yes # make install clean Устанавливаем ejabberd (без ODBC): 1 2 3 4 # cd /usr/ports/net-im/ejabberd # grep WITH Makefile .if defined&#40;WITH_ODBC&#41; # make install clean Устанавливаем pyicqt (с поддержкой ejabberd [...]]]></description>
			<content:encoded><![CDATA[<p>Устанавливаем erlang-lite (без Java, X11, ODBC):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/ports/lang/erlang-lite/</span>
<span style="color: #666666; font-style: italic;"># grep WITH Makefile </span>
<span style="color: #007800;">WITHOUT_JAVA</span>=   <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">WITHOUT_X11</span>=    <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">WITHOUT_ODBC</span>=   <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;"># make install clean</span></pre></td></tr></table></div>

<p>Устанавливаем ejabberd (без ODBC):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/ports/net-im/ejabberd</span>
<span style="color: #666666; font-style: italic;"># grep WITH Makefile </span>
.if defined<span style="color: #7a0874; font-weight: bold;">&#40;</span>WITH_ODBC<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #666666; font-style: italic;"># make install clean</span></pre></td></tr></table></div>

<p>Устанавливаем pyicqt (с поддержкой ejabberd &#8211; WITH_EJABBERD):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/ports/net-im/jabber-pyicq</span>
<span style="color: #666666; font-style: italic;"># make config</span>
<span style="color: #666666; font-style: italic;"># make install clean</span></pre></td></tr></table></div>

<p>Добавляем в DNS следующие записи:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">_xmpp-client._tcp.case.net.ru.  IN SRV <span style="color: #000000;">5</span> <span style="color: #000000;">0</span> <span style="color: #000000;">5222</span> case.net.ru.
_xmpp-server._tcp.case.net.ru.  IN SRV <span style="color: #000000;">5</span> <span style="color: #000000;">0</span> <span style="color: #000000;">5269</span> case.net.ru.
_jabber._tcp.case.net.ru.       IN SRV <span style="color: #000000;">5</span> <span style="color: #000000;">0</span> <span style="color: #000000;">5269</span> case.net.ru.
icq                             A 213.79.110.123</pre></td></tr></table></div>

<p>Настраиваем ejabberd &#8211; /usr/local/etc/ejabberd/ejabberd.cfg:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>acl, admin, <span style="color: #7a0874; font-weight: bold;">&#123;</span>user, <span style="color: #ff0000;">&quot;case&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>acl, <span style="color: #7a0874; font-weight: bold;">local</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>user_regexp, <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, pubsub_createnode, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>allow, all<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, configure, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>allow, admin<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, register, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>deny, all<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>welcome_message, <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">&quot;Welcome!&quot;</span>, <span style="color: #ff0000;">&quot;Welcome to Jabber Service.  &quot;</span> <span style="color: #ff0000;">&quot;For information about Jabber visit http://jabber.org&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, announce, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>allow, admin<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, c2s, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>deny, blocked<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>allow, all<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>shaper, normal, <span style="color: #7a0874; font-weight: bold;">&#123;</span>maxrate, <span style="color: #000000;">1000</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>shaper, fast, <span style="color: #7a0874; font-weight: bold;">&#123;</span>maxrate, <span style="color: #000000;">50000</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, c2s_shaper, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>none, admin<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>normal, all<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, s2s_shaper, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>fast, all<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, muc_admin, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>allow, admin<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>access, muc, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>allow, all<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>auth_method, internal<span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>hosts, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;case.net.ru&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>max_user_sessions, <span style="color: #000000;">10</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>language, <span style="color: #ff0000;">&quot;en&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>listen,
 <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">5222</span>, ejabberd_c2s,     <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>access, c2s<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>shaper, c2s_shaper<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>max_stanza_size, <span style="color: #000000;">65536</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>, starttls, <span style="color: #7a0874; font-weight: bold;">&#123;</span>certfile, <span style="color: #ff0000;">&quot;/usr/local/etc/ejabberd/ssl.pem&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">5223</span>, ejabberd_c2s,     <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>access, c2s<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>max_stanza_size, <span style="color: #000000;">65536</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>, tls, <span style="color: #7a0874; font-weight: bold;">&#123;</span>certfile, <span style="color: #ff0000;">&quot;/usr/local/etc/ejabberd/ssl.pem&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">5269</span>, ejabberd_s2s_in,  <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>shaper, s2s_shaper<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>max_stanza_size, <span style="color: #000000;">131072</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">5247</span>, ejabberd_service, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>access, all<span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #7a0874; font-weight: bold;">&#123;</span>hosts, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;icq.case.net.ru&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>password, <span style="color: #ff0000;">&quot;secret&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
 <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>s2s_use_starttls, <span style="color: #c20cb9; font-weight: bold;">true</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>s2s_certfile, <span style="color: #ff0000;">&quot;/usr/local/etc/ejabberd/ssl.pem&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>outgoing_s2s_port, <span style="color: #000000;">5269</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.
<span style="color: #7a0874; font-weight: bold;">&#123;</span>modules,
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_register,   <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>access, register<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_roster,     <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_privacy,    <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_adhoc,      <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_configure2, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_disco,      <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_stats,      <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_vcard,      <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_offline,    <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_private,    <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_irc,        <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_muc,        <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>access, muc<span style="color: #7a0874; font-weight: bold;">&#125;</span>,
                    <span style="color: #7a0874; font-weight: bold;">&#123;</span>access_create, muc<span style="color: #7a0874; font-weight: bold;">&#125;</span>,
                    <span style="color: #7a0874; font-weight: bold;">&#123;</span>access_admin, muc_admin<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_pubsub,     <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>access_createnode, pubsub_createnode<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_time,       <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_last,       <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>mod_version,    <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
 <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.</pre></div></div>

<p>Создаем сертификат:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/local/etc/ejabberd/</span>
<span style="color: #666666; font-style: italic;"># openssl req -new -x509 -nodes -newkey rsa:1024 -days 3650 </span>
<span style="color: #660033;">-keyout</span> privkey.pem <span style="color: #660033;">-out</span> server.pem <span style="color: #660033;">-subj</span> 
<span style="color: #ff0000;">&quot;/C=XX/ST=XX/L=XX/O=XX/OU=XX/CN=case.net.ru/emailAddress=case@case.net.ru&quot;</span>
<span style="color: #666666; font-style: italic;"># cat privkey.pem &gt;&gt; server.pem  </span>
<span style="color: #666666; font-style: italic;"># rm privkey.pem </span>
<span style="color: #666666; font-style: italic;"># mv server.pem ssl.pem</span></pre></td></tr></table></div>

<p>Настраиваем pyicqt (приведены только изменения) &#8211; /usr/local/etc/jabber-pyicq.xml:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>jid<span style="color: #000000; font-weight: bold;">&gt;</span>icq.case.net.ru<span style="color: #000000; font-weight: bold;">&lt;/</span>jid<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>spooldir<span style="color: #000000; font-weight: bold;">&gt;/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>jabber<span style="color: #000000; font-weight: bold;">&lt;/</span>spooldir<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>pid<span style="color: #000000; font-weight: bold;">&gt;/</span>var<span style="color: #000000; font-weight: bold;">/</span>jabberd<span style="color: #000000; font-weight: bold;">/</span>pid<span style="color: #000000; font-weight: bold;">/</span>PyICQt.pid<span style="color: #000000; font-weight: bold;">&lt;/</span>pid<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mainServer<span style="color: #000000; font-weight: bold;">&gt;</span>127.0.0.1<span style="color: #000000; font-weight: bold;">&lt;/</span>mainServer<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>mainServerJID<span style="color: #000000; font-weight: bold;">&gt;</span>case.net.ru<span style="color: #000000; font-weight: bold;">&lt;/</span>mainServerJID<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>website<span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>case.net.ru<span style="color: #000000; font-weight: bold;">/&lt;/</span>website<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>port<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">5247</span><span style="color: #000000; font-weight: bold;">&lt;/</span>port<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>secret<span style="color: #000000; font-weight: bold;">&gt;</span>secret<span style="color: #000000; font-weight: bold;">&lt;/</span>secret<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>lang<span style="color: #000000; font-weight: bold;">&gt;</span>en<span style="color: #000000; font-weight: bold;">&lt;/</span>lang<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>encoding<span style="color: #000000; font-weight: bold;">&gt;</span>windows-<span style="color: #000000;">1251</span><span style="color: #000000; font-weight: bold;">&lt;/</span>encoding<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>icqServer<span style="color: #000000; font-weight: bold;">&gt;</span>login.icq.com<span style="color: #000000; font-weight: bold;">&lt;/</span>icqServer<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>icqPort<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">5190</span><span style="color: #000000; font-weight: bold;">&lt;/</span>icqPort<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>Создаем необходимые каталоги:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># mkdir /var/spool/jabber</span>
<span style="color: #666666; font-style: italic;"># mkdir -p /var/jabberd/pid</span>
<span style="color: #666666; font-style: italic;"># chown ejabberd:ejabberd /var/spool/jabber /var/jabberd /var/jabberd/pid</span></pre></td></tr></table></div>

<p>Включаем демонов в /etc/rc.conf:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">ejabberd_enable</span>=<span style="color: #ff0000;">&quot;YES&quot;</span>
<span style="color: #007800;">jabber_pyicq_enable</span>=<span style="color: #ff0000;">&quot;YES&quot;</span></pre></td></tr></table></div>

<p>Запускаем демонов:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/etc/rc.d/ejabberd start</span>
<span style="color: #666666; font-style: italic;"># /usr/local/etc/rc.d/jabber-pyicq-transport start</span></pre></td></tr></table></div>

<p>Из под пользователя ejabberd проверяем статус и регистрируем пользователя:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>ejabberd<span style="color: #000000; font-weight: bold;">@</span>case.net.ru<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ ejabberdctl ejabberd<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000; font-weight: bold;">case</span> status 
Node ejabberd<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000; font-weight: bold;">case</span> is started. Status: started
ejabberd is running
<span style="color: #7a0874; font-weight: bold;">&#91;</span>ejabberd<span style="color: #000000; font-weight: bold;">@</span>case.net.ru<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ ejabberdctl ejabberd<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000; font-weight: bold;">case</span> register <span style="color: #000000; font-weight: bold;">case</span> case.net.ru password</pre></td></tr></table></div>

<p>Подключаемся к учетной записи через kopete и регистрируемся в службе ICQ Transport.</p>
<p>Устанавливаем mcabber:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/ports/net-im/mcabber</span>
<span style="color: #666666; font-style: italic;"># grep WITH Makefile </span>
.if defined<span style="color: #7a0874; font-weight: bold;">&#40;</span>WITH_GPGME<span style="color: #7a0874; font-weight: bold;">&#41;</span>
.if defined<span style="color: #7a0874; font-weight: bold;">&#40;</span>WITH_ASPELL<span style="color: #7a0874; font-weight: bold;">&#41;</span>
.if defined<span style="color: #7a0874; font-weight: bold;">&#40;</span>WITH_OTR<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #666666; font-style: italic;"># make install clean</span></pre></td></tr></table></div>

<p>Подключаемся через mcabber &#8211; ~/.mcabber/mcabberrc:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> username = <span style="color: #000000; font-weight: bold;">case</span>
<span style="color: #000000; font-weight: bold;">set</span> server = case.net.ru
<span style="color: #000000; font-weight: bold;">set</span> port = <span style="color: #000000;">5223</span>
<span style="color: #000000; font-weight: bold;">set</span> ssl = <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">set</span> ssl_verify = <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>Возникли проблемы с контактами на gmail.com &#8211; решилось отключением службы google talk для домена. )</p>
<p>Ссылки:<br />
<a href="http://www.opennet.ru/base/net/jabber_icq_gate.txt.html">http://www.opennet.ru/base/net/jabber_icq_gate.txt.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/02/06/jabber/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
