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!

Generate filter file with command

Discussion in 'cPanel Developers' started by dol, Dec 15, 2009.

  1. dol

    dol Registered
    PartnerNOC

    Joined:
    Dec 3, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    In every etc/domain.com/emailusername folder you can place your filter.yaml file. This file holds the imformation about the User Level Filter. After every edit throu the 2096 gui this file will be parsed and it's generates an 'filter' file. This 'filter' file contains exim filter rules. I want to change the filter.yaml file directly. But I don't know, how to generate the filter file after my edit. There must be an command, that creates or update the filter file. I haven't found any API2 call or command line helper, that generates the file from scratch.
    Does anybody have an idear how to do this. I guess, it's some ware in the /usr/local/cpanel/cpanel-email compiled perl file. But I don't know the exact command and parameters to force a regeneration.
     
  2. fruit-dude

    fruit-dude Registered

    Joined:
    Dec 17, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Generate filter with command

    referencing a post I just made

    http://forums.cpanel.net/f43/spam-filters-149061.html#post634661

    "I have just figured this out.
    You need to do it via panel at least once.

    Then you need to copy over

    /home/USERNAME/.cpanel/filter.yaml to /home/OTHER_USERNAME/.cpanel/filter.yaml

    don't forget to chown USER.USER accordingly after copying over, additionally you might want to save a copy of the original filter.yaml"

    Hope it works for you too
     
  3. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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