

{"id":450,"date":"2022-07-09T14:14:00","date_gmt":"2022-07-09T12:14:00","guid":{"rendered":"https:\/\/blog.koeckeis-fresel.net\/?p=450"},"modified":"2022-07-27T13:43:20","modified_gmt":"2022-07-27T11:43:20","slug":"o365-dkim-signing","status":"publish","type":"post","link":"https:\/\/blog.koeckeis-fresel.net\/?p=450","title":{"rendered":"O365 &#8211; DKIM signing"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>how to sign O365-Mails using DKIM\n\nSet-ExecutionPolicy RemoteSigned <br>\n\n&#91;Net.ServicePointManager]::SecurityProtocol = &#91;Net.SecurityProtocolType]::Tls12<br>\nInstall-PackageProvider -Name NuGet<br><br>\nInstall-Module -Name ExchangeOnlineManagement<br>\nUpdate-Module -Name ExchangeOnlineManagement<br>\nImport-Module ExchangeOnlineManagement<br>\n$o365Cred = Get-Credential<br>\n$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.outlook.com\/powershell\/ -Credential $o365Cred -Authentication Basic -AllowRedirection<br>\nSet-ExecutionPolicy RemoteSigned<br>\nImport-PSSession $Session<br>\nEnable-OrganizationCustomization<br>\nNew-ManagementRoleAssignment -Role \"Mailbox Import Export\" -SecurityGroup \"Organization Management\"<br>\nRemove-PSSession $session<br>\nDisconnect-ExchangeOnline<br><br>\n# DKIM<br>\nNew-DkimSigningConfig -DomainName FQDN -Enabled $false<br>\nGet-DkimSigningConfig -Identity FQDN | Format-List Selector1CNAME, Selector2CNAME<br><br>\n# Grab the CNAMES and update them in DNS.<br>\n# Then run the command:<br>\nSet-DkimSigningConfig -Identity FQDN -Enabled $true<br><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,5],"tags":[29,23,24],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-general","category-mail","tag-encryption","tag-exchange","tag-mail"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=450"}],"version-history":[{"count":0,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts\/450\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}