Copy global email filters
Hi. I have many domains on a server and they all get similar spam. I have created a nice set of keyword rules in the Global Email Filters on one domain. I'd like to copy this to the others and thought it would be as simple as copying the rules into each entry in /etc/vfilters, but this doesn't seem to work. Cpanel instructions say that I should use the individual domain's cPanel GUI for this but I have 80 domains to do, each with more than 20 rules. My hands would drop off.
I read that I might be able to setup an Exim filter but there's no keyword example here:
How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation
Is this the best way or can I use another method to achieve this? I'd really prefer to control each domain with their own filter as I originally set out to do.
Thanks in advance.
-
Import/Export mail filters is an awesome idea. I would have added it to my feature request for switches to enable/disable individual mail filters instead of having to delete them (and then rewrite them back) but my feature request was quietly moderated into /dev/null as usual - so maybe you could have a go, and have better luck :) 0 -
Thanks for the reply rpvw, I'll try to request that feature too. I was hoping someone could guide me on a quick way to import a good mail filter into each domain rather than have to create them all manually. Has anyone done this? 0 -
Hi @Volt55 A feature request on this would be a great idea as suggested by @rpvw and I can assure you that while it may not get looked at until Monday it will be looked at. The best suggestion I'd have for you is making use of the exim system filter which you already found, this will implement it for all accounts on the server without having to copy the filters to each account. Let us know if you give it a shot and run into any trouble! Thanks! 0
Please sign in to leave a comment.
Comments
3 comments