higginss20 has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex Expression to filter email for Barracuda Email Appliance
by roboticus (Chancellor) on Feb 12, 2021 at 18:27 UTC | |
by davido (Cardinal) on Feb 12, 2021 at 20:32 UTC | |
Re: Regex Expression to filter email for Barracuda Email Appliance
by stevieb (Canon) on Feb 12, 2021 at 18:11 UTC | |
Re: Regex Expression to filter email for Barracuda Email Appliance
by kcott (Archbishop) on Feb 13, 2021 at 00:26 UTC | |
Re: Regex Expression to filter email for Barracuda Email Appliance
by Radiola (Monk) on Feb 13, 2021 at 00:52 UTC | |
Re: Regex Expression to filter email for Barracuda Email Appliance
by LanX (Saint) on Feb 12, 2021 at 23:49 UTC | |
Re: Regex Expression to filter email for Barracuda Email Appliance
by Anonymous Monk on Feb 12, 2021 at 20:45 UTC | |
by Anonymous Monk on Feb 13, 2021 at 00:20 UTC |