Skip to main content

Can I convert an Account level filter to a User level filter?

Comments

3 comments

  • cPanelMichael
    Hello :) The user level filters are stored in the directory associated with the email account. For example, if you create "123@domain.com", then the user level filter is stored in the following files:
    /home/$username/etc/$domain.com/123/filter /home/$username/etc/$domain.com/123/filter.yaml
    The exception to this is the default email address of the account, which is the account username. That filter is stored in:
    /home/$username/etc/filter /home/$username/etc/filter.yaml
    The "Account Level Filtering" values are stored per domain name in:
    /etc/vfilters/$domain
    There are no options that allow you to automatically convert account level filters to user level filters, but you could use the above information to manually create/move the filter rules. Thank you.
    0
  • Bosque Bill
    Thanks for taking the time to answer my question. Your info allowed me to find the files, though I haven't tried to manually convert them yet. I did notice an apparent difference in how cPanel is set up on my server (I'm a client reseller, not the sysadmin.) The user level filters were as you describe, but the account level filters were located in:
    /home/$username/.cpanel/filter.yml
    There are also filter.cache files, which I assume are to be used only by the system and I don't need to copy/move them. Thanks.
    0
  • cPanelMichael
    ]There are also filter.cache files, which I assume are to be used only by the system and I don't need to copy/move them.

    You may want to move the filter.cache files out of the way after manually modifying the existing filter files for an account so the .cache files are regenerated. Thank you.
    0

Please sign in to leave a comment.