{"id":208,"date":"2010-06-22T15:51:45","date_gmt":"2010-06-22T12:51:45","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=208"},"modified":"2014-08-18T17:46:45","modified_gmt":"2014-08-18T14:46:45","slug":"greylist-postgrey-%d0%b8%d0%bb%d0%b8-%d0%bf%d0%b0%d0%bd%d0%b0%d1%86%d0%b5%d1%8f-%d0%be%d1%82-%d1%81%d0%bf%d0%b0%d0%bc%d0%b0","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=208","title":{"rendered":"Greylist postgrey \u0438\u043b\u0438 \u043f\u0430\u043d\u0430\u0446\u0435\u044f \u043e\u0442 \u0441\u043f\u0430\u043c\u0430."},"content":{"rendered":"<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435\u00a0<strong>greylisting<\/strong>?<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0435\u0431\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u044c\u043c\u043e, \u0430 \u0435\u043c\u0443 \u0432 \u043e\u0442\u0432\u0435\u0442: &#8220;\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u043f\u043e\u0437\u0436\u0435&#8221;. \u041f\u043e\u0440\u044f\u0434\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (\u043d\u0435 \u0441\u043f\u0430\u043c\u0435\u0440\u0441\u043a\u0438\u0439) \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0443. \u041f\u043e\u0441\u043b\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043f\u0438\u0441\u044c\u043c\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u044b\u043f\u0443 \u043e\u0442\u0441\u0435\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u0430\u043c\u0435\u0440\u0441\u043a\u0438\u0445 \u043f\u0438\u0441\u0435\u043c.<\/p>\n<p><!--more--><\/p>\n<p>\u0421\u0430\u043c \u0442\u0435\u0440\u043c\u0438\u043d \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043a \u043a\u0430\u043a\u043e\u043c\u0443-\u0442\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0433\u0440\u0435\u0439-\u043b\u0438\u0441\u0442\u0443. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441 MTA\u00a0<strong>postfix<\/strong>. \u041a\u00a0<strong>exim&#8217;\u0443<\/strong> \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c, \u043d\u043e \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0432\u043e\u0438, \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c &#8220;\u0437\u0430\u0442\u043e\u0447\u0435\u043d\u043d\u044b\u0435&#8221; \u043f\u043e\u0434 \u043d\u0435\u0433\u043e.<\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0440\u0442\u044b \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0430\u043c\u00a0<strong>postgrey<\/strong>:<\/p>\n<p><code>#cd \/usr\/ports\/mail\/greylist &amp;&amp; make install clean<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u043f\u0430\u043f\u043a\u0435 \u0441\u00a0<strong>postfix&#8217;\u043e\u043c<\/strong> \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b\u00a0<strong>postgrey_whitelist_clients<\/strong> \u0438<strong>postgrey_whitelist_recipients<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e &#8220;\u0431\u0435\u043b\u044b\u0445&#8221; \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u043a \u0434\u043e\u043c\u0435\u043d\u044b, \u0442\u0430\u043a \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e <strong>postgrey<\/strong> \u0432\u00a0<strong>postfix&#8217;e<\/strong>. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c\u00a0<strong>main.cf<\/strong> \u0438 \u0438\u0449\u0435\u043c \u0440\u0435\u0441\u0442\u0440\u0438\u043a\u0448\u043d<strong>smtpd_recipient_restrictions<\/strong>, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p><code>check_policy_service inet:127.0.0.1:10023<\/code><\/p>\n<p>\u0441\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437\u00a0<strong>postgrey<\/strong>.<\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443\u00a0<strong>postgrey_enable=&#8221;YES&#8221;<\/strong> \u0432\u00a0<strong>\/etc\/rc.conf<\/strong>, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u00a0<strong>postgrey<\/strong> \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u00a0<strong>postfix&#8217;a<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0438\u0441\u044c\u043c\u043e \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u043b\u043e\u0433\u0438, \u043e\u0431\u0440\u0430\u0449\u0430\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438(\u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043e\u043d \u043a\u0430\u043a \u0431\u044b \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0438\u0442\u044c\u0441\u044f, \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c &#8211; \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f):<\/p>\n<p><code>Sep 11 12:25:53 router1\u00a0<strong>postgrey[26557]: action=greylist, reason=new<\/strong>, client_name=router1, client_address=10.0.3.131, sender=skeletor@router1.router1.tld, recipient=admin@router1.tld<br \/>\nSep 11 12:25:53 router1 postfix\/smtpd[27372]:\u00a0<strong>NOQUEUE: reject: RCPT from router1[10.0.3.131]: 450 4.2.0 <\/strong><strong>: Client host rejected: Greylisted<\/strong>, see http:\/\/postgrey.schweikert.ch\/help\/router1.tld.html; from=\u00a0to=\u00a0proto=ESMTP helo=<br \/>\nSep 11 12:25:53 router1 sendmail[27371]: n8BCPrOb027371: to=admin@router1.tld, ctladdr=skeletor (1001\/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=4.2.0, stat=Deferred: Name server: [127.0.0.1]: host name lookup failure<br \/>\nSep 11 12:25:53 router1 postfix\/smtpd[27372]: disconnect from router1[10.0.3.131]<br \/>\nSep 11 12:59:42 router1 postfix\/postfix-script[27692]: refreshing the Postfix mail system<br \/>\nSep 11 12:59:53 router1 sendmail[27702]: n8BCxroo027702: from=skeletor, size=44,, nrcpts=1, msgid=&lt;200909111259.n8BCxroo027702@router1.router1.tld&gt;, relay=root@localhost<br \/>\nSep 11 12:59:53 router1 postfix\/smtpd[27703]: connect from router1[10.0.3.131]<br \/>\nSep 11 12:59:53 router1\u00a0<strong>postgrey[26557]: action=pass, reason=triplet found<\/strong>, delay=2040, client_name=router1, client_address=10.0.3.131, sender=skeletor@router1.router1.tld, recipient=admin@router1.tld<br \/>\nSep 11 12:59:53 router1 postgrey[26557]: cleaning up old logs...<br \/>\nSep 11 12:59:53 router1 postfix\/smtpd[27703]: C877374E606: client=router1[10.0.3.131]<br \/>\nSep 11 12:59:53 router1 postfix\/cleanup[27705]: C877374E606: message-id=&lt;200909111259.n8BCxroo027702@router1.router1.tld&gt;<br \/>\nSep 11 12:59:53 router1 sendmail[27702]: n8BCxroo027702: to=admin@router1.tld, ctladdr=skeletor (1001\/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30044, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as C877374E606)<br \/>\nSep 11 12:59:53 router1 postfix\/qmgr[27696]: C877374E606: from=, size=671, nrcpt=1 (queue active)<br \/>\nSep 11 12:59:53 router1 postfix\/smtpd[27703]: disconnect from router1[10.0.3.131]<br \/>\nSep 11 12:59:53 router1 postfix\/virtual[27706]: C877374E606: to=, relay=virtual, delay=0.2, delays=0.17\/0.02\/0\/0.01, dsn=2.0.0, status=sent (delivered to maildir)<br \/>\nSep 11 12:59:53 router1 postfix\/qmgr[27696]: C877374E606: removed<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435\u00a0greylisting? \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0435\u0431\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u044c\u043c\u043e, \u0430 \u0435\u043c\u0443 \u0432 \u043e\u0442\u0432\u0435\u0442: &#8220;\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u043f\u043e\u0437\u0436\u0435&#8221;. \u041f\u043e\u0440\u044f\u0434\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (\u043d\u0435 \u0441\u043f\u0430\u043c\u0435\u0440\u0441\u043a\u0438\u0439) \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0443. \u041f\u043e\u0441\u043b\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043f\u0438\u0441\u044c\u043c\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u044b\u043f\u0443 \u043e\u0442\u0441\u0435\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u0430\u043c\u0435\u0440\u0441\u043a\u0438\u0445 \u043f\u0438\u0441\u0435\u043c.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,11],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-mail"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":4368,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/4368"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}