Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Copy global email filters

Discussion in 'E-mail Discussion' started by Volt55, Oct 3, 2018.

  1. Volt55

    Volt55 Member

    Joined:
    Feb 20, 2017
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    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.
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    441
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    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 :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Volt55

    Volt55 Member

    Joined:
    Feb 20, 2017
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    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?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,791
    Likes Received:
    442
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice