cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Global Account-Level Filtering in WHM

bbell shared this idea 6 years ago
Open Discussion

I want the ability create Account-Level Filtering in WHM to control SPAM globally throughout the server.

Best Answer
photo

I agree something similar to this attached is much easier than doing from command line. Also, on my server, even after cpanel looked at the issue, the cpanel_exim_system_filter does not read regular expression properly, so I have to go into each account every time I have to make a rule change. 300+ accounts means that it does not get updated often.ceb1fe190ddf2bf36d1e3bf890fe3d70

Comments (14)

photo
1

I what to protect the whole server (accounts and domains) from SPAM in WHM with a global filter, as cpanel icon Account-Level Filtering


Global Account-Level Filtering


Example Filter:


Rules

If Any Header contains spam-domain or


Any Header contains spam-IP or


Any Header contains spam-word or

...


Actions


Discard Message

photo
1

You can already configure the system filter in WHM. Is this sufficient, or are you looking for something similar to the interface provided in cPanel?

photo
1

Something similar to the interface provided in cPanel

photo
photo
1

I look for the same function!!!!

Now, I build the filter in an account and copy the files in other domains to /home/domain/.cpanel

The files are filter.cache and filter.yaml

But is very tedious.


If we can create one file to whole server that be great!

Thanks.

photo
2

I agree something similar to this attached is much easier than doing from command line. Also, on my server, even after cpanel looked at the issue, the cpanel_exim_system_filter does not read regular expression properly, so I have to go into each account every time I have to make a rule change. 300+ accounts means that it does not get updated often.ceb1fe190ddf2bf36d1e3bf890fe3d70

photo
1

This feature isn't on our roadmap, but it does look interesting. With only 3 votes currently, there doesn't seem to be much community interest in this feature, though.

photo
3

Hi Benny, sorry for being so late but, here it is. The probable reason why this only had 3 votes (and now only 14 votes) is that when I search for feature requests with the term 'global email filter', I get 320 results. So in one way or the other the search results are watered down way too much.

But this feature should be a no-brainer. Nobody likes spam, literally nobody in the world. We must fight spam. And this is one of the tools (changing law in countries is a very important one too) that could help very much.

I am wholly convinced that when this feature is added, everyone that uses WHM screams HURRAY! (And so will all cPanel users.)

photo
2

Very good points, for sure! If we do pick this up, we'll make sure to let everyone know.

photo
photo
1

easily being able to auto discard any emails marked as Spam and from domain extensions such as .download .pro .click would be really nice, this accounts for 80% of the spam emails that need manually deleting each day.

photo
1

being able to easily setup global rules to delete spam would be a great feature to have.


My first rule would be:- delete where the subject: contains the word "spam" and the from: ends in ".download"


That would get rid of 60% of the spam making it in to clients mail boxes and would create almost 0% false positives.

photo
1

If everyone on your server is getting the same spam email several times a day you hear about it and it becomes a pain in the neck, rather ran editing 50 Cpanel accounts individually this can save so much time

photo
1

The interface is already there in cPanel > Global Filters so I guess R&D will be a little easier, I guess some people would want the cPanel to override the WHM filter though, I have no opinion on that.

photo
4

That's definitely a good question for us to consider when we go about implementing this. I can see logic for both cPanel overriding WHM, and WHM overriding cPanel, but the latter seems more likely. From a processing standpoint, it makes more sense for root-level filters to be applied before a user's filters.

photo
1

I definitely would have to agree that this is a much needed feature. Editing filters for 70+ accounts is very time consuming especially when the bulk of the Spam is coming from a handful of IP's and /or Domain suffixes...

photo
3

I totally agree. Updating filters for 150+ accounts is excessively time consuming. Copying files to each account (filter.yaml and filter.cache) is risky too. We do had issues around a year ago.

This functionality should be essential, considering spam situation nowadays: too much phishing and hacking.

photo
2

I just raised a request for the same.

As a root admin of a corporate server, it's time consuming having to create the same global filters for just 10 or more domains.

CSF Mailscanner can do this, so why can't WHM ?

photo
1

Yes, I also want to be able to add an email to a server block / blacklist - if they are spamming the server accounts. e.g. aspammyemailsender123@gmail.com - we need a way to block it from the entire server

Leave a Comment
 
Attach a file