{"id":57273,"date":"2025-03-01T11:04:24","date_gmt":"2025-03-01T03:04:24","guid":{"rendered":"https:\/\/fwq.ai\/blog\/57273\/"},"modified":"2025-03-01T11:04:24","modified_gmt":"2025-03-01T03:04:24","slug":"linode%e7%94%b5%e5%ad%90%e9%82%ae%e4%bb%b6%e8%ae%be%e7%bd%ae%e5%85%a8%e9%9d%a2%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/57273\/","title":{"rendered":"Linode\u7535\u5b50\u90ae\u4ef6\u8bbe\u7f6e\u5168\u9762\u6307\u5357"},"content":{"rendered":"<h2>\u4ec0\u4e48\u662fLinode\uff1f<\/h2>\n<p>Linode\u662f\u4e00\u5bb6\u63d0\u4f9b\u4e91\u8ba1\u7b97\u670d\u52a1\u7684\u516c\u53f8\uff0c\u5141\u8bb8\u7528\u6237\u5728\u5176\u5e73\u53f0\u4e0a\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u670d\u52a1\u5668\u3002\u901a\u8fc7Linode\uff0c\u7528\u6237\u53ef\u4ee5\u6784\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u5e94\u7528\u548c\u670d\u52a1\uff0c\u5176\u4e2d\u5305\u62ec\u8bbe\u7f6e\u548c\u7ba1\u7406\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u3002<\/p>\n<h2>Linode\u7535\u5b50\u90ae\u4ef6\u8bbe\u7f6e\u7684\u57fa\u672c\u6b65\u9aa4<\/h2>\n<p>\u5728Linode\u4e0a\u8bbe\u7f6e\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u901a\u5e38\u6d89\u53ca\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a<\/p>\n<h3>1. \u521b\u5efaLinode\u670d\u52a1\u5668<\/h3>\n<ul>\n<li>\u767b\u5f55\u5230Linode\u8d26\u6237\u3002<\/li>\n<li>\u9009\u62e9\u201c\u521b\u5efa\u201d\u6309\u94ae\u3002<\/li>\n<li>\u9009\u62e9\u5408\u9002\u7684Linode\u8ba1\u5212\u3002<\/li>\n<li>\u9009\u62e9\u6570\u636e\u4e2d\u5fc3\u4f4d\u7f6e\u3002<\/li>\n<li>\u914d\u7f6e\u670d\u52a1\u5668\uff0c\u5e76\u9009\u62e9\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Ubuntu\u6216CentOS\uff09\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u521b\u5efaLinode\u201d\u3002<\/li>\n<\/ul>\n<h3>2. \u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6<\/h3>\n<p>\u4e3a\u4e86\u80fd\u591f\u987a\u5229\u53d1\u9001\u548c\u63a5\u6536\u7535\u5b50\u90ae\u4ef6\uff0c\u9700\u8981\u5728Linode\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e9b\u8f6f\u4ef6\uff1a<\/p>\n<ul>\n<li><strong>Postfix<\/strong>\uff1a\u4f5c\u4e3a\u90ae\u4ef6\u4f20\u8f93\u4ee3\u7406\uff08MTA\uff09\uff0c\u8d1f\u8d23\u53d1\u9001\u548c\u63a5\u6536\u90ae\u4ef6\u3002<\/li>\n<li><strong>Dovecot<\/strong>\uff1a\u4f5c\u4e3a\u90ae\u4ef6\u6295\u9012\u4ee3\u7406\uff08MDA\uff09\uff0c\u5141\u8bb8\u7528\u6237\u901a\u8fc7IMAP\u6216POP3\u8bbf\u95ee\u4ed6\u4eec\u7684\u7535\u5b50\u90ae\u4ef6\u3002<\/li>\n<li><strong>SpamAssassin<\/strong>\uff08\u53ef\u9009\uff09\uff1a\u7528\u4e8e\u8fc7\u6ee4\u5783\u573e\u90ae\u4ef6\u3002<\/li>\n<\/ul>\n<h4>\u5b89\u88c5Postfix\u548cDovecot<\/h4>\n<p>bash sudo apt-get update sudo apt-get install postfix dovecot-core dovecot-imapd<\/p>\n<h3>3. \u914d\u7f6ePostfix<\/h3>\n<ul>\n<li>\n<p>\u6253\u5f00Postfix\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a bash sudo nano \/etc\/postfix\/main.cf<\/p>\n<\/li>\n<li>\n<p>\u4fee\u6539\u4ee5\u4e0b\u914d\u7f6e\u9879\uff1a<\/p>\n<ul>\n<li><code>myhostname<\/code>\uff1a\u8bbe\u7f6e\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u57df\u540d\u3002<\/li>\n<li><code>mydomain<\/code>\uff1a\u8bbe\u7f6e\u4e3a\u4f60\u7684\u57df\u540d\u3002<\/li>\n<li><code>mydestination<\/code>\uff1a\u8bbe\u7f6e\u4e3a <code>$myhostname, localhost.$mydomain, localhost, $mydomain<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u914d\u7f6eDovecot<\/h3>\n<ul>\n<li>\n<p>\u6253\u5f00Dovecot\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a bash sudo nano \/etc\/dovecot\/dovecot.conf<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a bash mail_location = maildir:~\/Maildir service imap { client_limit = 100}<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>5. \u8bbe\u7f6e\u9632\u706b\u5899<\/h3>\n<p>\u786e\u4fdd\u9632\u706b\u5899\u5141\u8bb8\u7535\u5b50\u90ae\u4ef6\u6d41\u91cf\u901a\u8fc7\uff1a bash sudo ufw allow 25\/tcp # SMTP sudo ufw allow 143\/tcp # IMAP sudo ufw allow 587\/tcp # SMTP Submission<\/p>\n<h3>6. \u914d\u7f6eDNS\u8bb0\u5f55<\/h3>\n<p>\u4e3a\u4e86\u8ba9\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u6b63\u5e38\u5de5\u4f5c\uff0c\u4f60\u9700\u8981\u5728\u57df\u540d\u63d0\u4f9b\u5546\u7684\u63a7\u5236\u9762\u677f\u4e2d\u6dfb\u52a0\u4ee5\u4e0bDNS\u8bb0\u5f55\uff1a<\/p>\n<ul>\n<li><strong>A\u8bb0\u5f55<\/strong>\uff1a\u5c06\u57df\u540d\u6307\u5411Linode\u7684IP\u5730\u5740\u3002<\/li>\n<li><strong>MX\u8bb0\u5f55<\/strong>\uff1a\u8bbe\u7f6e\u90ae\u4ef6\u4ea4\u6362\u8bb0\u5f55\uff0c\u6307\u5411\u4f60\u7684\u670d\u52a1\u5668\u3002<\/li>\n<li><strong>SPF\u8bb0\u5f55<\/strong>\uff1a\u5b9a\u4e49\u54ea\u4e9bIP\u5730\u5740\u53ef\u4ee5\u4ee3\u8868\u4f60\u7684\u57df\u540d\u53d1\u9001\u90ae\u4ef6\u3002<\/li>\n<\/ul>\n<h3>7. \u91cd\u542f\u670d\u52a1<\/h3>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u8bb0\u5f97\u91cd\u542fPostfix\u548cDovecot\u670d\u52a1\uff1a bash sudo systemctl restart postfix sudo systemctl restart dovecot<\/p>\n<h2>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h2>\n<h3>Linode\u4e0a\u8bbe\u7f6e\u7535\u5b50\u90ae\u4ef6\u9700\u8981\u591a\u4e45\uff1f<\/h3>\n<p>\u8bbe\u7f6eLinode\u7535\u5b50\u90ae\u4ef6\u901a\u5e38\u9700\u898130\u5206\u949f\u52301\u5c0f\u65f6\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u7528\u6237\u7684\u719f\u6089\u7a0b\u5ea6\u3002<\/p>\n<h3>\u5982\u4f55\u9a8c\u8bc1\u6211\u7684\u7535\u5b50\u90ae\u4ef6\u8bbe\u7f6e\u662f\u5426\u6210\u529f\uff1f<\/h3>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u9a8c\u8bc1\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528Telnet\u6216\u5176\u4ed6\u7535\u5b50\u90ae\u4ef6\u5ba2\u6237\u7aef\u6d4b\u8bd5SMTP\u548cIMAP\u8fde\u63a5\u3002<\/li>\n<li>\u53d1\u9001\u6d4b\u8bd5\u90ae\u4ef6\u5230\u5176\u4ed6\u90ae\u7bb1\u5e76\u786e\u8ba4\u80fd\u5426\u6536\u5230\u3002<\/li>\n<\/ul>\n<h3>Linode\u63d0\u4f9b\u4e86\u7535\u5b50\u90ae\u4ef6\u6258\u7ba1\u670d\u52a1\u5417\uff1f<\/h3>\n<p>Linode\u672c\u8eab\u4e0d\u63d0\u4f9b\u7535\u5b50\u90ae\u4ef6\u6258\u7ba1\u670d\u52a1\uff0c\u4f46\u4f60\u53ef\u4ee5\u5728\u5176\u4e0a\u914d\u7f6e\u548c\u7ba1\u7406\u81ea\u5df1\u7684\u90ae\u4ef6\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u6211\u9700\u8981\u652f\u4ed8\u989d\u5916\u8d39\u7528\u6765\u4f7f\u7528Linode\u7684\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u5417\uff1f<\/h3>\n<p>\u8bbe\u7f6e\u90ae\u4ef6\u670d\u52a1\u53ea\u9700\u652f\u4ed8Linode\u670d\u52a1\u5668\u7684\u8d39\u7528\uff0c\u6ca1\u6709\u989d\u5916\u7684\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u8d39\u7528\u3002<\/p>\n<h3>\u5982\u4f55\u9632\u6b62\u6211\u7684\u90ae\u4ef6\u88ab\u6807\u8bb0\u4e3a\u5783\u573e\u90ae\u4ef6\uff1f<\/h3>\n<p>\u786e\u4fdd\u914d\u7f6eSPF\u3001DKIM\u548cDMARC\u8bb0\u5f55\uff0c\u5e76\u5b9a\u671f\u6e05\u7406\u4f60\u7684\u90ae\u4ef6\u5217\u8868\uff0c\u4ee5\u51cf\u5c11\u88ab\u6807\u8bb0\u4e3a\u5783\u573e\u90ae\u4ef6\u7684\u98ce\u9669\u3002<\/p>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u5728Linode\u4e0a\u6210\u529f\u8bbe\u7f6e\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u3002\u65e0\u8bba\u662f\u4e2a\u4eba\u7528\u9014\u8fd8\u662f\u5546\u4e1a\u9700\u6c42\uff0cLinode\u63d0\u4f9b\u7684\u7075\u6d3b\u6027\u548c\u63a7\u5236\u80fd\u529b\u90fd\u4f7f\u5176\u6210\u4e3a\u4e00\u4e2a\u7406\u60f3\u7684\u9009\u62e9\u3002\u53ea\u9700\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5e76\u786e\u4fddDNS\u914d\u7f6e\u6b63\u786e\uff0c\u60a8\u5c31\u53ef\u4ee5\u987a\u5229\u7ba1\u7406\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fLinode\uff1f Linode\u662f\u4e00\u5bb6\u63d0\u4f9b\u4e91\u8ba1\u7b97\u670d\u52a1\u7684\u516c\u53f8\uff0c\u5141\u8bb8\u7528\u6237\u5728\u5176\u5e73\u53f0\u4e0a\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u670d\u52a1\u5668\u3002\u901a\u8fc7Linode\uff0c\u7528\u6237\u53ef\u4ee5\u6784\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u5e94\u7528\u548c\u670d\u52a1\uff0c\u5176\u4e2d\u5305\u62ec\u8bbe\u7f6e\u548c\u7ba1\u7406\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u3002 Linode\u7535\u5b50\u90ae\u4ef6\u8bbe\u7f6e\u7684\u57fa\u672c\u6b65\u9aa4 \u5728Linode\u4e0a\u8bbe\u7f6e\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u901a\u5e38\u6d89\u53ca\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a 1. \u521b\u5efaLinode\u670d\u52a1\u5668 \u767b\u5f55\u5230Linode\u8d26\u6237\u3002 \u9009\u62e9\u201c\u521b\u5efa\u201d\u6309\u94ae\u3002 \u9009\u62e9\u5408\u9002\u7684Linode\u8ba1\u5212\u3002 \u9009\u62e9\u6570\u636e\u4e2d\u5fc3\u4f4d\u7f6e\u3002 \u914d\u7f6e\u670d\u52a1\u5668\uff0c\u5e76\u9009\u62e9\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Ubuntu\u6216CentOS\uff09\u3002 \u70b9\u51fb\u201c\u521b\u5efaLinode\u201d\u3002 2. \u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6 \u4e3a\u4e86\u80fd\u591f\u987a\u5229\u53d1\u9001\u548c\u63a5\u6536\u7535\u5b50\u90ae\u4ef6\uff0c\u9700\u8981\u5728Linode\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e9b\u8f6f\u4ef6\uff1a Postfix\uff1a\u4f5c\u4e3a\u90ae\u4ef6\u4f20\u8f93\u4ee3\u7406\uff08MTA\uff09\uff0c\u8d1f\u8d23\u53d1\u9001\u548c\u63a5\u6536\u90ae\u4ef6\u3002 Dovecot\uff1a\u4f5c\u4e3a\u90ae\u4ef6\u6295\u9012\u4ee3\u7406\uff08MDA\uff09\uff0c\u5141\u8bb8\u7528\u6237\u901a\u8fc7IMAP\u6216POP3\u8bbf\u95ee\u4ed6\u4eec\u7684\u7535\u5b50\u90ae\u4ef6\u3002 SpamAssassin\uff08\u53ef\u9009\uff09\uff1a\u7528\u4e8e\u8fc7\u6ee4\u5783\u573e\u90ae\u4ef6\u3002 \u5b89\u88c5Postfix\u548cDovecot bash sudo apt-get update sudo apt-get install postfix dovecot-core dovecot-imapd 3. \u914d\u7f6ePostfix \u6253\u5f00Postfix\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a bash sudo nano \/etc\/postfix\/main.cf \u4fee\u6539\u4ee5\u4e0b\u914d\u7f6e\u9879\uff1a myhostname\uff1a\u8bbe\u7f6e\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u57df\u540d\u3002 mydomain\uff1a\u8bbe\u7f6e\u4e3a\u4f60\u7684\u57df\u540d\u3002 mydestination\uff1a\u8bbe\u7f6e\u4e3a $myhostname, localhost.$mydomain, localhost, $mydomain\u3002 \u4fdd\u5b58\u5e76\u9000\u51fa\u3002 4. \u914d\u7f6eDovecot \u6253\u5f00Dovecot\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a bash sudo nano \/etc\/dovecot\/dovecot.conf \u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a bash mail_location [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-57273","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/57273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=57273"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/57273\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=57273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=57273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=57273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}