{"id":2860,"date":"2012-07-27T17:43:01","date_gmt":"2012-07-27T14:43:01","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2860"},"modified":"2012-07-27T17:43:01","modified_gmt":"2012-07-27T14:43:01","slug":"exim-eximsa-exim-%d0%bd%d0%b0-openbsd","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2860","title":{"rendered":"[exim] Exim+sa-exim \u043d\u0430 OpenBSD"},"content":{"rendered":"<p>\u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c <strong>spamassassin<\/strong> \u043a <strong>exim&#8217;y<\/strong> \u043d\u0430 <strong>OpenBSD<\/strong>. \u0421\u0442\u0430\u0432\u0438\u043b \u0432\u0441\u0451 \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u043e\u0432: \u0432\u0441\u0451 \u0437\u0430\u0432\u0435\u043b\u043e\u0441\u044c, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u041e! \u041c\u0435\u043d\u044f \u0441\u043c\u0443\u0442\u0438\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u043f\u0430\u043c: \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0441\u044f (\u043e \u0447\u0451\u043c \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443\u044e\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 <strong>maillog<\/strong>), \u043d\u043e \u0441\u043f\u0430\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043e\u0442\u0441\u0435\u0438\u0432\u0430\u043b\u043e. \u0418 \u0442\u0443\u0442 \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432, \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432. \u0418 \u043f\u043e\u043d\u044f\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: <strong>exim<\/strong> \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u0438\u0441\u044c\u043c\u043e \u044f\u043a\u043e\u0431\u044b \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443<strong> spamassassin&#8217;y<\/strong>, \u0442\u043e\u0442 \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e exim&#8217;y \u0438 \u0432\u0441\u0451.<\/p>\n<p><!--more--><\/p>\n<p>\u041f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043f\u0438\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0430\u043f\u0440\u043e\u0447\u044c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 <strong>spam<\/strong>, \u0445\u043e\u0442\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 exim&#8217;a \u043e\u043f\u0446\u0438\u0438 <strong>headers_add<\/strong> \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0438\u0437 \u0441\u0431\u043e\u0440\u043a\u0438 <strong>vexim<\/strong>), \u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430:<\/p>\n<pre>X-SA-Exim-Connect-IP: XX.XX.XX.XX\r\nX-SA-Exim-Rcpt-To: postmaster@domain.ua\r\nX-SA-Exim-Mail-From: user@otherdomain.net\r\nX-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.domain.ua\r\nX-Spam-Level: \r\nX-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\r\n\tDKIM_VALID_AU,FREEMAIL_FROM,SPF_PASS,T_RP_MATCHES_RCVD autolearn=unavailable\r\n\tversion=3.3.2\r\nSubject: test\r\nX-SA-Exim-Version: 4.2.1 (built Fri Jul 27 13:39:31 EEST 2012)\r\nX-SA-Exim-Scanned: Yes (on mail.domain.ua)<\/pre>\n<p>\u0412\u043e\u0442 \u043e\u043d\u043e! \u0412\u0438\u0434\u0438\u043c\u043e \u0443 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0435 <strong>exim+sa-exim<\/strong>, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e <strong>exim<\/strong>. \u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445, \u043f\u043e\u043d\u044f\u043b, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434:<\/span><\/strong><\/em> <strong>OpenBSD 5.0 i385, exim 4.76, sa-exim-4.2.1<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0447\u0442\u043e \u044f \u0434\u0435\u043b\u0430\u043b.<\/p>\n<p><strong><span style=\"color: #ff0000;\">1)<\/span><\/strong> \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 <strong>sa-exim<\/strong> <a title=\"\u043e\u0442\u0441\u044e\u0434\u0430\" rel=\"nofollow\" href=\"http:\/\/sourceforge.net\/projects\/sa-exim\/\" target=\"_blank\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>\u00a0\u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0444\u0430\u0439\u043b <strong>sa-exim.h<\/strong>. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<p><code>#define SPAMC_LOCATION \"\/usr\/local\/bin\/spamc\"<br \/>\n#define SPAMASSASSIN_CONF \"\/etc\/exim\/sa-exim.conf\"<\/code><\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0443\u0442\u044c \u043a spamc (\u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a <strong>spamassassin&#8217;a<\/strong>), \u0432\u0442\u043e\u0440\u0430\u044f &#8211; \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u0430\u043c\u043e\u0433\u043e <strong>sa-exim&#8217;a<\/strong> \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<p><strong><span style=\"color: #ff0000;\">2)<\/span><\/strong> \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u043e\u0440\u0442 <strong>exim&#8217;a<\/strong> \u0438 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0435\u0433\u043e:<\/p>\n<p><code>#cd \/usr\/ports\/mail\/exim &amp;&amp; env FLAVOR=\"mysql\" make extract<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b <strong>local_scan.c<\/strong> \u0438\u0437 <strong>exim&#8217;a<\/strong> \u043d\u0430 \u0444\u0430\u0439\u043b\u0438\u043a <strong>sa-exim.c<\/strong> \u0438\u0437 <strong>sa-exim&#8217;a<\/strong> \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 <strong>sa-exim.h<\/strong> (\u0432 \u043f\u0430\u043f\u043a\u0435 <strong>\/usr\/ports\/pobj<\/strong> \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043f\u043e\u0440\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438):<\/p>\n<p><code>#cp \/home\/backup\/sa-exim-4.2.1\/sa-exim.c \/usr\/ports\/pobj\/exim-4.76-mysql\/exim-4.76\/src\/local_scan.c<br \/>\n#cp \/home\/backup\/sa-exim-4.2.1\/sa-exim.h \/usr\/ports\/pobj\/exim-4.76-mysql\/exim-4.76\/src\/<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3)<\/span><\/strong> \u041d\u0443 \u0438 \u0441\u0430\u043c\u043e\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0430\u0442\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b <strong>readconf.c<\/strong> \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 <strong>exim&#8217;a<\/strong>, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p><code>readconf.o(.text+0x5f16): In function `readconf_print':<br \/>\n: undefined reference to `local_scan_options_count'<br \/>\nreadconf.o(.text+0x5f20): In function `readconf_print':<br \/>\n: undefined reference to `local_scan_options'<\/code><\/p>\n<p>\u0412 \u0441\u0430\u043c\u044b\u0439 \u0432\u0432\u0435\u0440\u0445 (\u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 <strong>#define CSTATE_STACK_SIZE 10<\/strong>) \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u043e\u0435<\/p>\n<p><code>static int my_integer_option = 42;<br \/>\nstatic uschar *my_string_option = \"default string\";<br \/>\noptionlist local_scan_options[] = {<br \/>\n{ \"my_integer\", opt_int, &amp;my_integer_option },<br \/>\n{ \"my_string\", opt_stringptr, &amp;my_string_option }<br \/>\n};<br \/>\nint local_scan_options_count = sizeof(local_scan_options)\/sizeof(optionlist);<\/code><\/p>\n<p>\u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c <a title=\"\u0437\u0434\u0435\u0441\u044c\" rel=\"nofollow\" href=\"http:\/\/ff.adati.lv\/linux\/exim-4.30\/doc\/spec.txt\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p><strong><span style=\"color: #ff0000;\">4)<\/span><\/strong> \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043f\u043e\u0440\u0442:<\/p>\n<p><code>#cd \/usr\/ports\/mail\/exim &amp;&amp; env FLAVOR=\"mysql\" make<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u043c (\u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0431\u044d\u043a\u0430\u043f) \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u0438\u043d\u0438\u043a exim&#8217;a (\u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432 <strong>\/usr\/ports\/pobj\/exim-4.76-mysql\/exim-4.76\/build-OpenBSD-i386<\/strong>):<\/p>\n<p><code>#\/etc\/rc.d\/exim stop &amp;&amp; mv \/usr\/local\/bin\/exim \/usr\/local\/bin\/exim-backup &amp;&amp; cp \/usr\/ports\/pobj\/exim-4.76-mysql\/exim-4.76\/build-OpenBSD-i386\/exim \/usr\/local\/bin &amp;&amp; \/etc\/rc.d\/exim start<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">5)<\/span><\/strong> \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043d\u0430\u0434\u043e.<br \/>\n\u041a\u0441\u0442\u0430\u0442\u0438, \u0432\u0441\u0451 \u044d\u0442\u043e \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 <strong>FreeBSD<\/strong> \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <strong>exim&#8217;a<\/strong> \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 <strong>spamassassin&#8217;<\/strong>a<\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u0431\u044b \u0432\u0435\u0440\u0441\u0438\u0438 <strong>Exim&#8217;a<\/strong> \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0438, \u0438\u043d\u0430\u0447\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c spamassassin \u043a exim&#8217;y \u043d\u0430 OpenBSD. \u0421\u0442\u0430\u0432\u0438\u043b \u0432\u0441\u0451 \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u043e\u0432: \u0432\u0441\u0451 \u0437\u0430\u0432\u0435\u043b\u043e\u0441\u044c, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u041e! \u041c\u0435\u043d\u044f \u0441\u043c\u0443\u0442\u0438\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u043f\u0430\u043c: \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0441\u044f (\u043e \u0447\u0451\u043c \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443\u044e\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 maillog), \u043d\u043e \u0441\u043f\u0430\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043e\u0442\u0441\u0435\u0438\u0432\u0430\u043b\u043e. \u0418 \u0442\u0443\u0442 \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432, \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432. \u0418 \u043f\u043e\u043d\u044f\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: exim \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u0438\u0441\u044c\u043c\u043e \u044f\u043a\u043e\u0431\u044b \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 spamassassin&#8217;y, \u0442\u043e\u0442 \u0447\u0442\u043e-\u0442\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,25],"tags":[],"class_list":["post-2860","post","type-post","status-publish","format-standard","hentry","category-mail","category-openbsd"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2860","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=2860"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2860\/revisions"}],"predecessor-version":[{"id":2861,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2860\/revisions\/2861"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}