Forum Discussion
filmtech
Mar 23, 2022Copper Contributor
Can I create a policy to block emails based on subject line?
I have spam coming with a specific subject line; is there somewhere in the Admin Portal where I can block emails coming into my organization based on the subject line exact phrase?
- Mar 23, 2022
Yes, it's under Exchange Admin Center > Mail Flow, below link can help step by step:
Office 365 Mail Flow Rule: Block Messages Based on Subject | LazyExchangeAdmin
filmtech
Mar 24, 2022Copper Contributor
Got it -- are the hashtags around the phrase necessary?
Kidd_Ip
Mar 24, 2022MVP
- filmtechMar 24, 2022Copper ContributorI was a bit confused yes. Instead of #SYSGEN# perhaps indicate something like [add the text of the subject line here]. In any case my hat's off to you. I followed your instructions and successfully implemented a mail flow rule!
- Kidd_IpMar 24, 2022MVP
You are welcome, not sure you are interested to 'Regular Expression', refer below URL:
regex - Regular Expression for some email rules - Stack Overflow