How to filter email using regex or other technique?

Operating System & Version
linux
cPanel & WHM Version
88.0 (build 17)

ashur4x

Registered
Oct 29, 2020
1
0
1
Indonesia
cPanel Access Level
Root Administrator
My email server is attacked by suspicious email and I want to filter it.

The email body has a familiar email name in the form of hyperlink. It also use a familiar email subject.

I'd like to filter this email. Perhaps, using a regex that detect a single word text and contain "@ash.com". It is even better if I can combine the filter as if it's a hyperlink. I'll attach some images about th email virus.

I'm new about filtering emails. So, any help is greatly appreciated
 

Attachments

cPanelAxel

Team Lead Technical Analyst
Staff member
Jan 3, 2019
23
4
78
Houston
cPanel Access Level
Root Administrator
Hi,

You can make use of Exim filters as our documentation states here:


We have a few examples of some use-case scenarios as well as with the steps to inplement them at our support articles:

How to block emails to your server from a specific domain

How to block spam/email by subject for the entire server

Blocking emails with specific extensions in attached files

Thanks!