[Rules] Section

The [Rules] section of the main configuration file contains general rules of message processing.

warning

Note that the [Rules] section structure differs from structure of other sections: instead of <Parameter> = <Value> pairs it contains Rules of message processing that are specified one per line (if force hyphenation is not used).

For details on the format used for specifying a rule, see Rules of message processing.

Parameters that must be used for processing of a certain message are searched downwards according to the order they are specified in the [Rules] section. Thus, the order you set them is important: more specific rules must be mentioned before more general rules (for details, see Message processing).

If specified Rules are associated with users (that is, they have sender's or recipient's email addresses as a condition) and number of users with individual rules is high, using of the rules for setting specific processing parameters is ineffective, as complexity of search is proportional to the number of the Rules. Therefore, it is recommended to store individual user settings in the local database. In this case, search of true rules is performed more effectively and moreover, memory usage is optimized.

Parameter values that are frequently used in Message processing rules (SETTINGS part) can be organized into named groups. Each of the groups with <NAME>  name is present in the main Dr.Web MailD configuration file as a section [Rule: <NAME>].

Note that all sections with named setting groups must be specified above the [Rules] section.