Log in to Directadmin. If you are not sure how to get here, you can look in this guide.
Then navigate to E-mail Manager -> MX Records

Then select Microsoft 365 from the list.
Click Save.

It may take a while before the settings are fully up and running.