{"id":6091,"date":"2023-02-02T10:32:54","date_gmt":"2023-02-02T08:32:54","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6091"},"modified":"2023-02-02T10:34:48","modified_gmt":"2023-02-02T08:34:48","slug":"%d0%b4%d0%bb%d1%8f-%d0%bf%d0%be%d1%87%d0%b0%d1%82%d0%ba%d1%96%d0%b2%d1%86%d1%96%d0%b2-%d1%80%d0%be%d0%b7%d1%81%d0%bb%d1%96%d0%b4%d1%83%d0%b2%d0%b0%d0%bd%d0%bd%d1%8f-%d0%be%d0%b4%d0%bd%d1%96%d1%94","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6091","title":{"rendered":"[\u0414\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0456\u0432\u0446\u0456\u0432] \u0420\u043e\u0437\u0441\u043b\u0456\u0434\u0443\u0432\u0430\u043d\u043d\u044f \u043e\u0434\u043d\u0456\u0454\u0457 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 SPF"},"content":{"rendered":"\n<p>\u041d\u0435\u0449\u043e\u0434\u0430\u0432\u043d\u043e \u0434\u043e \u043c\u0435\u043d\u0435 \u0437\u0432\u0435\u0440\u043d\u0443\u0432\u0441\u044f \u043e\u0434\u0438\u043d \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u044e <strong>SPF<\/strong>. \u0419\u043e\u0433\u043e \u043f\u043e\u0448\u0442\u043e\u0432\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0430\u0432\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c \u043f\u043e\u0448\u0442\u0438 \u0432\u0456\u0434 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0443 <strong>baddomain.com<\/strong>:<\/p>\n\n\n\n<p><code>Not authorized by SPF<\/code><\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u0446\u044c\u043e\u043c\u0443, \u043a\u043b\u0456\u0454\u043d\u0442 \u043a\u0430\u0436\u0435, \u0449\u043e \u044f\u043a\u0449\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0446\u0435\u0439 <strong>baddomain.com<\/strong> \u043d\u0430 https:\/\/mxtoolbox.com, \u0442\u043e \u0442\u0430\u043c \u043d\u0435\u043c\u0430\u0454 \u0436\u043e\u0434\u043d\u043e\u0457 \u043f\u043e\u043c\u0438\u043b\u043a\u0438.<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u0412 \u043f\u0435\u0440\u0448\u0443 \u0447\u0435\u0440\u0433\u0443 \u044f \u043f\u043e\u0434\u0438\u0432\u0438\u0432\u0441\u044f \u0441\u0430\u043c\u0456 \u0437\u0430\u043f\u0438\u0441\u0438 <strong>SPF<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>dig<\/strong>:<\/p>\n\n\n<p><code>$ dig -t txt baddomain.com +short<br>\n\"v=spf1 ip4:XXX ip4:YYY include:_spf.google.com include:spf2.esputnik.com -all\"<br>\n...<br>\n\"spf2.0\/mfrom,pra include:senderid.unisender.com -all\"<br>\n<\/code><\/p>\n<p>\u0456 \u043f\u0435\u0440\u0448\u0435, \u0449\u043e \u043a\u0438\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0432 \u043e\u0447\u0456, \u0446\u0435 \u0440\u0456\u0437\u043d\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f <strong>SPF1<\/strong> \u0456 <strong>SPF2<\/strong> \u0456 \u0441\u0430\u043c\u0435 <strong>SPF2<\/strong> \u043d\u0435 \u0434\u0430\u0454 \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u0438 \u043b\u0438\u0441\u0442\u0430\u0432 \u0432\u0456\u0434 <strong>baddomain.com<\/strong>. \u041f\u043e\u0434\u0438\u0432\u0438\u043c\u043e\u0441\u044f, \u0447\u043e\u043c\u0443 \u0442\u0430\u043a.<\/p>\n\n\n<p>\u0419\u043e\u0433\u043e \u043f\u043e\u0448\u0442\u043e\u0432\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u0430\u0432 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044e <strong>exim+spfd<\/strong>. <strong>man<\/strong> <strong>spfd<\/strong> \u0434\u0430\u0454 \u0432\u0438\u0447\u0435\u0440\u043f\u043d\u0443 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c, \u0447\u043e\u043c\u0443 \u0442\u0430\u043a:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ee870a\" class=\"has-inline-color\">versions<\/mark><\/p>\n\n\n\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ee870a\" class=\"has-inline-color\">A comma-separated list of SPF version numbers of SPF records that may be used.&nbsp; 1 means that &#8220;v=spf1&#8221; records should be used.&nbsp; 2 means that &#8220;spf2.0&#8221; records should be used.&nbsp; Defaults to 1,2, i.e., uses any SPF records that are available.&nbsp; Records of a higher version are preferred.<\/mark><\/p>\n<\/blockquote>\n\n\n\n<p>\u0421\u0430\u043c <strong>spfd<\/strong> \u0431\u0443\u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0438\u0439 \u0431\u0435\u0437 <strong>versions<\/strong>, \u0442\u043e\u043c\u0443, \u043b\u043e\u0433\u0456\u0447\u043d\u043e, \u0432\u0438\u0431\u0438\u0440\u0430\u0454\u0442\u044c\u0441\u044f <strong>SPF2<\/strong>, \u044f\u043a\u0438\u0439 \u0432\u043b\u0430\u0441\u043d\u0435 \u0456 \u043d\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u0438 \u043f\u043e\u0448\u0442\u0443.<\/p>\n\n\n\n<p>\u042f\u043a \u0431\u043e\u043d\u0443\u0441, \u0441\u043f\u0440\u043e\u0431\u0443\u0454\u043c\u043e \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044f, \u044f\u043a \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u0437\u0456 \u0441\u0442\u043e\u0440\u043e\u043d\u0438 <strong>exim<\/strong>:<\/p>\n\n\n<p><code><br \/>$ echo -e \"identity=<span style=\"color: #ff0000;\">gooduser@baddomain.com<\/span>\\nip_address=<span style=\"color: #008000;\">XX.XX.XX.XX<\/span>\\n\" | nc -U \/tmp\/spfd.sock<br \/>\nresult=fail<br \/>\nlocal_explanation=<span style=\"color: #0000ff;\">baddomain.com<\/span>: Sender is not authorized by default to use '<span style=\"color: #ff0000;\">gooduser@baddomain.com<\/span>' in 'mfrom' identity (mechanism '-all' matched)<br \/>\nauthority_explanation=Rejected by SPF record<br \/>\nreceived_spf_header=Received-SPF: fail (<span style=\"color: #0000ff;\">baddomain.com<\/span>: Sender is not authorized by default to use '<span style=\"color: #ff0000;\">gooduser@baddomain.com<\/span>' in 'mfrom' identity (mechanism '-all' matched)) receiver=mail.gooddomain.ua; identity=mailfrom; envelope-from=\"<span style=\"color: #ff0000;\">gooduser@baddomain.com<\/span>\"; client-ip=<span style=\"color: #008000;\">XX.XX.XX.XX<\/span><br \/>\nspf_record=spf2.0\/mfrom,pra include:senderid.unisender.com -all<br \/>\nsmtp_comment=Rejected by SPF record<br \/>\nheader_comment=<span style=\"color: #0000ff;\">baddomain.com<\/span>: Sender is not authorized by default to use '<span style=\"color: #ff0000;\">gooduser@baddomain.com<\/span>' in 'mfrom' identity (mechanism '-all' matched)<br \/>\n<\/code><\/p>\n<p>\u0434\u0435, <strong>gooduser@baddomain.com<\/strong> &#8211; \u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u0456\u0434\u043f\u0440\u0430\u0432\u043d\u0438\u043a\u0430, <strong>XX.XX.XX.XX<\/strong> &#8211; \u0432\u043b\u0430\u0441\u043d\u0435 IP \u0437\u0432\u0456\u0434\u043a\u0438 \u0432\u0456\u0434\u043f\u0440\u0430\u0432\u043b\u0454\u0442\u044c\u0441\u044f \u043b\u0438\u0441\u0442.<\/p>\n<p>\u0422\u0443\u0442 \u0454 2 \u043d\u044e\u0430\u043d\u0441\u0438:<\/p>\n<ul>\n<li><span style=\"color: #ff6600;\"><em>unix socket \/tmp\/spfd.sock \u043c\u0430\u0454 \u043f\u0440\u0430\u0432\u0430 0660 Debian-exim:Debian-exim \u0456 \u0442\u043e\u043c\u0443 \u0442\u0440\u0435\u0431\u0430 \u0431\u0443\u0442\u0438 \u0432 \u0433\u0440\u0443\u043f\u0456 Debian-exim, \u0449\u043e\u0431 \u043c\u0430\u0442\u0438 \u0437\u043c\u043e\u0433\u0443 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438\u0441\u044f \u0434\u043e \u043d\u044c\u043e\u0433\u043e<\/em><\/span><\/li>\n<li><span style=\"color: #ff6600;\"><em>nc (netcat) \u0432 Linux \u043d\u0435 \u043c\u0430\u0436 \u043e\u043f\u0446\u0456\u044e \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044f \u0434\u043e unix socket&#8217;y, \u0442\u043e\u043c\u0443 \u0442\u0440\u0435\u0431\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u0430\u043a\u0435\u0442\u00a0<span style=\"font-size: revert;\">netcat-openbsd \u0432 \u044f\u043a\u043e\u043c\u0443 \u0446\u044f \u043e\u043f\u0446\u0456\u044f \u0454.<\/span><\/em><\/span><\/li>\n<\/ul>\n<p>\u0406 \u0433\u043e\u043b\u043e\u0432\u043d\u0435 \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u044f\u043a \u0431\u0443\u0442\u0438 \u0434\u0430\u043b\u0456? \u042f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0432\u0430\u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u0443 \u0442\u0435\u0445\u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0446\u044c\u043e\u0433\u043e <strong>baddomain.com<\/strong> \u0430 \u0437\u0456 \u0441\u0442\u043e\u0440\u043e\u043d\u0438 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0447\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u0443 <strong>whitelist<\/strong> \u0446\u0435\u0439 \u0434\u043e\u043c\u0435\u043d, \u044f\u043a\u0449\u043e \u043b\u0438\u0441\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0437 \u043d\u0438\u043c \u0434\u0443\u0436\u0435 \u0432\u0430\u0436\u043b\u0438\u0432\u0435. \u042f\u043a \u0434\u043e\u0434\u0430\u0442\u0438 \u0443 <strong>whitelist<\/strong> &#8211; \u043c\u043e\u0436\u043d\u0430 \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044f <a href=\"https:\/\/skeletor.org.ua\/?p=5623\">\u0442\u0443\u0442<\/a><\/p>\n<p>\u0412\u0438\u0441\u043d\u043e\u0432\u043e\u043a: \u043d\u0435 \u0437\u0430\u0432\u0436\u0434\u0438 \u0442\u0440\u0435\u0431\u0430 \u0434\u043e\u0432\u0456\u0440\u044f\u0442\u0438, \u043d\u0430\u0432\u0456\u0442\u044c \u0432\u0456\u0434\u043e\u043c\u0438\u043c \u0441\u0435\u0440\u0432\u0456\u0441\u0430\u043c \u043f\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0446\u0456.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0449\u043e\u0434\u0430\u0432\u043d\u043e \u0434\u043e \u043c\u0435\u043d\u0435 \u0437\u0432\u0435\u0440\u043d\u0443\u0432\u0441\u044f \u043e\u0434\u0438\u043d \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u044e SPF. \u0419\u043e\u0433\u043e \u043f\u043e\u0448\u0442\u043e\u0432\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0430\u0432\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c \u043f\u043e\u0448\u0442\u0438 \u0432\u0456\u0434 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0443 baddomain.com: Not authorized by SPF \u041f\u0440\u0438 \u0446\u044c\u043e\u043c\u0443, \u043a\u043b\u0456\u0454\u043d\u0442 \u043a\u0430\u0436\u0435, \u0449\u043e \u044f\u043a\u0449\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0446\u0435\u0439 baddomain.com \u043d\u0430 https:\/\/mxtoolbox.com, \u0442\u043e \u0442\u0430\u043c \u043d\u0435\u043c\u0430\u0454 \u0436\u043e\u0434\u043d\u043e\u0457 \u043f\u043e\u043c\u0438\u043b\u043a\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[],"class_list":["post-6091","post","type-post","status-publish","format-standard","hentry","category-mail","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6091"}],"version-history":[{"count":2,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6091\/revisions"}],"predecessor-version":[{"id":6094,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6091\/revisions\/6094"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}