{"id":396,"date":"2011-02-11T15:28:05","date_gmt":"2011-02-11T07:28:05","guid":{"rendered":"http:\/\/julyclyde.org\/?p=396"},"modified":"2011-02-11T18:11:12","modified_gmt":"2011-02-11T10:11:12","slug":"postfix-%e7%89%b9%e6%80%a7%e8%a2%ab%e6%bb%a5%e7%94%a8%ef%bc%8c%e5%af%bc%e8%87%b4%e6%94%b6%e5%88%b0%e5%9e%83%e5%9c%be%e9%82%ae%e4%bb%b6%e4%b8%80%e4%be%8b","status":"publish","type":"post","link":"https:\/\/julyclyde.org\/?p=396","title":{"rendered":"Postfix \u7279\u6027\u88ab\u6ee5\u7528\uff0c\u5bfc\u81f4\u6536\u5230\u5783\u573e\u90ae\u4ef6\u4e00\u4f8b"},"content":{"rendered":"<p>\u6700\u8fd1\u53d1\u73b0\u6211\u4eec\u7684 postmaster@$myorigin \u7ecf\u5e38\u6536\u5230\u5783\u573e\u90ae\u4ef6\uff0c\u800c\u8be5\u5783\u573e\u90ae\u4ef6\u7684\u6765\u6e90\u662f\u65e9\u5728\u51e0\u4e2a\u6708\u524d\u5c31\u5217\u5165 anti-spam.org.cn \u7684 RBL \u4e2d\u7684\u3002\u67e5\u4e86\u4e00\u4e0b\u65e5\u5fd7\uff0c\u53d1\u73b0\u5bf9\u65b9\u53d1\u6765\u7684\u90ae\u4ef6\u88ab\u201c\u90e8\u5206\u62d2\u6536\u201d\uff0c\u53d1\u7ed9 postmaster@$myorigin \u7684\u90a3\u4e2a\u6295\u9012\u6210\u529f\u4e86\uff0c\u53d1\u7ed9\u4e00\u822c\u5730\u5740\u7684\u88ab\u670d\u52a1\u5668\u62d2\u6536\u3002\u5728 check_client_access \u7b56\u7565\u91cc\uff0c\u6211\u628a\u4e00\u4e2a\u5185\u7f51 IP \u5217\u5165\u9ed1\u540d\u5355\uff0c\u7136\u540e telnet \u53d1\u4fe1\u6d4b\u8bd5\uff0c\u8fd9\u4e2a\u95ee\u9898\u7adf\u7136\u80fd\u7a33\u5b9a\u91cd\u73b0\uff01\u6211\u662f\u4e0d\u662f\u53d1\u73b0 bug \u4e86\uff1f<\/p>\n<p>gdb \u4e86\u534a\u4e2a\u4e0b\u5348\uff0c\u53d1\u73b0 postfix \u4e2d smtpd_check.c \u6587\u4ef6\u91cc\u6709\u8fd9\u4e48\u4e00\u6bb5\uff1a<br \/>\n<code><br \/>\n\/*<br \/>\n* XXX Always say OK when we're probed with our own address verification<br \/>\n* sender address. Otherwise, some timeout or some UCE block may result<br \/>\n* in mutual negative caching, making it painful to get the mail through.<br \/>\n*\/<br \/>\n#ifndef TEST<br \/>\nif (*recipient) {<br \/>\nif (canon_verify_sender == 0) {<br \/>\ncanon_verify_sender = vstring_alloc(10);<br \/>\nrewrite_clnt_internal(MAIL_ATTR_RWR_LOCAL,<br \/>\nvar_verify_sender,<br \/>\ncanon_verify_sender);<br \/>\n}<br \/>\nif (strcasecmp(STR(canon_verify_sender), recipient) == 0)<br \/>\nreturn (0);<br \/>\n}<br \/>\n#endif<br \/>\n<\/code><br \/>\n\u5176\u4e2d canon_verify_sender \u662f\u4e2a\u9759\u6001\u6307\u9488\uff0c\u5728\u8fd9\u4e00\u6bb5\u88ab\u521d\u59cb\u5316\u4e4b\u540e\uff0c\u5176\u6307\u5411\u7684\u7a7a\u95f4\u91cc\u5c31\u5df2\u7ecf\u4fdd\u5b58\u4e86\u4e00\u4e2a\u5b57\u7b26\u4e32 postmaster@$myorigin\u3002\u7136\u540e\u5728\u7b2c\u4e8c\u53e5 if \u4e4b\u540e\u5c31\u76f4\u63a5\u8fd4\u56de\u4e86\uff0c\u4e0d\u7ee7\u7eed\u8fdb\u884c if \u4e4b\u540e\u7684\u90a3\u4e9b\u53cd\u5783\u573e\u7b56\u7565\u5224\u65ad\u4e86\u3002<\/p>\n<p>\u7136\u540e\u770b\u4e86\u4e00\u4e0b ADDRESS_VERIFICATION_README \u6587\u6863\uff0c\u91cc\u9762\u662f\u8fd9\u4e48\u8bf4\u7684\uff1a<\/p>\n<blockquote><p>By default, Postfix probe messages have a sender address &#8220;double-bounce@$myorigin&#8221; (with Postfix versions before 2.5, the default is &#8220;postmaster@$myorigin&#8221;). This is SAFE because the Postfix SMTP server does not reject mail for this address. <\/p><\/blockquote>\n<p>\u4e5f\u5c31\u662f\u8bf4\u6211\u6d3b\u8be5\u6536\u5230\u5783\u573e\u90ae\u4ef6\uff01\u597d\u5427\uff0c\u90a3\u6211\u6539\u6539 address_verify_sender \u53c2\u6570\u5f97\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u53d1\u73b0\u6211\u4eec\u7684 postmaster@$myorigin \u7ecf\u5e38\u6536\u5230\u5783\u573e\u90ae\u4ef6\uff0c\u800c\u8be5\u5783\u573e\u90ae\u4ef6\u7684\u6765\u6e90\u662f\u65e9\u5728\u51e0\u4e2a\u6708\u524d\u5c31\u5217\u5165 anti-spam.org.cn \u7684 RBL \u4e2d\u7684\u3002\u67e5\u4e86\u4e00\u4e0b\u65e5\u5fd7\uff0c\u53d1\u73b0\u5bf9\u65b9\u53d1\u6765\u7684\u90ae\u4ef6\u88ab\u201c\u90e8\u5206\u62d2\u6536\u201d\uff0c\u53d1\u7ed9 postmaster@$myorigin \u7684\u90a3\u4e2a\u6295\u9012\u6210\u529f\u4e86\uff0c\u53d1\u7ed9\u4e00\u822c\u5730\u5740\u7684\u88ab\u670d\u52a1\u5668\u62d2\u6536\u3002\u5728 check_client_access \u7b56\u7565\u91cc\uff0c\u6211\u628a\u4e00\u4e2a\u5185\u7f51 IP \u5217\u5165\u9ed1\u540d\u5355\uff0c\u7136\u540e telnet \u53d1\u4fe1\u6d4b\u8bd5\uff0c\u8fd9\u4e2a\u95ee\u9898\u7adf\u7136\u80fd\u7a33\u5b9a\u91cd\u73b0\uff01\u6211\u662f\u4e0d\u662f\u53d1\u73b0 bug \u4e86\uff1f gdb \u4e86\u534a\u4e2a\u4e0b\u5348\uff0c\u53d1\u73b0 postfix \u4e2d smtpd_check.c \u6587\u4ef6\u91cc\u6709\u8fd9\u4e48\u4e00\u6bb5\uff1a \/* * XXX Always say OK when we&#8217;re probed with our own address verification * sender address. &hellip; <a href=\"https:\/\/julyclyde.org\/?p=396\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,46,48],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-default","tag-anti-spam","tag-e-mail","tag-postfix"],"_links":{"self":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396"}],"version-history":[{"count":0,"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/posts\/396\/revisions"}],"wp:attachment":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}