stop

The stop control halts execution of the policy script. Unlike the if and else control commands, the stop command is used within a block to end message filtering when the required actions have executed and message filtering is no longer required.

Generic Example:
if test {
    action;
    next_action;
    stop;
}
Policy Script Example:
if pmx_relay :memberof "whitelisted-hosts" {
    keep;
    stop;
}

In this example, the filter delivers the message if the host is on the PureMessage "whitelisted-hosts" list. The stop control command ends the policy script after message delivery.