IMail v12 Administrator Help
Adding a Rule Condition
Use this pop-up dialog to create a rule condition.
Define Condition
Where. Select the message field that you want to filter: From, To, Subject, Sender,
Body, or Header.
Comparison.
Contains. Select to have the delivery rule filter messages that have this search text.
Does Not Contain. Select to have the delivery rule filter messages that do not have the search text.
Search Text. Enter search text that contains the text you want to search. Enter the search text by doing one or more of the following:
Enter the literal text that you want to search for. For example, if you want to find the word "jazz", enter: jazz
Type search expressions and quantifiers as shown in text patterns (on page 260).
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.
Match Case. Select to search for text that matches the case of the search text. To ignore the text case, clear Match Case.
Save. Click Save to add condition.
Cancel. Click Cancel to exit without saving changes.
Related Topics
Inbound Rules for Domains (on page 246)
Overview of Mail Delivery Rules (on page 244)
Delivery Rule Syntax (on page 257)
How Delivery Rules are Stored and Processed (on page 244)
Adding Multiple Conditions for Domains
You can create multiple conditions for both inbound and outbound rules. By using multiple conditions, you can often combine multiple rules into one, thus, saving time and creating a more compact rules file. Sometimes a rule with only one condition is adequate to fulfill rule filtering requirements. However, when you need to create more complex rules, you may want to use multiple conditions. For example, see Rule with Multiple Conditions Example (on
page 252).
To add a rule with multiple conditions:
1 Follow the instructions to create a rule as described in Setting Inbound Rules for Domains
(on page 246) or Setting Outbound Rules for Domains (on page 247). After adding the first
rule condition, select the new rule condition.
2 Click Add AND/OR... This will bring a pop-up window allowing either
251
IMail v12 Administrator Help
selection of the "AND" button, meaning "ALL" the rule conditions must be met for the message to be trapped.
or selection of the "OR" button, meaning "ANY" one of the conditions must be met for the message to be trapped.
3 Create the second condition as you did the first. Continue adding conditions until you are satisfied with the rule.
4 Follow the instructions to set the rule actions as described in the Actions section of
Adding Inbound Rules for Domains (on page 249) or Adding Outbound Rules for Domains
(on page 249).
5 When you are finished creating the rule, click Add to save your changes.
Rule with Multiple Conditions Example
If you want all e-mails from your supervisor containing information about "project updates" to be sent to a specific mailbox in your account, you would set a rule with two conditions:
1 The message must be from your supervisor; and
2 The message must contain the words "project updates" in the subject or message body of the e-mail.
The rules.ima format:
<BOSS>[email protected]!AND!B~project updates:BOSS
Where:
<BOSS>
[email protected]
!AND!
B~project updates
:BOSS
Rule Name
From Address must contain "[email protected]"
AND means all conditions must be true to be selected
Body of message must contain "project updates"
Mailbox name, that message will be forwarded to of user's account.
Attachment Blocking
How to get here
Use the Attachment Blocking page to specify types of attachments to block from incoming and outgoing e-mail messages and actions to take on blocked messages. Attachments are blocked based on message MIME types and filename types. In addition to selecting the types of message attachments to block, you can define actions to take on blocked messages.
An attachment blocking folder exists for each e-mail domain and the attachment blocking options can be based on the current e-mail domain or the primary e-mail domain settings.
Use the Users Attachment Blocking page to search for attachment blocking types in the selected domain, access and edit attachment blocking types, add new attachment blocking types, or delete attachment blocking types.
252
IMail v12 Administrator Help
Important: Remember to restart Queue Manager after making Attachment Blocking or
Blocking Message modifications.
Domain: Shows the current selected domain. From the drop down you can pick any of the domains available to this administrative user account. (Primary and non-primary IP'd domains only)
Use. Drop down menu.
No Filter. Select this option to disable all Attachment Blocking for this domain.
Current Domain. Set by Default. Only option when only a primary domain exists. For non-primary domains use this option if you would like the attachment blocking settings to be different than the primary domain.
Primary Domain. Select this option to allow the current non-primary domain to use the same attachment blocking settings as the primary domain.
Content. Attachment blocking types. See Adding Attachment Blocking Types (on
page 254), for examples.
Type. Select from File name or MIME type.
Action. Select the action to take on a attachment blocking type match:
Replace Attachment to replace the attachment with a message that provides information about the blocked attachment.
Strip Attachment to remove the attachment without a message that provides information about the blocked attachment.
Enabled. Select to enable or disable rules that you have added to the attachment blocking settings, without having to remove the setting.
Add. Select to create a new attachment blocking type. For more information, see Adding
Attachment Blocking Rules (on page 254).
Edit. Select an attachment blocking type that you want to modify, then click Edit to modify an existing attachment type.
Delete. Select an attachment blocking type that you want to delete from the current domain, then click Delete to delete the type.
Attachment Blocking Message
The message box includes a default message that provides information about the attachment that has been removed. You can also create a custom message that replaces attachment body content that has been blocked.
When an attachment is blocked and the Replace Attachment option is selected in the
Action for match list (on the Add Blocker page (on page 254) accessed by clicking Add on the
Attachment Blocking page), a custom message is sent in the place of the attachment to the message recipient.
Use:
253
IMail v12 Administrator Help
Current Domain. Select this option to define attachment blocking messages specific to the current e-mail domain.
Primary Domain (default). Select this option to define attachment blocking messages based on the primary e-mail domain's message settings.
This message will replace the body of a blocked e-mail attachment:
Use the default message that is included in the message box or enter a custom message to send e-mail recipients when an attachment is blocked. You can include variables in the custom message:
%t to indicate the message type (MIME or filename)
%c to indicate the filename of the blocked attachment (if applicable)
The contents of the message box are saved in a file named ab-message.txt located in the appropriate e-mail domain's top directory. The message box text should only be edited from the Attachment Blocking Message tab and is limited to 924 characters.
Verbose Logging is selected on the SMTP Settings (on page 413) Page.
Related Topics
Adding Attachment Blocking Types (on page 254)
Blocking Message (on page 255)
Adding Attachment Blocking types
Use the Add Blocker page to set options for new attachment blocking types.
Type of Blocker list. Select the type of attachment to block: Filename or MIME .
Content to Search for. Select from the default file or MIME types or enter a custom file or MIME type that is not included in the list.
Filename. Default file types are: *.chm, *.cmd, *.com , *.cpl, *.crt, *.csh, *.exe, *.fxp,
*.hlp, *.hta, *.inf, *.ins, *.isp, *.js, *.jse, *.ksh, *.lnk, *.mda, *.mdb, *.mde, *.mdt, *.mdw,
*.mdz, *.msc, *.msi, *.msp, *.mst, *.ops, *.pcd, *.pif, *.prf, *.prg, *.reg, *.scf, *.scr, *.sct,
*.shb, *.shs, *.url , *.vb, *.vbe, *.vbs, *.wsc, *.wsf, and *.wsh.
MIME. Default MIME types are: application and image/jpeg.
Action for match list. Select the action to take on a attachment blocking type match:
Replace to replace the attachment with a message that provides information about the blocked attachment.
Strip to remove the attachment without a message that provides information about the blocked attachment.
Enable Blocker Now (selected by default). Select to enable or disable rules that you have added to the attachment blocking settings.
Add. Click Add to save changes.
254
IMail v12 Administrator Help
Cancel. Click Cancel to exit without saving changes.
The attachment blocking rule settings are saved in a file named
"ab.txt"
located in the appropriate e-mail domain 's top directory. In addition to adding attachment blocking rules from the Attachment Blocking page, you can edit the settings in the " ab.txt" file
.
Related Topics
Setting Attachment Blocking Options (on page 252)
Blocking Message
How to get here
The blocking message that a recipient will receive when a message of attachment has been blocked.
Domain: Shows the current selected domain. From this drop down you can switch to any of the domains available to this administrative user account.
Use. Drop down menu.
Current Domain. Set by Default. Only option when only a primary domain exists. For non-primary domains use this option if you would like the blocking message to be different than the primary domain.
Primary Domain. Select this option to allow the current non-primary domain to use the same blocking message as the primary domain.
Message. Text that will appear in the body of a blocked attachment.
Save. Click to save your settings.
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 following rules are required for external rules:
1. The External Rule file must exist in the same directory as the
"rules.ima"
or
"orules.ima"
file.
2. The External Rule file when referenced in the rule must not include the
".rul"
file extension.
3. The External Rule file must have a file extension of
".rul"
255