diff options
| author | Andrey Zakhvatov <andy@FreeBSD.org> | 2005-06-19 12:15:42 +0000 |
|---|---|---|
| committer | Andrey Zakhvatov <andy@FreeBSD.org> | 2005-06-19 12:15:42 +0000 |
| commit | be20784009b6caa8ad9f6991f572557f222d9981 (patch) | |
| tree | 75359b66eb5d36e1dd3e7ee484ee021f663fd90d /ru_RU.KOI8-R/articles | |
| parent | 31df6191fae6ad245e15626e9833c0cbaabfb6ba (diff) | |
Initial import, synchronized with English 1.6
Obtained from: The FreeBSD Russian Documentation Project
Notes
svn path=/head/; revision=24923
Diffstat (limited to 'ru_RU.KOI8-R/articles')
| -rw-r--r-- | ru_RU.KOI8-R/articles/relaydelay/article.sgml | 292 |
1 files changed, 292 insertions, 0 deletions
diff --git a/ru_RU.KOI8-R/articles/relaydelay/article.sgml b/ru_RU.KOI8-R/articles/relaydelay/article.sgml new file mode 100644 index 0000000000..a8c784496e --- /dev/null +++ b/ru_RU.KOI8-R/articles/relaydelay/article.sgml @@ -0,0 +1,292 @@ +<!-- + The FreeBSD Russian Documentation Project + + $FreeBSD$ + $FreeBSDru: frdp/doc/ru_RU.KOI8-R/articles/relaydelay/article.sgml,v 1.1 2005/06/16 17:51:24 andy Exp $ + + Original revision: 1.6 +--> + +<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [ +<!ENTITY % articles.ent PUBLIC "-//FreeBSD//ENTITIES DocBook FreeBSD Articles Entity Set//EN"> +%articles.ent; +<!ENTITY % not.published "IGNORE"> +]> + +<article lang="ru"> + <articleinfo> + <title>������������� ���������� ����� ������� �� &os;</title> + + <author> + <firstname>���</firstname> + + <surname>�����</surname> + + <affiliation> + <address><email>trhodes@FreeBSD.org</email></address> + </affiliation> + </author> + + <copyright> + <year>2004</year> + + <holder>The &os; Documentation Project</holder> + </copyright> + + <abstract> + <para>��� ������ ������� ������������� ��� �������� ���������� �������� + �������� ��������� �� �������� ������� &os;. ������ � ����������� + �������� �������� (relaydelay) ��� ���������� � ����� ������ + (greylisting) ������� ������� ����� ������ �� �ޣ� ������ + ���������������� ��������� <errorname>TEMPFAIL</errorname> �� ������ + �������� �������� ���������. ����� ���� ���������� ����������� � ���, + ��� ����������� �������� ��� ���������� ����� ������ ���������� + ����������� ������������ ���������� � ������������������ ����������� + �����������. ��������� �������� ������ ������ �������� ��������� � + ������� � �������� ��������� ��� �����. ����� �������, ������ �����, + ������ �����ģ� � ���������� ����� ������ ����, ����� ���������� ����� + ������� ����������� ��������. ��� ���������� ����; �� ������� ����, + �� ��� ���, ���� ������� �� ������ ������������ ����������� + �����������, ������� ����� ������������ ������ ��������. �� ��� ������ + ��� ��������? ����, � �������� ��ɣ�� ��������� ����������� ����� + <acronym>ID</acronym> ��������� ����������� � ���� ������, � � �������� + ���������� ������������ <errorname>TEMPFAIL</errorname> ������ � + ����������� ������. ���� ��������� ����������� ����� ���������� + ��������, �� <acronym>ID</acronym> ��������� ����� ��������� � + <acronym>ID</acronym> ���������, �����Σ����� � ���� ������. ���� � + ���� ������ ��� ����������, �� �������� ����������� ����� ����������� + �������� �� ����������. � ��������� ������ <acronym>ID</acronym> + �����������, � � �������� ���������� ����������� + <errorname>TEMPFAIL</errorname>. ���� ���� ����� ����������� ��� + ������� ���������, ������������ �� ������. �� ����� ������� �����, + ��� ������������� �������� 90% �����.</para> + </abstract> + </articleinfo> + + <sect1> + <title>������� ���������</title> + + <para>� ������� �������� &os; 4.X ����ޣ� <command>perl</command>, �� + ��� ����� <command>perl</command> � ���������� �������������� ����������. + ������������ &os; 5.X ������ ������ ������ ����� ����, ��� ������� + ��������� ����.</para> + + <para>������� ������� <command>perl</command> � ��� ����� ����������� + <command>perl</command> � ������� ��� ������ ��������� �������:</para> + + <!-- XXX ��� ����� ���������� ������� �������� ����������; "��� �������� + ����� ��������� ��������!" �� �� ������������? --> + + <screen>&prompt.root <userinput>find / -name '*perl*' | xargs rm -rf</userinput></screen> + + <note> + <para>��� ���� �����������, ����� ��� �����, ������� ����� + <command>perl</command>, ���� ����������� � ���������������; + <filename role="port">sysutils/portupgrade</filename> ������ ��� + ����� ��������. �� ������� ����, �� ������, ����� ����� ���� ������� � + ����� ���������� ��������������.</para> + </note> + + <para>���������� <filename role="port">lang/perl5.8</filename> � + ������������� ���������� <makevar>USE_THREADS=yes</makevar>. ������� + ����� ������������� ������� ������� ������ <command>perl</command>; �� + ������������� ������� ��� ������ ������ � �������� ���������.</para> + + <note> + <para>������������� &os; 4.X ���������� ����� ��������� ������� + <command>use.perl</command> � �������� <filename>work</filename>. ��� + ����, ����� ������� ���� ����������, ����� ������������ ��������� ��� + ���� �������, � ������ ��������� �� �������� � 755 ��� ������ ������� + <command>chmod</command>. ������� � ����� �������, ���� ������������� + &os; 4.X ����� ����������������� �������� + <makevar>NOPERL</makevar> � �� ��������� ����� + <filename>make.conf</filename>. � ��������� ������ ������� + <command>perl</command> ��� ��������� ���������� ����� + ��������������.</para> + </note> + + <para>������ ��� �������� ������� ���� ������; + <application>MySQL</application> ��������� �������� ��� ������ ���� + ������. ���������� <filename + role="port">databases/mysql40-server</filename> ������ � <filename + role="port">databases/p5-DBD-mysql40</filename>. ���������� ���� ������ + ������������� ��������� <filename + role="port">databases/p5-DBI-137</filename>, ��� ��� ���� ��� ����� + ��������.</para> + + <para>���������� ����������� ������������ ��������� ������ �� ���� + <command>perl</command>, ���� <filename + role="port">net/p5-Net-Daemon</filename>. ����������� ��������� ���� + ������ ������ ��������� ��� �������. ��������� ��� ����� ����� + ����ϣ����.</para> + + <para>������ ���������� ���� <filename + role="port">mail/p5-Sendmail-Milter</filename>. �� ������ ��������� + ����� ��������� � ����� <filename>Makefile</filename> ������� ������, + ������������ � <makevar>BROKEN</makevar>, ������ ������� ��� + ��������������� ţ. ��� �������� ��� ���� ������, ��� � &os; �� + ��������� �� ��������� � �� �������������� ����� <command>perl</command> + � ���������� �������������� ����������. ����� �������� ���� ������ �� + ������ ��������� � ��������������� ��� ������.</para> + + <para>�������� ������� ��� ���������� ��������� ���������������� + ������:</para> + + <screen>&prompt.root; <userinput>mkdir /tmp/relaydelay</userinput> +&prompt.root; <userinput>cd /tmp/relaydelay</userinput></screen> + + <para>������, ����� � ��� ������� ��������� ������� ��� ������, ������� + <command>fetch</command> ����� �������� ��������� + <acronym>URL</acronym>-������:</para> + + <screen>&prompt.root; <userinput>fetch http://projects.puremagic.com/greylisting/releases/relaydelay-0.04.tgz</userinput> +&prompt.root; <userinput>fetch http://lists.puremagic.com/pipermail/greylist-users/attachments/20030904/b8dafed9/relaydelay-0.04.bin</userinput></screen> + + <!-- ��������� ��� ���� ������: ��������� ����������� ����������� ����� + �������� ������ ����� �� ��� ������, ���� �����-������ ����� ������� + ���. ��������, � ������ �������������� ������� � ��������� �����. --> + + <para>������ ���������� ����������� �������� ���:</para> + + <screen>&prompt.root; <userinput>gunzip -c relaydelay-0.04.tgz | tar xvf -</userinput></screen> + + <para>�� ���� ������ �� ��������� �������� ������ ��������� ��������� + ������. ������ ����������� ���������� ����� ������������ ������� ���� + ������ ��������������� ţ �� ����� <filename>mysql.sql</filename>:</para> + + <screen>&prompt.root; <userinput>mysql < relaydelay-0.04/mysql.sql</userinput></screen> + + <para>���������� ���� <filename>relaydelay.bin</filename> ��� ��������� + ������, �������� ����� �������:</para> + + <screen>&prompt.root; <userinput>patch -d /tmp/relaydelay/relaydelay-0.04 < relaydelay.bin</userinput></screen> + + <para>�������������� ����� <filename>relaydelay.conf</filename> � + <filename>db_maintenance.pl</filename>, ������� � ��� ���������� ��� + ������������ � ������ ��� ���� <application>MySQL</application>. ���� + ���� ���� ��������� � ����������� ���, ��� ������� ����, �� � ��� + ����������� ������������ � ������. ��� �������� ������ ���� ���������� + �� �������� ������� � ������������ ������������, ��� ������� � + ������������ � ���� � ������� �� ����� ������ ������.</para> + + <para>������� ������� ������� �� <filename + role="directory">relaydelay-0.04</filename>:</para> + + <screen>&prompt.root; <userinput>cd relaydelay-0.04</userinput></screen> + + <para>���������� ��� ����������� ���������������� ����� � ��������������� + ��������:</para> + + <screen>&prompt.root; <userinput>mv db_maintenance.pl relaydelay.pl /usr/local/sbin</userinput> +&prompt.root; <userinput>mv relaydelay.conf /etc/mail</userinput> +&prompt.root; <userinput>mv relaydelay.sh /usr/local/etc/rc.d/</userinput></screen> + + <para>������������� ������������ ������������, �������� ����� + �������:</para> + + <screen>&prompt.root; <userinput>sh /usr/local/etc/rc.d/relaydelay.sh start</userinput></screen> + + <note> + <para>���� ���� �� ����� ������������, ���� ���������� ������� &man.mv.1; + �� ���� ���������.</para> + </note> + + <para>���� �ӣ ���������� ���������, �� � �������� <filename + role="directory">/var/log</filename> ������ ��������� ����� ����, + <filename>relaydelay.log</filename>. � Σ� ������ ���������� �����, + �������� ����������:</para> + + <programlisting>Loaded Config File: /etc/mail/relaydelay.conf +Using connection 'local:/var/run/relaydelay.sock' for filter relaydelay +DBI Connecting to DBI:mysql:database=relaydelay:host=localhost:port=3306 +Spawned relaydelay daemon process 38277. +Starting Sendmail::Milter 0.18 engine.</programlisting> + + <para>���� ���� �� ��������, �� ���-�� ��������� �����������, ������������ + �������� ����������� ��� ����������� ���������� ���� + <filename>messages</filename> �� ������� ��������� ����� + ����������.</para> + + <para>���������� �ӣ ������, ������� ��������� ������ � ���� + <filename>/etc/mail/sendmail.mc</filename> ��� ����������� ��� ����� + ������� <filename>mc</filename>-����:</para> + + <programlisting>INPUT_MAIL_FILTER(`relaydelay', `S=local:/var/run/relaydelay.sock, T=S:1m;R:2m;E:3m')dnl</programlisting> + + <para>����������� � �������������� ����� � �������� + <filename>/etc/mail</filename> � ������������� + <command>sendmail</command>. �������� ������� <command>make</command> + <maketarget>restart</maketarget> ������ ������� �ӣ �����������.</para> + + <para>�������� ������ �� ����� <command>perl</command>, �����ݣ���� �� + ������ <ulink + url="http://lists.puremagic.com/pipermail/greylist-users/2003-November/000327.html"> + http://lists.puremagic.com/pipermail/greylist-users/2003-November/000327.html</ulink> + � ��������� ��� � ������� <filename + role="directory">relaydelay-0.04</filename>. � ��������� ������� ���� + ������ ������������ ��� <filename>addlist.pl</filename>.</para> + + <para>�������������� ���� <filename>whitelist_ip.txt</filename>, + ������������� ��� ���, ����� � ���� ���� �������� + <acronym>IP</acronym>-������ ��������, ������� ������ ����� ����������� + ������������ ������� <application>relaydelay</application>. �� ���� ��� + ������, ��� ��������� ����������� ����� �� ������� ��������������� + ��������� <errorname>TEMPFAIL</errorname> ���������� �� �����.</para> + + <para>��� ������ ����� ��������:</para> + + <programlisting>192.168. # My internal network. +66.218.66 # Yahoo groups has unique senders.</programlisting> + + <para>���� <filename>blacklist_ip.txt</filename> ������ ����� ������� + ����������, �� � ��������� ���������. ������� � ���� ����� + <acronym>IP</acronym>-������, ������� ������ ����������� ��� ������ + ���������������� ��������� <errorname>TEMPFAIL</errorname>. ���� + �������� ������� ������� �� ������� ���� ����������� �������� � ���, ��� + ��� �������� ������� ������������� ��������� ���������.</para> + + <para>��� ����� ������ ������ ���� ������������� � ���� ������ ����������� + ������� <filename>addlist.pl</filename>, ������� ��� ������� ����������� + �������� ����:</para> + + <screen>&prompt.root; <userinput>perl addlist.pl -whitelist 9999-12-31 23:59:59 < whitelist_ip.txt</userinput> +&prompt.root; <userinput>perl addlist.pl -blacklist 9999-12-31 23:59:59 < blacklist_ip.txt</userinput></screen> + + <para>��� ��������� ���������� <application>relaydelay</application> ��� + ������ �������� �������, �������� ������� + <option>relaydelay_enable="YES"</option> � ���� + <filename>/etc/rc.conf</filename>.</para> + + <para>���������� ���� <filename>/var/log/relaydelay.log</filename> ������ + ���������� ����������� �������� �������������. � ����������� �� �������� + ������ ��������� �������, ������ ������ ��������� �������, �������� + ���������.</para> + + <programlisting>=== 2004-05-24 21:03:22 === +Stored Sender: <someasshole@flawed-example.com> +Passed Recipient: <local_user@pittgoth.com> + Relay: example.net [XXX.XX.XXX.XX] - If_Addr: MY_IP_ADDRESS + RelayIP: XX.XX.XX.XX - RelayName: example.net - RelayIdent: - PossiblyForged: 0 + From: someasshole@flawed-example.com - To: local_user + InMailer: esmtp - OutMailer: local - QueueID: i4P13Lo6000701111 + Email is known but block has not expired. Issuing a tempfail. rowid: 51 + IN ABORT CALLBACK - PrivData: 0<someasshole@flawed-example.com></programlisting> + + <para>� ���� <filename>/etc/newsyslog.conf</filename> ������ ����� �������� + ��������� ������, ������� ������������ ������� �������� + <filename>relaydelay.log</filename> ��� ���������� ������� � 100 + <acronym>�����</acronym>:</para> + + <screen>/var/log/relaydelay.log 644 3 100 * Z</screen> + + <!-- XXX � ������ ������ ��������� ��� ���������? --> + <note> + <para>� �����-�� ������ ���������� ������ � �������� ����������� + ���������� <command>perl</command> � ����� + <filename>/etc/mail/relaydelay.conf</filename>. ���� �� ��� ���������� + �����������������, �� ���������������� ���� ����� ���� ��������� + ���������. ������ �� �������� ������ �� �� ������������ �� ����, ��� + ������ ������ � ����������� <command>relaydelay</command>.</para> + </note> + </sect1> +</article> |
