I'm hoping someone here can help, or at least point me in the right direction. The company I work for has a Barracuda Email Security Appliance that uses Perl RegEx expression for custom content filtering. We regularly have people phishing as our CEO as the display name in an email but obviously not his actual email address. I'm trying to figure out a way using RegEx to block any email with his display name in it but not his email address in the header info. The line I'm looking at in the email header is the From: displayname <email@domain> line. I've tried something similar to this and it doesn't work, this is fictitious info obviously
From: John Smith <[^j][^o][^h][^n]\.[^s][^m][^i][^t][^h][^@][^g][^m][^a][^i][^l]\.[^c][^o][^m]I know this likely isn't the best way to do this but I know next to nothing about RegEx and even less about Perl, but everything sent from any email address with his display name is still delivered. Yes I tried contacting Barracuda but they no longer offer RegEx support.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |