Adding an Outbound Rule

# Adding an Outbound Rule For a Host

This page allows you to add a new outbound rule for the current domain. Outbound processing rules filter messages that are being sent out through IMail Server to non-local addresses and can only be created at the domain level. Outbound processing rules for the mail host are stored in the orules.ima file, which is located in the IMail top directory\hostname.

## Creating a New Outbound Rule

1. Select the field that you want the rule to search. You can select from (Subject, To, From, Sender, Header and Body).

2. Select contains to have the processing rule look for messages that contain the search text. Select does not contain to look for messages that do not contain the search text.

3. In the PHRASE text box, enter the search text that you want the rule to search for. To enter search text, you can either enter it into the PHRASE text box as described below, or specify an external file that contains the search text you want to use.

Enter the search text by doing one or more of the following:

- Enter the literal text (up to 255 characters) that you want to search for. For example, if you want to find the word jazz, type: jazz.

- Type search expressions and quantifiers as shown in Text Patterns.

- Paste a portion of a mail message that meets your search criteria. For example, you could copy and paste text such as "XMSMailPriority(High)" from the header of a message; this would search for High priority messages.

4. Check Search string from file if you have placed the search text in an external text file. The list box shows a list of the existing rule files.

5. Select Case sensitive match to search for text that matches the case of the search text; to ignore case, clear the Case sensitive match box.

6. Click Add Condition. The condition that you created is added to the rule and is displayed in the Rule text box.

7. In the lower section of the page, select the action you want to occur when a message is caught by the rule. You can choose only one of the following actions:

- Send. Processes the message as normal by sending it to the addressee.

- Send with Copy to. Processes the message as normal by sending it to the addressee, and also sends a copy to the address that is entered in the Addresses text box.

- Delete. Deletes the message.

- Redirect to. Does not send the message to the addressee. Instead, the message is re-directed to the address that is entered in the Addresses box.

- Bounce. Bounces the message back to the sender, without delivering it.

Note: If you choose either Send with Copy to or Redirect to, you must also enter an address in the Address text box.

7. If this is the only condition you want the rule to have, click Finish and the rule will be activated. If you want to add multiple conditions to the rule, read the next section.

## Adding Multiple Conditions

To add more than one condition to a rule, create the first condition by following steps 1 through 5 above and then click either the "Insert AND" or the "Insert OR" button. Create the second condition as you did the first, then proceed to steps 6 and 7.

Tip: To delete any single line from the Rule text box, select the line to delete and click Remove.

## Changing the Processing Order of Conditions

Conditions are processed in the order that they appear from top to bottom, as boolean expressions. To change the processing order of a condition, select the condition in the Rule text box and click either Move Up or Move Down.

## Related Topics

Overview of processing Rules

Adding an Inbound Rule for a Mail Host

Modifying an Existing Outbound Rule

Storing Search Text in an External File

Adding Multiple Conditions to Rules

Determining which Rule Trapped a Message