{"id":54,"date":"2011-11-17T22:55:32","date_gmt":"2011-11-17T18:55:32","guid":{"rendered":"http:\/\/blog.mgvmi-hipl.ru\/?p=54"},"modified":"2011-11-17T22:55:32","modified_gmt":"2011-11-17T18:55:32","slug":"%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-%d1%81%d0%be%d0%be%d0%b1%d1%89%d0%b5%d0%bd%d0%b8%d1%8f-%d0%be-%d0%b2%d0%b8%d1%80%d1%83%d1%81%d0%b5-%d0%b2-%d0%bf%d0%be%d1%87%d1%82%d0%b5","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=54","title":{"rendered":"\u0421\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e \u0432\u0438\u0440\u0443\u0441\u0435 \u0432 \u043f\u043e\u0447\u0442\u0435"},"content":{"rendered":"<p>&#171;\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u0438\u0441\u044c\u043c\u0430\u0445 \u0441 \u0432\u0438\u0440\u0443\u0441\u0430\u043c\u0438 (clamav)&#187;<br \/>\n\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442 Strangler email\u0418\u0441\u043a\u0430\u0442\u044c \u043f\u043e \u0430\u0432\u0442\u043e\u0440\u0443\u0412 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438(??) on 25-\u0410\u0432\u0433-05, 13:01\u00a0 (MSK)<\/p>\n<p>&gt;\u0417\u0430\u0434\u0430\u0447\u0430: \u043f\u0438\u0441\u044c\u043c\u0430 \u0441 \u0432\u0438\u0440\u0443\u0441\u0430\u043c\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u043d\u043e \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 (\u0441\u043a\u0430\u0436\u0435\u043c, \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 e-mail),<br \/>\n&gt;\u0447\u0442\u043e \u043e\u0442 \u0442\u043e\u0433\u043e-\u0442\u043e, \u0442\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u043f\u0438\u0441\u044c\u043c\u043e \u0441 \u0432\u0438\u0440\u0443\u0441\u043e\u043c.<br \/>\n&gt;\u041a\u0430\u043a \u0431\u044b \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c?<br \/>\n&gt;(\u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 clamd \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b VirusEvent, \u043d\u043e \u0442\u0430\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 %v \u0434\u0430\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u044f<br \/>\n&gt;\u0432\u0438\u0440\u0443\u0441\u0430, \u0430 &#171;\u043e\u0442 \u043a\u043e\u0433\u043e&#187; \u0438 &#171;\u043a\u043e\u043c\u0443&#187; \u043d\u0435\u0442. \u0414\u0440\u0443\u0433\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0435 \u0437\u043d\u0430\u044e)<br \/>\n&gt;<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u043a\u0430 clamav + clamsmtpd + postfix \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 VirusAction \u0432 clamsmtpd.conf :<br \/>\nVirusAction: \/etc\/clamsmtpd\/virus-notice<br \/>\n\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 virus-notice :<\/p>\n<p>#!\/bin\/sh<br \/>\n#<br \/>\n# v0.3 (2005-01-13)<br \/>\n#<br \/>\n# Simple VirusAction script to get virus alerts via email from ClamSMTP.<br \/>\n# Depends on formail binary.<br \/>\n#<br \/>\n# Olivier Beyssac &lt;ob@r14.freenix.org&gt;<br \/>\n#<br \/>\n# Thanks to Colin McKinnon &lt;colin@mms3.com&gt; for the &#171;cat -v&#187; patch<br \/>\n#<\/p>\n<p># Email address to send alerts to<br \/>\nMAILTO=postmaster<br \/>\nSUBJ=&#187;Virus found !!!&#187;<br \/>\nDAEMONREPORT=&#187;&#8212;<br \/>\nClam AntiVirus is a GPL anti-virus toolkit for UNIX<br \/>\nhttp:\/\/www.clamav.net&#187;<\/p>\n<p># formail should be in PATH<br \/>\nPATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin<\/p>\n<p>LINE=&#187;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-&#187;<\/p>\n<p>(echo<br \/>\necho &#171;\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 !&#187;<br \/>\necho<br \/>\necho &#171;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e.&#187;<br \/>\necho<br \/>\necho &#171;\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c = $SENDER (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u043b\u0430\u043d)&#187;<br \/>\necho &#171;\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0438 = $RECIPIENTS&#187;<br \/>\necho<br \/>\necho &#171;&#8212; ClamAV report &#8212;&#187;<br \/>\necho &#171;\u041d\u0430\u0439\u0434\u0435\u043d(\u044b) \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439(\u0435) \u0432\u0438\u0440\u0443\u0441(\u044b):&#187;<br \/>\necho &#171;$VIRUS&#187;<br \/>\necho &#171;&#8212; ClamAV report &#8212;&#187;<br \/>\necho<br \/>\necho &#171;$DAEMONREPORT&#187;<br \/>\necho<br \/>\nif [ &#171;x$EMAIL&#187; != &#171;x&#187; ] &amp;&amp; [ -f $EMAIL ]<br \/>\nthen<br \/>\necho &#171;Quarantined to: $EMAIL&#187;<br \/>\necho<br \/>\necho Headers follow:<br \/>\necho $LINE<br \/>\nformail -X &#171;&#187; &lt; $EMAIL<br \/>\necho $LINE<br \/>\nfi<br \/>\n) | cat | nail -s &#171;$SUBJ&#187; postmaster<\/p>\n<p>(echo<br \/>\necho &#171;\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c $SENDER !&#187;<br \/>\necho<br \/>\necho &#171;C\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0441 \u0412\u0430\u0448\u0435\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0438\u0440\u0443\u0441\u043e\u043c&#187;<br \/>\necho &#171;\u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430) \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443(\u0430\u043c) $RECIPIENTS&#187;<br \/>\necho &#171;\u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e.&#187;<br \/>\necho<br \/>\necho &#171;&#8212; ClamAV report &#8212;&#187;<br \/>\necho &#171;\u041d\u0430\u0439\u0434\u0435\u043d(\u044b) \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439(\u0435) \u0432\u0438\u0440\u0443\u0441(\u044b):&#187;<br \/>\necho &#171;$VIRUS&#187;<br \/>\necho &#171;&#8212; ClamAV report &#8212;&#187;<br \/>\necho<br \/>\necho &#171;$DAEMONREPORT&#187;<br \/>\necho<br \/>\nif [ &#171;x$EMAIL&#187; != &#171;x&#187; ] &amp;&amp; [ -f $EMAIL ]<br \/>\nthen<br \/>\necho &#171;Quarantined to: $EMAIL&#187;<br \/>\necho<br \/>\necho Headers follow:<br \/>\necho $LINE<br \/>\nformail -X &#171;&#187; &lt; $EMAIL<br \/>\necho $LINE<br \/>\nfi<br \/>\n) | cat | nail -s &#171;$SUBJ&#187; $SENDER<\/p>\n<p>(echo<br \/>\necho &#171;\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c !&#187;<br \/>\necho<br \/>\necho &#171;C\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043f\u043e\u0441\u043b\u0430\u043d\u043d\u043e\u0435 \u0412\u0430\u043c \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 $SENDER (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u043b\u0430\u043d)&#187;<br \/>\necho &#171;\u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e.&#187;<br \/>\necho<br \/>\necho &#171;&#8212; ClamAV report &#8212;&#187;<br \/>\necho &#171;\u041d\u0430\u0439\u0434\u0435\u043d(\u044b) \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439(\u0435) \u0432\u0438\u0440\u0443\u0441(\u044b):&#187;<br \/>\necho &#171;$VIRUS&#187;<br \/>\necho &#171;&#8212; ClamAV report &#8212;&#187;<br \/>\necho<br \/>\necho &#171;$DAEMONREPORT&#187;<br \/>\necho<br \/>\nif [ &#171;x$EMAIL&#187; != &#171;x&#187; ] &amp;&amp; [ -f $EMAIL ]<br \/>\nthen<br \/>\necho &#171;Quarantined to: $EMAIL&#187;<br \/>\necho<br \/>\necho Headers follow:<br \/>\necho $LINE<br \/>\nformail -X &#171;&#187; &lt; $EMAIL<br \/>\necho $LINE<br \/>\nfi<br \/>\n) | cat | nail -s &#171;$SUBJ&#187; $RECIPIENTS<\/p>\n<p>\u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f nail (http:\/\/nail.sourceforge.net)<br \/>\n\u041f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 virus-notice \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c 750 clamav clamav.<\/p>\n<p>\u0423\u0441\u043f\u0435\u0445\u043e\u0432 !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#171;\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u0438\u0441\u044c\u043c\u0430\u0445 \u0441 \u0432\u0438\u0440\u0443\u0441\u0430\u043c\u0438 (clamav)&#187; \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442 Strangler email\u0418\u0441\u043a\u0430\u0442\u044c \u043f\u043e \u0430\u0432\u0442\u043e\u0440\u0443\u0412 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438(??) on 25-\u0410\u0432\u0433-05, 13:01\u00a0 (MSK) &gt;\u0417\u0430\u0434\u0430\u0447\u0430: \u043f\u0438\u0441\u044c\u043c\u0430 \u0441 \u0432\u0438\u0440\u0443\u0441\u0430\u043c\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u043d\u043e \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 (\u0441\u043a\u0430\u0436\u0435\u043c, \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 e-mail), &gt;\u0447\u0442\u043e \u043e\u0442 \u0442\u043e\u0433\u043e-\u0442\u043e, \u0442\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u043f\u0438\u0441\u044c\u043c\u043e \u0441 \u0432\u0438\u0440\u0443\u0441\u043e\u043c. &gt;\u041a\u0430\u043a \u0431\u044b \u044d\u0442\u043e &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=54\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-linux","category-postfix"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}