{"id":57,"date":"2016-09-08T17:11:07","date_gmt":"2016-09-08T15:11:07","guid":{"rendered":"http:\/\/gillan.be\/wordpress\/?p=57"},"modified":"2018-11-16T16:58:12","modified_gmt":"2018-11-16T15:58:12","slug":"spf-record-not-working-with-on-premise-exchange-server","status":"publish","type":"post","link":"http:\/\/gillan.be\/wordpress\/spf-record-not-working-with-on-premise-exchange-server\/","title":{"rendered":"SPF record not working with on-premise Exchange server"},"content":{"rendered":"<p>When you add an SPF record to your domain&#8217;s DNS and still messages can be sent with non-user email adresses (spoofed), this is probably the reason:<\/p>\n<ol>\n<li>SPF is not fully propagated<\/li>\n<li>Your on-premise\u00a0exchange does not have any anti-spam agents installed.<\/li>\n<\/ol>\n<p>You can check this with this Powershell command:<\/p>\n<pre><i>Get-TransportAgent \r\n<\/i><\/pre>\n<p>When the anti-spam agents are not installed, install them with this PS command:<i><br \/>\n<\/i><\/p>\n<pre><i>&amp; $env:ExchangeInstallPath\\Scripts\\Install-AntiSpamAgents.ps1<\/i><\/pre>\n<p>After these are installed, you should\u00a0restart the Microsoft Exchange Transport Service:<i><br \/>\n<\/i><\/p>\n<pre><i>Restart-Service MSExchangeTransport \r\n<\/i><\/pre>\n<p><i><br \/>\n<\/i>Source + more information:<\/p>\n<p><a href=\"http:\/\/markgossa.blogspot.be\/2016\/01\/block-spoofed-email-exchange-2010-2013-2016-part1.html\">http:\/\/markgossa.blogspot.be\/2016\/01\/block-spoofed-email-exchange-2010-2013-2016-part1.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you add an SPF record to your domain&#8217;s DNS and still messages can be sent with non-user email adresses (spoofed), this is probably the reason: SPF is not fully propagated Your on-premise\u00a0exchange does not have any anti-spam agents installed. You can check this with this Powershell command: Get-TransportAgent When the anti-spam agents are not &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/gillan.be\/wordpress\/spf-record-not-working-with-on-premise-exchange-server\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;SPF record not working with on-premise Exchange server&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[18,7],"tags":[20,22,19,21],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-exchange","category-windows-server","tag-exchange","tag-spam","tag-spf","tag-spoof"],"featured_media_urls":[],"_links":{"self":[{"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":2,"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":155,"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/posts\/57\/revisions\/155"}],"wp:attachment":[{"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gillan.be\/wordpress\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}