Regex Filter Emails

Scootin159

New member
Joined
Jan 23, 2014
Messages
2
Is it possible to filter emails using a regex string? Specifically what I'd like to do is just drop any emails containing .ru (and a few other foreign domains that I know I'll never get emails with URL's for), as that will eliminate about 99% of the spam I receive. I have all emails setup to forward to a gmail account, which then is my primary spam filter, so I'd like for this to be the only level of spam filtering on this server.

is this possible?
 
Presuming this is a DirectAdmin server, you can modify the exim.pl filter file and uses standard perl regexes there.

Be careful; bad perl can break it.

Jeff
 
What if I don't have access to the exim.pl file (I'm just a client for a web host who uses DirectAdmin). The only fields I have access to are the "Email Filters" (CMD_EMAIL_FILTER) via the web interface.
 
You should be asking your hosting provider for help then.
 
Hi, the above reply is from 2014. My hosting provider wants to switch from CPanel to DirectAdmin. CPanel allows me to use regex filters to redirect all my email, it works beautifully, I really don't want to give this up (and have hundreds of web site accounts which use unique email addresses created because they follow the regex rules). In 2020, can end users build email filter rules with regex? Thank you.
 
Perhaps if you enable Sieve (Pigeonhole)? Not sure if it can do regex, but i've set some quite complex filters in there with a lot of standard rules
 
Back
Top