Recently there is an uptick in forged/spoofed e-mails, some are even virus generated and use password protected files to avoid detection.
The behavior I am after is straight forward:
Second Variation
I have already written a regex to catch if two @ are present in the From field, however this is not optimal since some clients have their e-mail configured as name, like:
Can anyone please help me with writing a regex that either fully catches spoofed names while allowing the legit poorly configured ones.
Or a second regex just to check if name matches e-mail, so I can set it up before the two @ filters as an exception.
Thank you in advance
The behavior I am after is straight forward:
Second Variation
From: "Fake User Name <FakeUser@ForgedDomain.com>" <actual.user@realdomain.com>
I have already written a regex to catch if two @ are present in the From field, however this is not optimal since some clients have their e-mail configured as name, like:
From: "noreply@wizzair.com" <noreply@wizzair.com>
And get flagged by my rule.Can anyone please help me with writing a regex that either fully catches spoofed names while allowing the legit poorly configured ones.
Or a second regex just to check if name matches e-mail, so I can set it up before the two @ filters as an exception.
Thank you in advance