An email filter sorts and redirects incoming emails according to certain criteria that you specify to determine how to handle email messages.
The system uses the mail server Dovecot and the plugin Sieve. You can install them in → .
.1Go to →→
.2 menu → →.
.3Enter the name.
.4In the before field select a condition.
.5To set an action that will be applied to all emails:
.aIn the field select "Without rules".
.6To set the conditions when the filter will be applied:
.aIn the field select: "All are true" — the filter will be applied if all conditions are met; "At least one is true" — the filter will be applied if at least one condition is met.
Select and add parameters. Set other rules and click on .
"Sender", "sender or recipient", "recipient", "message body", "message header"
.1Select an to check the parameter:
- equals — the email exactly matches a defined value;
- contains — the email parameter contains a text that you defined in ;
- matches regex — the email parameter matches a regular expression that you define in Value.
.2Enter one or several Values that will be compared with the email parameter.
.3Check the box to enable the converse condition.
.1Select an to check the parameter: "greater" or "less".
.2Enter the email .
.1Enter the message header in the field. You can enter several values space-separated.
.2Select an to check the parameter:
- equals — the email exactly matches a defined value;
- contains — the email parameter contains a text that you defined in ;
- matches regex — the email parameter matches a regular expression that you define in .
.3Enter one or several that will be compared with the email parameter.
.4Check the box to enable the converse condition.
When an email matches your filter, the control panel will apply one of the actions that you specify:
Select and enter its parameters. Add as many actions as you need and click on .
In select where you want to save the email copy:
- redirect — the email copy will be redirected to the mailbox specified in the field;
- save to folder — the email will be saved in the specified . Select "New directory" to create a new one and enter its .
The email will be deleted.
The email will be rejected. Enter a response to the email sender in the field.
The email copy will be sent to the specified mailbox. Enter the recipient's email address in the field.
The ticket will be saved to the specified Directory. Or you can create a "New directory" and enter the .
Details
Email filtering rules are saved in the directory . The file for every email filter will contain the following record:
include:personal "<Mail filter name>";
Email filtering parameters are specified in the file.Learn more in the Dovecot documentation.