How can I quarantine email addresses with prefixes longer than 20 characters in Office365?

0
20
Asked By QuirkyPenguin93 On

I've been dealing with spammers in Office365 who are sending fake password expiration notices from email addresses that are over 300 characters long! To combat this issue, I want to create a rule that quarantines emails with excessively long prefixes. Are there Exchange Online rules that can help me do this?

4 Answers

Answered By StrugglingAdmin On

Honestly, I have no idea, but I do think 20 is way too short for a limit. Maybe consider adjusting it to something like 40-50 characters instead.

EmailExpert99 -

Absolutely! A higher limit would prevent legitimate emails from getting caught in the filter.

Answered By TechTroubleshooter On

I've also noticed those fake FROM names popping up. Have you seen any recent EXO updates that may help reduce these problems? They were supposed to address empty senders and multiple addresses in the from field.

Answered By EmailGuru88 On

I think 20 characters might be a bit too short, especially with common formats like [email protected]. It might block legitimate emails, so I suggest raising the limit to around 50 characters instead. Just a thought!

SmartSender01 -

Agreed! Adding a warning to the subject line could also help users identify problematic emails.

Answered By RegexRebel42 On

You can actually set up a transport rule using regex with the -FromAddressMatchesPatterns option. Just use a pattern like S{300,}@ to match any non-space characters that are 300 or more in length before the @ sign. This should help in catching those long email addresses!

SpamSavior21 -

That regex is genius! I didn't know we could use it like that, but it's definitely going to make my job easier.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.