{"id":186,"date":"2020-02-02T07:52:06","date_gmt":"2020-02-01T22:52:06","guid":{"rendered":"https:\/\/www.jellyfishjelly.net\/?p=186"},"modified":"2024-06-16T16:44:27","modified_gmt":"2024-06-16T07:44:27","slug":"post-186","status":"publish","type":"post","link":"https:\/\/www.jellyfishjelly.net\/?p=186","title":{"rendered":"python3\u7528SPF\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u6319\u52d5"},"content":{"rendered":"\n<p>\u305d\u306e\u3046\u3061\u5225\u9014\u89e3\u8aac\u3057\u3088\u3046\u3068\u601d\u3046\u304c\u3001rainroop\u306esieve\u9023\u643a\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u30e1\u30fc\u30eb\u30d5\u30a3\u30eb\u30bf\u3092\u8a2d\u5b9a\u3057\u3001\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u3054\u304f\u5c11\u6570\u306e\u9001\u4fe1\u5143\u304b\u3089\u306e\u30e1\u30fc\u30eb\u306e\u307f\u3001reject\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002<br>\u305d\u308c\u307b\u3069\u91cd\u8981\u306a\u30e1\u30fc\u30eb\u304c\u9001\u3089\u308c\u308b\u3053\u3068\u304c\u7121\u304b\u3063\u305f\u305f\u3081\u6c17\u4ed8\u304b\u306a\u304b\u3063\u305f\u306e\u3060\u304c\u3001\u540c\u4e00\u306e\u30a8\u30e9\u30fc\u3068\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u306b\u3044\u304f\u3064\u304b\u30de\u30ba\u30a4\u9001\u4fe1\u5143\u304c\u3042\u308a\u3001\u5bfe\u7b56\u3092\u8feb\u3089\u308c\u308b\u3002<br><br># Recipient address rejected: Server configuration problem;<br>\u307e\u305a\u306f\u30ea\u30b8\u30a7\u30af\u30c8\u306e\u7406\u7531\u3002Server configuration problem\u3067\u3042\u308b\u305f\u3081\u3001\u6839\u672c\u7684\u306b\u306f\u3053\u3061\u3089\u306e\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3068\u8a00\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Feb  2 06:44:03 mail policyd-spf[11167]: Traceback (most recent call last):<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/bin\/policyd-spf&#8221;, line 809, in <br> Feb  2 06:44:03 mail policyd-spf[11167]:    instance_dict, configData, peruser, peruserconfigData)<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/bin\/policyd-spf&#8221;, line 623, in _spfcheck<br> Feb  2 06:44:03 mail policyd-spf[11167]:    mres = mfromquery.check()<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/lib\/python3.6\/site-packages\/spf.py&#8221;, line 591, in check<br> Feb  2 06:44:03 mail policyd-spf[11167]:    spf = self.dns_spf(self.d)<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/lib\/python3.6\/site-packages\/spf.py&#8221;, line 1160, in dns_spf<br> Feb  2 06:44:03 mail policyd-spf[11167]:    a = [t for t in self.dns_txt(domain) if RE_SPF.match(t)]<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/lib\/python3.6\/site-packages\/spf.py&#8221;, line 1210, in dns_txt<br> Feb  2 06:44:03 mail policyd-spf[11167]:    dns_list = self.dns(domainname, rr,ignore_void=ignore_void)<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/lib\/python3.6\/site-packages\/spf.py&#8221;, line 1354, in dns<br> Feb  2 06:44:03 mail policyd-spf[11167]:    for k, v in DNSLookup(name, qtype, self.strict, timeout):<br> Feb  2 06:44:03 mail policyd-spf[11167]:  File &#8220;\/usr\/local\/lib\/python3.6\/site-packages\/spf.py&#8221;, line 106, in DNSLookup_pydns<br> Feb  2 06:44:03 mail policyd-spf[11167]:    if strict > 1:<br> Feb  2 06:44:03 mail policyd-spf[11167]: NameError: name &#8216;strict&#8217; is not defined<br> Feb  2 06:44:03 mail postfix\/spawn[11120]: warning: command \/usr\/bin\/python3.6 exit status 1<br> Feb  2 06:44:03 mail postfix\/smtpd[11115]: warning: premature end-of-input on private\/policy while reading input attribute name<br> Feb  2 06:44:03 mail postfix\/smtpd[11115]: warning: problem talking to server private\/policy: Success<br> Feb  2 06:44:03 mail postfix\/smtpd[11115]: NOQUEUE: reject: RCPT from dns1.justsystems.com[163.44.223.114]: 451 4.3.5 hogehoge@foo.bar: Recipient address rejected: Server configuration problem; from=janedoe@brabra.com to=hogehoge@foo.bar proto=SMTP helo=<br> Feb  2 06:44:03 mail postfix\/smtpd[11115]: disconnect from ns.brabra.com[www.xxx.yyy.zzz] helo=1 mail=1 rcpt=0\/1 quit=1 commands=3\/4<\/p><\/blockquote>\n\n\n\n<p>\u3000\u3068\u8a00\u3046\u8a33\u3067\u3001\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001SPF\u30c1\u30a7\u30c3\u30af\u306epython\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u554f\u984c\u304c\u8d77\u304d\u3066\u3044\u308b\u6a21\u69d8\u3002<br>\u3000\u3055\u3089\u306b\u8a00\u3048\u3070\u306a\u3093\u3068\u306a\u304fSPF\u306e\u5224\u5b9a\u306b\u5fc5\u9808\u3068\u306a\u308b\u540d\u524d\u89e3\u6c7a\u306b\u4f55\u304b\u3042\u308b\u3002<br><br>\u3000\u3053\u308c\u307e\u3067\u3001<br> py3dns-3.0.2 <br> pyspf-2.0.12 <br> pypolicyd-spf-2.0.2 <br>\u3092\u4f7f\u7528\u3057\u3066SPF\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u3053\u308c\u3089\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30d0\u30b0\u304c\u3042\u308b\u6a21\u69d8\u3002<br>\u306a\u3089\u3070\u66f4\u65b0\u7248\u304c\u3042\u308b\u306e\u3067\u306f\u7121\u3044\u304b\u3068\u304a\u3082\u3044\u5404\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6700\u65b0\u7248\u3092\u63a2\u3057\u3066\u307f\u305f\u3068\u3053\u308dpy3dns\u3068pyspf\u306b\u306f\u66f4\u65b0\u7248\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u306e\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3002<br>\u7d50\u679c \u3001<br> py3dns-3.2.1 <br> pyspf-2.0.14 <br>\u306b\u66f4\u65b0\u3055\u308c\u3001\u7121\u4e8b\u3053\u308c\u307e\u3067\u30a8\u30e9\u30fc\u3060\u3063\u305f\u9001\u4fe1\u5143\u304b\u3089\u306e\u30e1\u30fc\u30eb\u3082\u6b63\u5e38\u306b\u5224\u5b9a\u30fb\u53d7\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3068\u3055\u3002<br> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u306e\u3046\u3061\u5225\u9014\u89e3\u8aac\u3057\u3088\u3046\u3068\u601d\u3046\u304c\u3001rainroop\u306esieve\u9023\u643a\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u30e1\u30fc\u30eb\u30d5\u30a3\u30eb\u30bf\u3092\u8a2d\u5b9a\u3057\u3001\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u3054\u304f\u5c11\u6570\u306e\u9001\u4fe1\u5143\u304b\u3089\u306e\u30e1\u30fc\u30eb\u306e\u307f\u3001reject\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002\u305d\u308c\u307b\u3069\u91cd\u8981 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[26,28,33,36],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-lin","tag-centos8","tag-linux","tag-php","tag-spf"],"_links":{"self":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186"}],"version-history":[{"count":1,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":2717,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions\/2717"}],"wp:attachment":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}