{"id":865,"date":"2010-07-28T23:24:09","date_gmt":"2010-07-28T15:24:09","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=865"},"modified":"2010-07-28T23:24:09","modified_gmt":"2010-07-28T15:24:09","slug":"postfix-cannot-receive-mails-from-gmail","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2010\/07\/28\/postfix-cannot-receive-mails-from-gmail\/","title":{"rendered":"postfix \u6536\u4e0d\u5230 gmail \u7684\u4fe1"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u5ba2\u5bb6\u8a71, hak-Hant-TW]  <\/strong><\/p><p>\u6709\u5169\u689d\u9023\u5916\u7684\u7dda\u884c\u6c92\u5171\u689d\u8def\u51fa\u53bb\uff0c\u6709\u4e00\u689d\u662f\u7d66 NAT \u5e95\u809a\u7684\u96fb\u8166\u9023\u51fa\u53bb\uff0c\u6709\u4e00\u689d\u5c31\u662f\u4f3a\u670d\u5668\u5c08\u7528\u7684\uff0c\u6bcb\u904e\u6709 NAT \u90a3\u689d\u8f03\u5feb\uff0c\u6709\u4e00\u4e9b\u670d\u52d9\u54a9\u662f\u8d70\u90a3\u689d\uff0c\u6709\u4e00\u96bb\u7db2\u5740\u7684\u4fe1\u7bb1\u54a9\u662f\u7528\u9019\u689d\u4f86\u6536\u4fe1\u3002<\/p>\n<p>\u6bcb\u904e\u5835\u5230\u4e00\u96bb\u592a\u554f\u984c\uff0c\u5c31\u662f gmail \u5bc4\u4f86\u7684\u4fe1\u6536\u6bcb\u5230(\u5f88\u50cf facebook \u7684\u54a9\u6536\u6bcb\u5230)\uff0c\u5176\u4ed6\u7684\u53c8\u6c92\u554f\u984c\uff0c\u662f\u8b1b\u5bc4\u884c\u5225\u689d\u7dda\u90a3\u96bb\u4fe1\u7bb1\u54a9\u662f\u6c92\u554f\u984c\uff0c\u770b\u4e00\u4e0b \/var\/log\/maillog \u5e95\u809a\u770b\u5230\u6309\u4ed4\u7684\u6771\u897f\uff1a<\/p>\n<pre lang=\"none\">Jul 28 02:12:25 mail postfix\/smtpd[40005]: connect from mail-iw0-f173.google.com[209.85.214.173]\r\nJul 28 02:17:25 mail postfix\/smtpd[40005]: timeout after EHLO from mail-iw0-f173.google.com[209.85.214.173]\r\nJul 28 02:17:25 mail postfix\/smtpd[40005]: disconnect from mail-iw0-f173.google.com[209.85.214.173]<\/pre>\n<p>\u770b\u8d77\u4f86\u662f gmail \u9023\u4e0a\u4f86\uff0cpostfix \u7b49 5 \u5206\u9418\u7b49\u6bcb\u5230 gmail \u9935\u6771\u897f\u7d66\u4ed6\uff0c\u4ed6\u5c31\u5207\u65b7\u9023\u7dda\u4e86\uff0c\u5c0b\u4e86\u4e00\u4e0b\u770b\u5230<a href=\"http:\/\/www.mailinglistarchive.com\/postfix-users@postfix.org\/msg33457.html\">\u9019\u7bc7 postfix mailing-list<\/a> \u6709\u5beb\u5230\u5171\u6a23\u7684\u554f\u984c\uff0c\u4ed6\u8b1b\u554f\u984c\u662f\u9632\u706b\u7246 (firewall) \u64cb\u6389\uff0c\u6309\u4ed4\u807d\u8d77\u4f86\u7576\u6709\u9053\u7406\uff0c\u6bcb\u904e\u9019\u689d\u7dda\u4e3b\u8981\u662f NAT \u7528\u7684\uff0c\u6539 firewall \u898f\u5247\u8f03\u9ebb\u7169\uff0c\u89e3\u6c7a\u65b9\u6cd5\u5c31\u8b8a\u4f5c\u63db\u4e00\u689d\u7dda\u4f86\u7528\u8f03\u5feb\u4e86\uff0c\u6539\u4e00\u4e0b DNS \u7684 MX \u5c31\u63db\u597d\u4e86\uff0c\u6bcb\u6703\u5f71\u97ff\u592a\u5927\u3002<\/p>\n<p>\u6539\u904e\u4ee5\u5f8c gmail \u5c31\u6536\u7684\u5230\u4e86\uff0cfacebook \u5c31\u4e0d\u77e5\u4e86\u770b\u6709\u9592\u518d\u4f86\u8a66\u770b\u770b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u5ba2\u5bb6\u8a71, hak-Hant-TW] \u6709\u5169\u689d\u9023\u5916\u7684\u7dda\u884c\u6c92\u5171\u689d\u8def\u51fa\u53bb\uff0c\u6709\u4e00\u689d\u662f\u7d66 NAT \u5e95\u809a\u7684\u96fb\u8166\u9023\u51fa\u53bb\uff0c\u6709\u4e00\u689d\u5c31\u662f\u4f3a\u670d\u5668\u5c08\u7528\u7684\uff0c\u6bcb\u904e\u6709 NAT \u90a3\u689d\u8f03\u5feb\uff0c\u6709\u4e00\u4e9b\u670d\u52d9\u54a9\u662f\u8d70\u90a3\u689d\uff0c\u6709\u4e00\u96bb\u7db2\u5740\u7684\u4fe1\u7bb1\u54a9\u662f\u7528\u9019\u689d\u4f86\u6536\u4fe1\u3002 \u6bcb\u904e\u5835\u5230\u4e00\u96bb\u592a\u554f\u984c\uff0c\u5c31\u662f gmail \u5bc4\u4f86\u7684\u4fe1\u6536\u6bcb\u5230(\u5f88\u50cf facebook \u7684\u54a9\u6536\u6bcb\u5230)\uff0c\u5176\u4ed6\u7684\u53c8\u6c92\u554f\u984c\uff0c\u662f\u8b1b\u5bc4\u884c\u5225\u689d\u7dda\u90a3\u96bb\u4fe1\u7bb1\u54a9\u662f\u6c92\u554f\u984c\uff0c\u770b\u4e00\u4e0b \/var\/log\/maillog \u5e95\u809a\u770b\u5230\u6309\u4ed4\u7684\u6771\u897f\uff1a Jul 28 02:12:25 mail postfix\/smtpd[40005]: connect from mail-iw0-f173.google.com[209.85.214.173] Jul 28 02:17:25 mail postfix\/smtpd[40005]: timeout after EHLO from mail-iw0-f173.google.com[209.85.214.173] Jul 28 02:17:25 mail postfix\/smtpd[40005]: disconnect from mail-iw0-f173.google.com[209.85.214.173]&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[260,263,259,261,262],"class_list":["post-865","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-facebook","tag-firewall","tag-gmail","tag-postfix","tag-smptd"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=865"}],"version-history":[{"count":1,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/865\/revisions"}],"predecessor-version":[{"id":866,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/865\/revisions\/866"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}