The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM 54, email filter config file?

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

  1. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    87
    Likes Received:
    2
    Trophy Points:
    8
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,774
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    87
    Likes Received:
    2
    Trophy Points:
    8
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,774
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

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

    Code:
    /home/$username/etc/$domain/$email-account/filter
    Thank you.
     
Loading...

Share This Page