Documentation Index

Fetch the complete documentation index at: https://docs.trustifi.com/llms.txt

Use this file to discover all available pages before exploring further.

Inbound Email Rules

Prev Next

Trustifi supports the creation of custom-made rules for specific scenarios of inbound mail flow.

To create such a rule, you will first need to navigate to the Inbound Email Rules page (Inbound Management > Inbound Shield > Inbound Email Rules).
To create a new rule, click on “Create New Rule“.

The process of creating a rule is quite simple and requires a few basic steps:

  1. Giving the rule a name

  2. Configuring the conditions (under “IF“) for when the rule should be triggered

  3. Configuring the actions to be taken (under “THEN“) when the rule is triggered

  4. Adding the rule

In the rule pictured in the screenshot above, the condition is to match on any email that has a specific header value. When this condition is met, the result of the rule is to quarantine the email.
You can also add exceptions to any rule you create to indicate when the rule should not be triggered.


After the rule has been created, you can click on the “Actions” menu next to it to edit the rule, clone it, or delete it.

Also, you can click on the toggle if you want to “Disable” or “Enable” the rule.

If you have more than one inbound email rule, the rules will be applied in the order they appear in (1st, 2nd, and so on). You can drag-drop rules to switch the priority order.

To see a full description of all the rule conditions and actions, please see below.


Rule Conditions

Address & Identity Conditions

  • Sender: Triggers the rule when the sender's email address matches one or more specified email addresses.

  • Addresses: this can look for addresses in any of the email fields (To/Cc/Bcc/From).

  • At least one domain: this will check if at least one of the domains in the email’s To/Cc or From fields is part of the specified list.

  • Names: will look for the presence of a specified name in any of the email fields (To/Cc/Bcc/From).

  • Sender country (TLD): the rule will be triggered if the sender's email address belongs to one of the specified Top Level Domain.

Content-Based Conditions

  • Keywords: will look for the presence of specified keywords or phrases in the email body and/or subject.

  • Attachment types: will look for the presence of specific attachment types in the email.

    Note: currently attachment types can only be selected from a list.

  • Email total size: the rule will be triggered if the email’s total size (body+attachments) is larger than the specified size (in KB).

Threat Analysis Conditions

  • Threat category: will look for the final threat category of the email from the Inbound Shield scan

  • Threat sub-category: will look for the specific threat sub-category of the email from the Inbound Shield scan

Organizational & Metadata Conditions

  • Groups: will check if your specified groups are in the email recipients.

  • Custom header value: will check for the presence of specified header keys and/or values in the email.

  • Received hour: the rule will be triggered if the email is received within the selected hours of the day.

  • Received day: the rule will be triggered if the email is received within the selected days of the week

  • Authentication Headers Status: the rule will be triggered if the DKIM, SPF, or DMARC headers match the selected status

Rule Actions

Rule Processing & Policy Control

  • Stop rules processing: when this option is selected, no further rules will applied afterward.

  • Ignore threat prevention rules: notification will not be sent to reviewers and the email content will not be changed, the email will be released.

  • Apply custom threat prevention rules: will use a custom preset of threat prevention rules instead of the default rules.

  • Release: the email will be released to the recipient's inbox.

  • Quarantine: the email will not arrive in the recipient’s mailbox, and will be sent to quarantine.

  • Keep record: a record of the email will be kept in the “Quarantined emails” page, but the email will be released to the recipient’s mailbox.

  • Defang URLs: all URLs in the released email will be defanged and become unclickable

Notification & Visibility Actions

  • Skip quarantine notification: no quarantine notification will be sent, regardless of the default notification settings.  

  • Add subject text: the provided text will be added to the beginning of the email subject when it is released.

  • Add footer: the provided footer will be added to emails scanned by Inbound Shield.

  • Add warning label: released email will show a warning label to notify users of the threats found.

  • Apply Look & Feel: notifications will be sent with the selected customization    

Forwarding & Redirection Actions

  • Auto forward: will forward a copy of the email to all specified addresses, while the original copy will remain in the original recipient’s inbox.

    Note: this will not auto-forward emails that have been sent to quarantine by other rules/policies.

  • Redirect: will redirect the email to all specified addresses, without sending the email to the original recipient’s inbox.

    Note: this will not redirect emails that have been sent to quarantine by other rules/policies.

  • Auto reply: will send an automatic reply using the provided text/HTML.

    Note: this will not auto-reply to emails that have been sent to quarantine by other rules/policies.