Adding a New Rule

Follow these steps

  1. On the default page of the Policy tab, click add main rule at the bottom of the page.

    This creates a new rule at the same hierarchical level as "Mail from internal hosts" and "Mail from external hosts" in the default PureMessage policy script.

  2. In the (New Rule) text box, type a descriptive title.
  3. In the <select the test> drop-down list, click the test that you want to use.
    Depending on the test that you choose, additional text boxes may be displayed, which must be selected or filled, as appropriate. See "About Tests" for more information on these choices.
    Note: Optionally, you may add multiple tests by clicking add test, or remove unwanted tests by clicking the delete icon [x] immediately below the row for the test that you want to delete.
  4. In the actions drop-down list, select the action that you want to use.
    Depending on the action that you choose, additional text boxes may be displayed, which must be selected or filled, as appropriate. See "About Actions" for more information on these choices.
    Note: Optionally, you can add rules as part of the action taken, add multiple actions by clicking add test, or remove unwanted rules or tests by clicking the delete icon [x] immediately below the row for the rule or test that you want to delete. You can also change the order of multiple tests by clicking the up or down arrow icons immediately below the appropriate row.
  5. Save, Cancel, Copy, Cut, or Delete the new rule or Add Alternative rule as appropriate.

    While the policy is being edited, the edits are stored in a temporary file (policy.siv.edit). The changes are not made active until you Commit them. The following buttons are available when a rule is selected for editing:

    • Save: Writes the changes to the temporary policy file, policy.siv.edit.
    • Cancel: Removes the changes without writing to the temporary policy file.
    • Copy: Copies the current rule (along with its associated tests and actions), so that it may be pasted elsewhere in the policy script.
    • Cut: Removes a rule (along with its associated tests and actions) from its current position, so that it may be pasted elsewhere in the policy script.
    • Delete: Deletes the entire rule, including the associated tests and actions.
    • Paste: Inserts the most recently cut or copied rule immediately after the currently selected rule. The new rule is displayed at the same level of the hierarchy as the preceding rule. The rule is added as an "IF" rule or an "ELSEIF" rule, depending on the context. If you click the Paste button in a rule that is the last in a series of nested rules (an "ELSE" rule), or if it is a stand-alone "IF" rule, then a new "IF" rule is added. However, if you click the Paste button in a rule that is an "ELSEIF" or "IF" rule, followed by either an "ELSEIF" or "ELSE" rule, then a new "ELSEIF" rule is added.
    • Add Alternative: Multiple rules can be specified at the same hierarchical level of the policy. When a second rule is specified using the Add Alternative button, it creates an "or" condition between the new rule and the rule above. Therefore, the second rule is only executed if the test in the first rule is not true. When rules are added using the add rule button, it creates an "and" condition between the new rule and the rule above. Regardless of whether the test in the first rule is true, subsequent rules will be processed.
    Note: The Copy, Cut and Paste options are significant because of the importance of rule sequence. See "Policy Rules: Order of Processing" for more information.
  6. Commit, Revert, or generate a Source Diff.

    While the policy is being edited, the edits are stored in the temporary policy.siv.edit file. When you think that you have the policy changes made to your satisfaction, you can perform any of these actions:

    • Commit: Writes the temporary policy file (policy.siv.edit) to the "live" policy file (policy.siv).
      Note: It is strongly advised that you test the modified policy before you commit it. See "Testing the Current Policy" for information on this procedure.
    • Revert: Deletes the temporary policy file (policy.siv.edit) and returns to the display of the unaltered policy file (policy.siv).
    • Source Diff: Displays a comparison of the source code of the temporary policy file that contains the changes with the current "live" policy file.
    • see the source: Displays the source code of the temporary policy file that contains the changes. To edit the source code, click the filename. To return to the graphical policy editor, click go to constructor mode.