To leverage DKIM in 365 , then all the messages to external recipients will need to go through 365 as you prob already know.
To set that up:
Essentially:
- Configure DNS for the custom domains
- Enable DKIM for the custom domain(s) you send from.
This linked doc explains it all