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!

WHM 54, email filter config file?

Discussion in 'E-mail Discussion' started by iso99, Apr 4, 2016.

  1. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I can't seem to find /home/domain/.cpanel/filter.yaml in my server. Where does WHM 54 keep filter files now?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    There's no supported method of manually modifying the filter files through the command line. Thus, while it's possible to manually modify the filter rules, it's not guaranteed to work because it's not a method that we test. You should utilize our API if you plan to add new filter rules via the command line:

    UAPI Functions - Email::store_filter - Software Development Kit - cPanel Documentation

    Otherwise, manual changes to the /etc/vfilters/$domain file are overwritten.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Thanks for that info. I won't be modifying the config files, I am doing a monitoring script for forwarders. Thanks for the UAPI link, so there's no central config file for the per mailbox email filters? I haven't found the forwarder I setup in /etc/vfilters though.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Email filters for individual email accounts are stored in the following location:

    Code:
    /home/$username/etc/$domain/$email-account/filter
    Thank you.
     
    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