Hi @StudentAdmin ,
Thank you for posting to Microsoft Community.
Based on your description, I understand that you want to create a mail flow rule to block email from a specific domain based on header text and you did not see the option with Message header.
You could refer to Mail flow rule conditions and exceptions (predicates) in Exchange Online | Microsoft Learn for more information about the Message headers condition.
Therefore, you could create the mail flow rule match your need in Exchange admin center (EAC) as the following steps.
- Sign in to the Exchange admin center (EAC).
- In the left navigation pane, select Mail flow rules.
- Click + and select Create a new rule.
- On the New rule page, enter a name for the rule in the Name box.
- In the Apply this rule if… section, select The sender is and then select Domain is.
- And add the condition The message headers.
- In the Do the following… section, select Block the message.
- Click Save.
Hope it helps and if there are anything else you need help, please feel free to contact me.