If you want to exclude specific domains from scanned by spam filtering, you can add a rule under mail flow with the EAC in Exchange Online as follows.

Use the EAC to create a mail flow rule that sets the SCL of a message

Be very careful about allowing messages to skip spam filtering. Attackers can use this vulnerability to send phishing and other malicious messages into your organization. The mail flow rules requires more than just the sender’s email address or domain. For more information, see Create safe sender lists in EOP.

Mark specific messages with an SCL before they’re even scanned by spam filtering. 
Use mail flow rules to set the spam confidence level (SCL) in messages in EOP.

To block sender domains have a look at the following post.


Use mail flow rules to set the spam confidence level (SCL) in messages in EOP

Create safe sender lists in EOP