{"id":1715,"date":"2010-04-04T17:45:21","date_gmt":"2010-04-04T17:45:21","guid":{"rendered":"http:\/\/www.icocean.com\/blog\/?p=1715"},"modified":"1970-01-01T07:00:00","modified_gmt":"1970-01-01T07:00:00","slug":"ubuntu804lts%E4%BC%BA%E6%9C%8D%E5%99%A8%E5%AE%89%E8%A3%9Dpostfix%E7%9A%84%E8%A8%AD%E5%AE%9A","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=1715","title":{"rendered":"Ubuntu 8.04 LTS \u4f3a\u670d\u5668\u5b89\u88dd-postfix \u7684\u8a2d\u5b9a"},"content":{"rendered":"<p>postfix \u7684\u8a2d\u5b9a <br \/>http:\/\/wiki.ubuntu.org.cn\/index. &#8230; h&#038;variant=zh-tw <br \/>http:\/\/hsu.easynow.com.tw\/index.php?id=15&#038;load=read <br \/>http:\/\/b2d.phc.edu.tw\/modules\/ta &#8230; ok_sn=1&#038;bdsn=72 <\/p>\n<p>vi \/etc\/postfix\/main.cf <br \/>inet_interfaces = all (\u539f\u5247\u4e0a\uff0c\u8a2d\u5b9a\u6b64\u9805\u5c31\u53ef\u4ee5\u6536\u5230\u5916\u90e8\u7684\u4f86\u4fe1) <br \/>\/etc\/init.d\/postfix restart <br \/>\u91cd\u65b0\u555f\u52d5 postfix <\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- <br \/>procmail \u7684\u904e\u6ffe\u898f\u5247 (\u53ef\u4ee5\u904e\u6ffe\u5e36\u6709\u75c5\u6bd2\u7684\u90f5\u4ef6) <\/p>\n<p>dpkg -l &#124;grep procmail #\u6aa2\u67e5 procmail \u662f\u5426\u5b89\u88dd <br \/>\u5efa\u7acb procmail \u898f\u5247\uff1a <!--more--><\/p>\n<p>\u904e\u6ffe\u898f\u5247\u53ef\u4ee5\u6293\u53d6\u81e5\u9f8d\u8001\u5e2b\u7684\u8cc7\u6599 <br \/>cd \/etc <br \/>wget ftp:\/\/ftp.tnc.edu.tw\/pub\/Sysop\/MAIL\/procmailrc <\/p>\n<p>cat \/etc\/procmailrc <\/p>\n<p>\u5728 \/var\/log \u5efa\u7acbprocmail.log\u6a94 <br \/>touch \/var\/log\/procmail.log <\/p>\n<p>\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4 <br \/>mailstat -km \/var\/log\/procmail.log <\/p>\n<p>\u91cd\u65b0\u555f\u52d5 postfix <br \/>\/etc\/init.d\/postfix restart <\/p>\n<p>cat \/var\/log\/procmail.log #\u67e5\u770b procmail.log \u7684\u8a18\u9304\uff0c\u8a18\u9304\u8457\u90f5\u4ef6\u4e3b\u65e8\u3001\u5f9e\u4f55\u8655\u5bc4\u4f86\u7684\u53ca\u5bc4\u7d66\u8ab0\u7684 <\/p>\n<p>\u548c spamassassin \u7d50\u5408\u53ef\u4ee5\u5c07\u5ee3\u544a\u90f5\u4ef6\u76f4\u63a5\u522a\u9664 (\/dev\/null) <br \/>dpkg -l &#124;grep spamassassin#\u6aa2\u67e5 spamassassin \u662f\u5426\u5b89\u88dd <\/p>\n<p>#\u7de8\u8f2f\/etc\/procmailrc \u6a94\uff0c\u5728\u958b\u59cb\u7684\u5730\u65b9\u589e\u52a0\u4ee5\u4e0b\u5169\u884c\u6307\u4ee4 <br \/>vi \/etc\/procmailrc\u4ee3\u78bc: <br \/>:0fw: spamassassin.lock <br \/>* < 256000 <br \/>&#124; spamassassin <\/p>\n<p>:0 <br \/>* ^X-Spam-Level: &#92;*&#92;*&#92;*&#92;*&#92;*&#92;*&#92;*&#92;* <br \/>\/dev\/null <br \/>\u8a3b\uff1a SpamAssassin \u53ea\u8655\u7406\u90f5\u4ef6\u5927\u5c0f\u5c0f\u65bc 256000 bytes\u3002\u5982\u679c Spam-Level \u6210\u7e3e\u6709\u516b\u500b\u4ee5\u4e0a\u7684 * \ufe5d\u78ba\u5b9a\u9019\u662f spam \u90f5\u4ef6\ufe5e\u5c31\u4e1f\u6389\u3002 <\/p>\n<p>dpkg -L spamassassin &#124;more #\u6aa2\u8996\u5b89\u88dd spamassassin \u7684\u8def\u5f91\uff0c\u5c0b\u627e\u5ee3\u544a\u4fe1\u7684\u7bc4\u672c <br \/>\u5bc4\u4e00\u5c01\u5ee3\u544a\u90f5\u4ef6\u9032\u884c\u6e2c\u8a66 <br \/>mail kitty(\u7cfb\u7d71\u5167\u4e00\u4f4d\u4f7f\u7528\u8005\u7684\u5e33\u865f) < \/usr\/share\/doc\/spamassassin\/examples\/sample-spam.txt \n\ncat \/var\/log\/procmail.log <br \/>\u771f\u7684\u53ef\u4ee5\u6709\u6548\u7684\u522a\u9664\u5ee3\u544a\u90f5\u4ef6\uff0c\u771f\u68d2 ^_^ <br \/>\u53ef\u4ee5\u770b\u5230\u6709\u5ee3\u544a\u90f5\u4ef6\u88ab\/dev\/null\uff0c\u5982\u4e0b\u4ee3\u78bc: <br \/>From root@mail.tdes.chc.edu.tw&nbsp;&nbsp;Thu May 15 15:13:43 2008 <br \/>Folder: \/dev\/null <\/p>\n<p>\u5728 cat \/var\/log\/procmail.log \u8a18\u9304\u6a94\u4e2d\uff0c\u4e5f\u51fa\u73fe\u4ee5\u4e0b\u7684\u8a0a\u606f\uff0c\u4e0d\u77e5\u662f\u5426\u70ba\u8a2d\u5b9a\u6709\u8aa4\uff1f\u5df2\u5728\u9ce5\u54e5\u8ad6\u58c7\u63d0\u51fa\u554f\u984c\uff0c\u5e0c\u671b\u6709\u4eba\u53ef\u4ee5\u89e3\u60d1\u4e00\u4e0b ^_^ <br \/>procmail: Lock failure on &#8220;\/var\/mail\/xxxxx.lock&#8221; <br \/>http:\/\/phorum.vbird.idv.tw\/viewtopic.php?t=31256 <\/p>\n<p>\u7c21\u6613 Mail Server \u67b6\u8a2d &#8212; Postfix \u8a2d\u5b9a <br \/>http:\/\/linux.vbird.org\/linux_server\/0390postfix.php <\/p>\n<p>MyUnix\u8ad6\u58c7 <br \/>http:\/\/myunix.adsldns.org\/mx\/forum\/index.php <\/p>\n<p>\u6e2c\u8a66mail server\u6709\u7121\u88abrelay <br \/>http:\/\/140.111.1.22\/tanet\/spam.html <br \/>http:\/\/www.abuse.net\/relay.html <\/p>\n","protected":false},"excerpt":{"rendered":"<p>postfix \u7684\u8a2d\u5b9a http:\/\/wiki.ubuntu.org.cn\/index. &#8230; h&#038; <a href='https:\/\/www.icocean.com\/blog\/?p=1715' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[2614,2615,2608,2607,595],"class_list":["post-1715","post","type-post","status-publish","format-standard","hentry","category-email","tag-2614","tag-lts","tag-mail","tag-postfix","tag-ubuntu","category-31-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1715"}],"version-history":[{"count":0,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1715\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}