Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 2.26 KB

File metadata and controls

61 lines (41 loc) · 2.26 KB

Setup DKIM for your new domain on O365

  1. Login to your linux server and add the 'selectors' :
$ssh sd-53250.dedibox.fr
  1. Edit /etc/bind/db.enrollme.eu, add the below at the end of the file :
    Make the change to reflect your domain...
;MICROSOFT DKIM
selector1._domainkey	3600	IN	CNAME	selector1-enrollme-eu._domainkey.enrollme.onmicrosoft.com.
selector2._domainkey	3600	IN	CNAME	selector2-enrollme-eu._domainkey.enrollme.onmicrosoft.com.

/!\ Be sure you didn't make any mistake, if you have to edit file after asking Microsoft it will take time to be taking into account... (my case it took me a couple of hours before being able to enable it.

  1. Save the file, close it, restart bind service :
$sudo /etc/init.d/bind9 restart
  1. Go to google to force flush cache, put your domain name then in RRType CNAME, because selectors are CNAME records :
    Google Flush cache

  2. Go to Office 365 admin portal :
    O365 admin icon

  3. On the left menu Click on Exchange :
    O365 Exchange Admin Portal

  4. Under section Protection click on dkim :
    O365 Exchange Portal

  5. Under section :
    O365 Exchange DKIM

  6. Select your domain, and click on enable on the right, if you see the below wait few minutes to few hours ( I had to wait ~1h) :
    O365 Exchange DKIM enable

  7. Wait and click on enable again, You shall see this :
    O365 Exchange DKIM enable ok

  8. Now we will check DKIM is well set, go here : http://dkimvalidator.com/ DKIM Validator main page

  9. Copy the email address, in my case : PYTyc8NuJI1p41@dkimvalidator.com

  10. Go to your outlook client or webinterface and login with your new email account for me ( enrollme.eu-verification@enrollme.eu ): Send an e-mail for email you copied on previous step @dkimvalidator.com .
    sends email

  11. Go back to dkimvalidator site, and Click on View Results DKIM Validator main page

  12. Verify tests passes