{"id":1493,"date":"2011-08-30T21:12:54","date_gmt":"2011-08-30T13:12:54","guid":{"rendered":"http:\/\/www.jpuyy.com\/blog\/?p=1493"},"modified":"2012-11-13T16:33:51","modified_gmt":"2012-11-13T08:33:51","slug":"debian-exim4","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=1493","title":{"rendered":"debian exim4\u914d\u7f6e\u53d1\u90ae\u4ef6\uff5c\u65e5\u5fd7\u7684\u9b54\u529b"},"content":{"rendered":"<p>linux\u5c31\u662f\u597d\uff0c\u65e5\u5fd7\u5bf9\u4e8e\u89e3\u51b3\u95ee\u9898\u6709\u7edd\u5bf9\u7684\u9b54\u529b<\/p>\n<p>\u50cf\u795e\u5947\u9b54\u68d2\uff0c\u76f4\u6307\u8981\u70b9<\/p>\n<p>\u5f88\u591a\u5929\u4ee5\u524d\u5c31\u914d\u4e86\u4e00\u4e0bexim4\uff0c\u53d1\u90ae\u4ef6\u6d4b\u8bd5\u4e00\u4e0b\u6ca1\u6536\u5230\uff0c\u7528\u7684\u4e0d\u591a\u4e5f\u6ca1\u6709\u7ee7\u7eed\u5f04<\/p>\n<p>\u73b0\u5728\u7528\u7684\u5230\u4e86\uff0c\u6240\u4ee5\u8010\u4e0b\u5fc3\u5f04\u4e86\u4e00\u4e0b<\/p>\n<p>exim4\u91cd\u65b0\u914d\u7f6e\u547d\u4ee4<\/p>\n<pre>dpkg-reconfigure exim4-config<\/pre>\n<p>\u90ae\u4ef6\u7cfb\u7edf\u8bbe\u7f6e\u7684\u5e38\u89c1\u7c7b\u578b\uff1a\u4e92\u8054\u7f51\u7ad9\uff1b\u76f4\u63a5\u901a\u8fc7 SMTP \u53d1\u9001\u6216\u63a5\u6536\u4fe1\u4ef6<br \/>\n\u7cfb\u7edf\u90ae\u4ef6\u540d\u79f0\uff1a(\u6ce8\u610f\uff0c\u4e00\u5b9a\u8981\u586b\u4e00\u4e2a\u80fd\u89e3\u6790\u7684\u57df\u540d\uff0c\u6211\u5c31\u662f\u5728\u8fd9\u5403\u4e86\u4e8f): xxx.com<br \/>\n\u8981\u76d1\u542c\u5165\u7ad9 SMTP \u8fde\u63a5\u7684 IP \u5730\u5740\uff1a(\u7559\u7a7a)<br \/>\n\u5176\u5b83\u53ef\u63a5\u6536\u90ae\u4ef6\u7684\u76ee\u7684\u5730\u5740\uff1alocalhost.localdomain:xxx.com<br \/>\n\u4e3a\u4e0b\u5217\u57df\u540d\u8fdb\u884c\u90ae\u4ef6\u4e2d\u8f6c (relay)\uff1a(\u7559\u7a7a)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<br \/>\n\u4e3a\u4e0b\u5217\u4e3b\u673a\u8fdb\u884c\u90ae\u4ef6\u4e2d\u8f6c (relay)\uff1a(\u7559\u7a7a)<br \/>\n\u4fdd\u6301\u6700\u5c0f DNS \u67e5\u8be2\u91cf\u5417 (\u6309\u9700\u62d4\u53f7\uff0cDial-on-Demand)\uff1f&lt;\u5426&gt;<br \/>\n\u672c\u5730\u4fe1\u4ef6\u7684\u6295\u9012\u65b9\u5f0f\uff1a\/var\/mail\/ \u4e2d\u7684 mbox \u683c\u5f0f<br \/>\n\u5c06\u8bbe\u7f6e\u6587\u4ef6\u5206\u62c6\u6210\u5c0f\u6587\u4ef6\u5417\uff1f&lt;\u5426&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>\u56de\u5934\u8bf4\u4e0a\u9762\u7684\u7cfb\u7edf\u90ae\u4ef6\u540d\u79f0\uff0c\u6709vps\u7684\u6700\u597d\u662f\u586b\u4e0a\u4f60\u7684\u57df\u540d\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u88ab\u6536\u4ef6\uff08\u6bd4\u5982\u8bf4163\uff09\u62e6\u622a\u4e86<\/p>\n<p>\u5f53\u65f6\u53d1\u4fe1\u4e0d\u6210\u529f\u65f6\uff0c\u5148\u53bb\u770b\u4e00\u4e0b\u53d1\u4fe1\u65e5\u5fd7\uff0c\u5df2\u7ecf277M\u4e86\uff0c\u5904\u7406\u8fd9\u4e2a\u5148\u653e\u5230\u540e\u9762\uff0c\u5148\u8bf4\u53d1\u4fe1\u5931\u8d25\u3002<\/p>\n<p>This message was created automatically by mail delivery software.<\/p>\n<p>A message that you sent could not be delivered to one or more of its<br \/>\nrecipients. This is a permanent error. The following address(es) failed:<\/p>\n<p>xxx@163.com<br \/>\nSMTP error from remote mail server after MAIL FROM:&lt;xxx@debian&gt;:<br \/>\nhost 163mx02.mxmail.netease.com [220.181.12.73]:<br \/>\n550 MI:IMF mx23,ScCowGCJ2VFen1xOnm2kAQ&#8211;.1082S2 1314692958 http:\/\/mail.163.com\/help\/help_spam_16.htm?ip=58.216.234.50&amp;hostid=mx2<br \/>\n3&amp;time=1314692958<\/p>\n<p>\u9519\u8bef\u4ee3\u7801\uff1a550 MI:IMF<\/p>\n<p>\u6253\u5f00\u540e\u9762\u7684\u7f51\u5740\uff0c\u627e\u5230\u89e3\u91ca\uff1a<\/p>\n<p>550 MI:IMF \u53d1\u4fe1\u4eba\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4e0d\u5408\u89c4\u8303\u3002\u8bf7\u53c2\u8003<a href=\"http:\/\/www.rfc-editor.org\/\">http:\/\/www.rfc-editor.org\/<\/a>\u5173\u4e8e\u7535\u5b50\u90ae\u4ef6\u89c4\u8303\u7684\u5b9a\u4e49\uff1b<\/p>\n<p>\u6240\u4ee5\u95ee\u9898\u51fa\u5728\u57df\u540d\u4e0a\uff0c\u6539\u597d\u57df\u540d\uff0c\u95ee\u9898\u89e3\u51b3<\/p>\n<p>\u770b\u6765\u51fa\u95ee\u9898\u5148\u627e\u65e5\u5fd7\u662f\u89e3\u51b3\u95ee\u9898\u7684\u7edd\u4f73\u529e\u6cd5<\/p>\n<p>Exim4\u7684log\u8bb0\u5f55\u4f7f\u7528\u81ea\u5df1\u7684log\u76ee\u5f55\uff1a\/var\/log\/exim4\/<\/p>\n<p>update-exim4.conf\u7684\u914d\u7f6e\u6587\u4ef6\u4e3a \uff1a \/etc\/exim4\/update-exim4.conf.conf<\/p>\n<p>\u53d1\u9001\u90ae\u4ef6\u7684\u57df\u540d\u4fdd\u5b58\u5728\uff1a \/etc\/mailname<\/p>\n<p>\u6d4b\u8bd5Exim4\u7684\u914d\u7f6e\u4fe1\u606f\u548c\u67e5\u770b\u6709\u5426\u6709\u9519\uff1aexim4 -bV<\/p>\n<p>\u6709\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u9047\u5230exim4\u629b\u51fadebian ALERT: exim paniclog \/var\/log\/exim4\/paniclog has non-zero size, mail system possibly broken\u9519\u8bef\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u65b9\u6cd5\u52a0\u4ee5\u89e3\u51b3\u3002<br \/>\n1\u3001\u505c\u6b62exim4 # \/etc\/init.d\/exim4 stop<br \/>\n2\u3001\u5220\u9664paniclog\u6587\u4ef6 # rm \/var\/log\/exim4\/paniclog<br \/>\n3\u3001\u542f\u52a8exim4 # \/etc\/init.d\/exim4 start<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u5c31\u662f\u597d\uff0c\u65e5\u5fd7\u5bf9\u4e8e\u89e3\u51b3\u95ee\u9898\u6709\u7edd\u5bf9\u7684\u9b54\u529b \u50cf\u795e\u5947\u9b54\u68d2\uff0c\u76f4\u6307\u8981\u70b9 \u5f88\u591a\u5929\u4ee5\u524d\u5c31\u914d\u4e86\u4e00\u4e0bexim4\uff0c\u53d1\u90ae\u4ef6\u6d4b\u8bd5\u4e00\u4e0b\u6ca1\u6536\u5230\uff0c\u7528\u7684\u4e0d\u591a\u4e5f\u6ca1\u6709\u7ee7\u7eed\u5f04 \u73b0\u5728\u7528\u7684\u5230\u4e86\uff0c\u6240\u4ee5\u8010\u4e0b\u5fc3\u5f04\u4e86\u4e00\u4e0b exim4\u91cd\u65b0\u914d\u7f6e\u547d\u4ee4 dpkg-reconfigure exim4-config \u90ae\u4ef6\u7cfb\u7edf\u8bbe\u7f6e\u7684\u5e38\u89c1\u7c7b\u578b\uff1a\u4e92\u8054\u7f51\u7ad9\uff1b\u76f4\u63a5\u901a\u8fc7 SMTP \u53d1\u9001\u6216\u63a5\u6536\u4fe1\u4ef6 \u7cfb\u7edf\u90ae\u4ef6\u540d\u79f0\uff1a(\u6ce8\u610f\uff0c\u4e00\u5b9a\u8981\u586b\u4e00\u4e2a\u80fd\u89e3\u6790\u7684\u57df\u540d\uff0c\u6211\u5c31\u662f\u5728\u8fd9\u5403\u4e86\u4e8f): xxx.com \u8981\u76d1\u542c\u5165\u7ad9 SMTP \u8fde\u63a5\u7684 IP \u5730\u5740\uff1a(\u7559\u7a7a) \u5176\u5b83\u53ef\u63a5\u6536\u90ae\u4ef6\u7684\u76ee\u7684\u5730\u5740\uff1alocalhost.localdomain:xxx.com \u4e3a\u4e0b\u5217\u57df\u540d\u8fdb\u884c\u90ae\u4ef6\u4e2d\u8f6c (relay)\uff1a(\u7559\u7a7a)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502 \u4e3a\u4e0b\u5217\u4e3b\u673a\u8fdb\u884c\u90ae\u4ef6\u4e2d\u8f6c (relay)\uff1a(\u7559\u7a7a) \u4fdd\u6301\u6700\u5c0f DNS \u67e5\u8be2\u91cf\u5417 (\u6309\u9700\u62d4\u53f7\uff0cDial-on-Demand)\uff1f&lt;\u5426&gt; \u672c\u5730\u4fe1\u4ef6\u7684\u6295\u9012\u65b9\u5f0f\uff1a\/var\/mail\/ \u4e2d\u7684 mbox \u683c\u5f0f \u5c06\u8bbe\u7f6e\u6587\u4ef6\u5206\u62c6\u6210\u5c0f\u6587\u4ef6\u5417\uff1f&lt;\u5426&gt; &nbsp; \u56de\u5934\u8bf4\u4e0a\u9762\u7684\u7cfb\u7edf\u90ae\u4ef6\u540d\u79f0\uff0c\u6709vps\u7684\u6700\u597d\u662f\u586b\u4e0a\u4f60\u7684\u57df\u540d\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u88ab\u6536\u4ef6\uff08\u6bd4\u5982\u8bf4163\uff09\u62e6\u622a\u4e86 \u5f53\u65f6\u53d1\u4fe1\u4e0d\u6210\u529f\u65f6\uff0c\u5148\u53bb\u770b\u4e00\u4e0b\u53d1\u4fe1\u65e5\u5fd7\uff0c\u5df2\u7ecf277M\u4e86\uff0c\u5904\u7406\u8fd9\u4e2a\u5148\u653e\u5230\u540e\u9762\uff0c\u5148\u8bf4\u53d1\u4fe1\u5931\u8d25\u3002 This message was created automatically by mail delivery software. A message that you sent could not be delivered to one [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23],"class_list":["post-1493","post","type-post","status-publish","format-standard","hentry","category-linux","tag-summary"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1493"}],"version-history":[{"count":7,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1493\/revisions"}],"predecessor-version":[{"id":1497,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1493\/revisions\/1497"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}