Creating a Filter Rule for Incoming Emails

Create filter rules for incoming emails.

You have activated the Compliance Filter for the selected domain or for any other of the domains you manage.

  1. Log in to the Control Panel with your administrative credentials.
  2. From the scope selection, select the domain for which you would like to create the filter rule.
  3. Navigate to Security Settings > Compliance Filter.
  4. Click on Add rule under Rules for incoming emails.
    Figure 1: Add a rule
  5. Under Action, select what shall happen to the emails that match the filter rule. You can choose from the following actions:
    • Reject
    • Forward
    • Redirect
    • Add BCC
    • Tag as 'Clean'
    • Tag as 'Spam'
    • Tag as 'Threat'

    For an overview of the actions, see Actions.

    Figure 2: Select action

    If the selected action requires additional information, an additional field appears under the drop-down menu. For more information about the additional fields of the actions, see Actions.

  6. Under Criterion, select the criterion that determines to which emails shall the filter rule apply. You can choose from the following criteria:
    • Header

      : The filter rule matches all emails with a header that contains a specified search term.

    • Body

      : The filter rule matches all emails with a body that contains a specified search term.

    • Advanced

      : You can specify the sender, the recipient, the IP address and the hostname for the emails. You can also define search terms for the subject and attachment of the emails and a maximum email size. The filter rule matches all emails with the defined properties.

    Figure 3: Select criterion

    Under the drop-down menu, fields for the configuration of the filter rule are displayed. The selected criterion determines which fields are displayed.


    Under Criteria, you can find an overview and explanations of the fields that are available for each criterion.

  7. If you have selected the criterion Advanced, activate the checkboxes of the desired fields.
  8. Enter a search term or a value in the fields.

    The search term is found even if it is surrounded by text.


    To define more accurate and flexible rules, you can use regular expressions. For a description of the structure and functionality of regular expressions, see Regular Expressions and Explanation of Regular Expressions. Under Exceptions to Regular Expressions, you will find an overview of unsupported characters.


    In the field Larger than, enter the maximum email size in megabytes.

  9. Optional: Enter a description of the filter rule under Description (optional).
    Figure 4: Describe filter rule
  10. Click on Add.
    Figure 5: Add filter rule

    The filter rule is added to the table under Rules for incoming emails. The filter rule is assigned the lowest priority of all existing filter rules and is placed at the end of the table. The filter rule is activated.

You have created a filter rule for incoming emails.

You can later edit the filter rule (see Editing a Filter Rule) or change the priority of the filter rule (see Changing the Priority of a Filter Rule).