Work of filters in newer versions of the control panel

There are two levels of filtering in control panel "User Level Filtering" (for an individual mailbox) and "Account Level Filtering" (applies to all mailboxes of account). 1) Account Level Filtering Backup of filters, which can be created through the control panel cPanel -> section "Backups", is created just for this type of filter, while you download the file of the following type "filter-DOMAIN.gz". There is a simple text file with the filtering rules inside this archive. It restores without problems, but with the nuance that it is not shown in the control panel, although fully functional. In order to recover once you've created a filter to another domain you just need to change part that is responsible for the domain name in file name and use the restore function from the control panel cPanel -> "Backups". You can check the filter creation from the command line by typing less /etc/vfilters/DOMAIN 2) User Level Filtering Although backup of such filters can't be created, it is much easier to manage them as well as access to the filters you have via FTP and during copying they even appear in the control panel and are functioning perfectly. The filters for each mailbox are located on the path /home/USERNAME/etc/DOMAIN/EMAIL/filter.yaml and /home/USERNAME/etc/DOMAIN/EMAIL/filter /home/USERNAME/etc/DOMAIN/EMAIL/filter - the filter itself /home/USERNAME/etc/DOMAIN/EMAIL/filter.yaml - file that is responsible for filter to be displayed in the control panel So it is enough to copy these two files in a directory of another mailbox and the filter will be applied to it. ______________________________ USERNAME - your username in the system DOMAIN - domain name for which you want to apply or is already applying filter EMAIL - the short name of the mailbox (before the "@"), for example test@domain.com - EMAIL=test
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Which path to Perl should I mention?

The first line in the script should be a line: #!/usr/bin/perl

Do you have spam filters? How do they work?

SpamAssasin is installed on our servers, you can activate it by yourself using your hosting...

What is DBI for Perl?

Perl module DBI is being used to connect to databases, e.g. MySQL. EXAMPLE: Perl $dbh =...

What is the path to the interpreter PHP?

For PHP5 the following paths should be used /usr/local/bin/php5 or /usr/local/php5 For older...

May I use anonymous FTP access?

You may get Anonymous FTP only in case you have a dedicated IP address.