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. The external text file must have a file extension of .rul.

Example:

(mortgage\loans\credit offer), where the pipes mean "or" and separate the conditions. You cannot use the "and" condition in a .rul file and the rule must appear in parentheses. You need to locate the .rul file in program files/collaboration/imail.

To illustrate this, the administrator can use this method to catch mail from known spammers. The administrator might create a text file named spam .rul. Each time a new spammer address is discovered, the administrator can add it to the spam.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 Delivery Rule Conditions for IMail Domains or Adding Outbound Delivery Rule Conditions for IMail Domains.
  3. Click Use conditions from an external file, then do one of the following:
    • If the external text file already exists, select the file. For example,select rulefilename where rulefilename is the name of the .rul file you want to reference.
    • If the external text file does not exist, enter a new, unique name for the .rul file. Do not enter the file extension .rul because IMail will append it to the filename you enter.
  4. 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.
  5. Click Save to save the rule.

Related Topics

Overview of Mail Delivery Rules

Delivery Rule Syntax