Storing Search Strings in an External Text (.rul) File

If you need to frequently update and distribute the delivery rules search text, you can use external text files to store the search text. External files were designed to allow frequent updating of rules without creating a new rule.

Important: The external text file must have a file extension of ".rul" and it must exist in the same directory as the "rules.ima" or "orules.ima" file.

Example:

(mortgage|loans|credit offer), where the pipes mean "or" and separate the conditions. Usage of the "and" condition is not permitted in a ".rul" file. Also, the ".rul" file must be located in the same directory as the "rules.ima" or "orules.ima" file.

To illustrate this, the administrator can use this method to catch mail from known spammers. The administrator might create a text file named "spam1.rul". Each time a new spammer address is discovered, the administrator can add it to the "spam1.rul" file. The "rules.ima" or "orules.ima" file can reference the text file named "spam.rul". The procedure for storing search text in an external file is the same for Inbound and Outbound rules. For more information, see External Text File Example and Rule Syntax.

To create a delivery rule that references an external text file:

  1. Select a mail domain , a user, or the list that you want to create a rule for.
  2. Click either Inbound Rules or Outbound Rules, then click Add to create a new mail domain rule. The Rule Settings page appears. For more information, see Adding Inbound Rule Conditions for Domains or Adding Outbound Rule Conditions for Domains.
  1. Click Edit to open and edit the rule file in Windows Notepad (or your default text editor). If the rules file does not exist, one will be automatically created. For information about creating the search text, see Rule Syntax.
  2. Click Save to save the rule.

Related Topics

Overview of Mail Delivery Rules

Delivery Rule Syntax