Sometimes we need certain emails to be classified as Clean regardless of the content in the body or attachments, the best way to achieve this is creating an incoming rule in the Compliance Filter module. In this module we have available 3 criteria to choose from, however only the Advanced criterion will allow us to define up to 7 parameters to evaluate the incoming email and then apply 1 of the 7 available actions.
The most used parameter is the Sender parameter, this will allow us to evaluate a specific sender or a domain (regular expressions are allowed). Let's suppose we are expecting emails with Excel files with macros from a specific user and we want his mails to be always classified as clean. The rule we must create is as follows:
- Action: Tag as "Clean"
- Criterion: Advanced
- Sender: <email@example.com> (e.g. firstname.lastname@example.org)
However, after defining the rule, the user's emails are not classified as clean. This means that the address that we can see in the From of the email (Header-From) is not the same as the Envelope-From address, please take into account that an advanced rule ONLY checks the last one.
You can check the Envelope-From address by following the steps described below:
- Locate the email in the Email Live Tracking
- Click on the colored box on the far right of the log
- Click on the Info button
- Go to the Header tab
- Find the line that starts with "X-antispameurope-sender:"
It is very common for this address to be different when the email is sent from third-party applications or bulk mail services, for example SendGrid, Mailchimp, Mailjet, among others. It is very likely that you will need to make use of regular expressions in order to correctly analyze these emails.
After editing the rule with the correct value, it will be fully adopted on the platform in about 30 minutes.
You can find all the information related with the Compliance Filter module in the following link -> About Compliance Filter (requires control panel login)