{"id":100,"date":"2005-05-26T14:41:18","date_gmt":"2005-05-26T06:41:18","guid":{"rendered":"http:\/\/yesybl.org\/blogcn\/2005\/05\/26\/100\/"},"modified":"2005-05-26T14:41:18","modified_gmt":"2005-05-26T06:41:18","slug":"iouamuttfetchmailsendmailaaoa-2","status":"publish","type":"post","link":"https:\/\/www.yesybl.com\/?p=100","title":{"rendered":"\u6211\u7684mutt+fetchmail+sendmail\u914d\u7f6e"},"content":{"rendered":"<p>&#160; &#160; \u4e4b\u524d\uff0c\u5728LINUX\u4e0b\u603b\u662f\u4f7f\u7528\u4e0d\u60ef\u5404\u79cdELECTRIC MAIL CLIENT\uff0c\u6240\u4ee5\u4e00\u76f4\u4f7f\u7528web\u65b9\u5f0f\u6536\u53d1\u90ae\u4ef6\uff0c\u4eca\u5929\u7ec8\u4e8e\u4e0b\u5b9a\u51b3\u5fc3\u4f7f\u7528MUTT+FETCHMAIL+SENDMAIL\u6765\u5b8c\u6210\u65e5\u5e38\u7684\u90ae\u4ef6\u5904\u7406\u3002<br \/>\n&#160; &#160; \u7cfb\u7edf\u8fd8\u662fRed Hat 9,\u5728\u5b89\u88c5\u7684\u65f6\u5019\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86mutt\u3001fetchmail and sendmail.\u6240\u4ee5\u53ea\u662f\u5728\u914d\u7f6e\u4e0a\u4e0b\u4e86\u4e9b\u5de5\u592b\uff0c\u73b0\u5728\u5199\u51fa\u914d\u7f6e\u6587\u4ef6\u7684\u914d\u7f6e\u3002<br \/>\nMUTT:<br \/>\n&#160; \u5728~\/\u4e0b\u8d77\u914d\u7f6e\u4f5c\u7528\u7684\u6587\u4ef6\u662f.muttrc,\u5177\u4f53\u5185\u5bb9\u5982\u4e0b\uff1a<br \/>\n=============================================================================<br \/>\nset header=no&#160; #\u8bbe\u7f6e\u56de\u4fe1\u65f6\uff0c\u5f15\u7528\u539f\u6587\u65f6\u4e0d\u52a0\u5165\u539f\u90ae\u4ef6\u5934\u4fe1\u606f<br \/>\nauto_view text\/html #\u78b0\u5230\u8d85\u6587\u672c\u90ae\u4ef6\u65f6\uff0c\u4f1a\u81ea\u52a8\u8c03\u7528.mailcap\u4e2d\u5b9a\u4e49\u7684\u6d4f\u89c8\u5668\u8fdb\u884c\u6d4f\u89c8<br \/>\nset move=no #\u5728\u9000\u51faMUTT\u65f6\uff0c\u7cfb\u7edf\u4e0d\u63d0\u95ee\u662f\u5426\u5c06\u5df2\u8bfb\u90ae\u4ef6\u79fb\u5230mbox\u4e2d\u3002<br \/>\nset ascii_chars=yes #\u5f53 Mutt \u7528 thread \u65b9\u5f0f\u663e\u793a\u65f6\uff0c\u662f\u5426\u7528\u7eaf ascii \u8868\u793a\u6811\u72b6\u5217\u8868\u3002<br \/>\nset include&#160; #\u8bbe\u7f6e\u56de\u4fe1\u65f6\u81ea\u52a8\u5305\u542b\u539f\u6587\u3002<br \/>\nset indent_str=&quot;&gt;&quot; #\u56de\u4fe1\u7684\u5f15\u6587\u4e4b\u524d\u63d2\u5165\u54ea\u4e2a\u7b26\u53f7\uff1f<br \/>\nmy_hdr From: NICKNAME&lt;USERNAME@Domainname.org&gt; #\u8bbe\u7f6e\u663e\u793a\u53d1\u4ef6\u4eba\u540d\u79f0\u548c\u53d1\u4ef6\u5730\u5740\uff08<span style=\"color: rgb(255, 0, 0);\">\u91cd\u8981<\/span>\uff09<br \/>\nmy_hdr Reply-To: nickname&lt;username@domainname.org&gt; #\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u56de\u590d\u5730\u5740<br \/>\nset pager_stop #\u5728\u9605\u8bfb\u5b8c\u4e00\u5c01\u90ae\u4ef6\u540e\uff0c\u7ee7\u7eed\u5411\u4e0b\u9605\u8bfb\u4e0d\u4f1a\u8fdb\u5165\u4e0b\u4e00\u5c01\u90ae\u4ef6\u8fdb\u884c\u9605\u8bfb\u3002<br \/>\nset record=&quot;~\/Mail\/sent-mail&quot; #\u8bbe\u7f6e\u4e86\u4fdd\u5b58\u53d1\u9001\u90ae\u4ef6\u7684\u90ae\u4ef6\u7bb1<br \/>\nset charset=&quot;gb2312&quot; #\u8bbe\u7f6e\u9ed8\u8ba4\u7ec8\u7aef\u7f16\u7801\u3002<br \/>\nset send_charset=&quot;us-ascii:iso-8859-1:gb2312:utf-8&quot; #\u8bbe\u7f6e\u53d1\u9001\u90ae\u4ef6\u4f7f\u7528\u7684\u5b57\u7b26\u96c6<br \/>\nset wait_key=yes #\u8c03\u7528\u5b8c\u4e00\u4e2a\u5916\u90e8\u7a0b\u5e8f\uff0c\u7ed3\u675f\u540e\uff0c\u7ed9\u7528\u6237\u4e00\u4e2a\u63d0\u793a\u4fe1\u606f\uff0c\u5e76\u7b49\u5f85\u6309\u952e\u8fd4\u56de\u3002<br \/>\nset noconfirmappend #\u5f53\u4f60\u8981\u628a\u4fe1\u4ef6\u5b58\u5230\u53e6\u4e00\u4e2a\u4fe1\u7bb1\uff0c\u800c\u8fd9\u4e2a\u4fe1\u7bb1\u5df2\u7ecf\u5b58\u5728\u65f6\uff0c\u662f\u5426\u63d0\u793a\u9644\u52a0\uff1f<br \/>\nset edit_headers=no #\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u7f16\u8f91\u90ae\u4ef6\u5934\u4fe1\u606f\u3002<br \/>\nset pager_index_lines=4 #\u8bbe\u7f6e\u5728\u5206\u5c4f\u9605\u8bfb\u90ae\u4ef6\u65f6\uff0c\u90ae\u4ef6\u6807\u9898\u5c4f\u6240\u5360\u7684\u884c\u6570\u3002<br \/>\ncharset-hook ^us-ascii$ gb2312 #\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5b57\u7b26\u96c6\u7684\u522b\u540d\u66ff\u4ee3\uff0c\u7528gb2312\u4ee3\u66ffus-ascii\u8fdb\u884c\u7f16\u7801\u663e\u793a<br \/>\ncharset-hook ^iso-8859-1% gb2312 #\u5c06iso-8859-1\u7f16\u7801\u7684\u90ae\u4ef6\u7528gb2312\u8fdb\u884c\u7f16\u7801\u663e\u793a\u3002<br \/>\n# charset-hook .* gb2312<br \/>\ncharset-hook !utf-8 gb2312 #\u7981\u6b62\u5c06utf-8\u8fdb\u884cgb2312\u7684\u522b\u540d\u53d8\u6362\u3002<br \/>\n=============================================================================<\/p>\n<p>Fetchmail:<br \/>\n&#160;&#160; Fetchmail\u7528\u4e8e\u5c06\u5176\u5b83\u652f\u6301pop3\u7684\u90ae\u4ef6\u670d\u52a1\u5668\u4e0a\u53d6\u56de\u90ae\u4ef6\u5e76\u4fdd\u5b58\u5230\u672c\u5730\u7684spool\u4e2d\u3002\u5b83\u7684\u914d\u7f6e\u6587\u4ef6\u4e3a<br \/>\n~\/.fetchmail,\u5728\u914d\u7f6e\u597d\u540e\uff0c\u8fd8\u9700\u8981\u5728shell\u7684\u542f\u52a8\u811a\u672c\u91cc\u5199\u5165\u542f\u52a8fetchmail\u7684\u6307\u4ee4\u3002<br \/>\n.fetchmail\u6587\u4ef6\u7684\u5185\u5bb9\u4e3a\uff1a<br \/>\n=============================================================================<br \/>\nset&#160;&#160;&#160;&#160; daemon 60&#160; #\u8bbe\u7f6e\u6bcf\u8fc760\u79d2\u53d6\u4e00\u6b21\u90ae\u4ef6<br \/>\npoll&#160;&#160;&#160; st.gsau.edu.cn #\u8bbe\u7f6e\u90ae\u4ef6\u670d\u52a1\u5668\u7684\u5730\u5740<br \/>\nuidl&#160;&#160; #\u8bbe\u7f6e\u6bcf\u6b21\u53ea\u53d6\u65b0\u90ae\u4ef6<br \/>\nprotocol&#160;&#160;&#160;&#160;&#160;&#160;&#160; POP3 #\u53d6\u4fe1\u534f\u8bae\u4e3aPOP3<br \/>\nuser&#160;&#160;&#160; &quot;username&quot; #\u7528\u6237\u540d<br \/>\npassword&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;password&quot; #\u767b\u9646\u53e3\u4ee4<br \/>\nkeep&#160;&#160; #\u53d6\u5b8c\u90ae\u4ef6\u540e\u4fdd\u7559\u90ae\u4ef6\u5728\u670d\u52a1\u5668\u4e0a\u3002<br \/>ssl #\u5bf9\u4e8e\u542f\u7528\u4e86SSL\u52a0\u5bc6\u7684POP3\u670d\u52a1\u5668\u9700\u8981\u52a0\u5165\u8fd9\u6761\u89c4\u5219\uff0c\u6bd4\u5982GMAIL\u3002<br \/>\n=============================================================================<\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/www.yesybl.com\/?p=100\" rel=\"bookmark\" title=\"Permalink to \u6211\u7684mutt+fetchmail+sendmail\u914d\u7f6e\"><p>&#160; &#160; \u4e4b\u524d\uff0c\u5728LINUX\u4e0b\u603b\u662f\u4f7f\u7528\u4e0d\u60ef\u5404\u79cdELECTRIC MAIL CLIENT\uff0c\u6240\u4ee5\u4e00\u76f4\u4f7f\u7528web\u65b9\u5f0f\u6536\u53d1\u90ae\u4ef6\uff0c\u4eca\u5929\u7ec8\u4e8e\u4e0b\u5b9a\u51b3\u5fc3\u4f7f\u7528MUTT+FETCHMAIL+SENDMAIL\u6765\u5b8c\u6210\u65e5\u5e38\u7684\u90ae\u4ef6\u5904\u7406\u3002 &#160; &#160; \u7cfb\u7edf\u8fd8\u662fRed Hat 9,\u5728\u5b89\u88c5\u7684\u65f6\u5019\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86mutt\u3001fetchmail and sendmail.\u6240\u4ee5\u53ea\u662f\u5728\u914d\u7f6e\u4e0a\u4e0b\u4e86\u4e9b\u5de5\u592b\uff0c\u73b0\u5728\u5199\u51fa\u914d\u7f6e\u6587\u4ef6\u7684\u914d\u7f6e\u3002 MUTT: &#160; \u5728~\/\u4e0b\u8d77\u914d\u7f6e\u4f5c\u7528\u7684\u6587\u4ef6\u662f.muttrc,\u5177\u4f53\u5185\u5bb9\u5982\u4e0b\uff1a ============================================================================= set header=no&#160; #\u8bbe\u7f6e\u56de\u4fe1\u65f6\uff0c\u5f15\u7528\u539f\u6587\u65f6\u4e0d\u52a0\u5165\u539f\u90ae\u4ef6\u5934\u4fe1\u606f auto_view text\/html #\u78b0\u5230\u8d85\u6587\u672c\u90ae\u4ef6\u65f6\uff0c\u4f1a\u81ea\u52a8\u8c03\u7528.mailcap\u4e2d\u5b9a\u4e49\u7684\u6d4f\u89c8\u5668\u8fdb\u884c\u6d4f\u89c8 set move=no #\u5728\u9000\u51faMUTT\u65f6\uff0c\u7cfb\u7edf\u4e0d\u63d0\u95ee\u662f\u5426\u5c06\u5df2\u8bfb\u90ae\u4ef6\u79fb\u5230mbox\u4e2d\u3002 set ascii_chars=yes #\u5f53 Mutt \u7528 thread \u65b9\u5f0f\u663e\u793a\u65f6\uff0c\u662f\u5426\u7528\u7eaf ascii \u8868\u793a\u6811\u72b6\u5217\u8868\u3002 set include&#160; #\u8bbe\u7f6e\u56de\u4fe1\u65f6\u81ea\u52a8\u5305\u542b\u539f\u6587\u3002 set indent_str=&quot;&gt;&quot; #\u56de\u4fe1\u7684\u5f15\u6587\u4e4b\u524d\u63d2\u5165\u54ea\u4e2a\u7b26\u53f7\uff1f my_hdr From: NICKNAME&lt;USERNAME@Domainname.org&gt; #\u8bbe\u7f6e\u663e\u793a\u53d1\u4ef6\u4eba\u540d\u79f0\u548c\u53d1\u4ef6\u5730\u5740\uff08\u91cd\u8981\uff09 my_hdr Reply-To: nickname&lt;username@domainname.org&gt; #\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u56de\u590d\u5730\u5740 set pager_stop #\u5728\u9605\u8bfb\u5b8c\u4e00\u5c01\u90ae\u4ef6\u540e\uff0c\u7ee7\u7eed\u5411\u4e0b\u9605\u8bfb\u4e0d\u4f1a\u8fdb\u5165\u4e0b\u4e00\u5c01\u90ae\u4ef6\u8fdb\u884c\u9605\u8bfb\u3002 set record=&quot;~\/Mail\/sent-mail&quot; #\u8bbe\u7f6e\u4e86\u4fdd\u5b58\u53d1\u9001\u90ae\u4ef6\u7684\u90ae\u4ef6\u7bb1 set [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pa4z28-1C","_links":{"self":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":0,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}