Policy Script 1: Scan and Deliver Internal Messages

pmx_test_mark;
# attr NAME=Mail from internal hosts
if pmx_relay :memberof "internal-hosts" {
    # The 'pmx-mlog-watch' depends on this to know which messages
    # are outgoing and which are not.
    pmx_mark1 "i";
    # attr NAME=Reject mail containing viruses
    if pmx_virus {
        reject "One or more viruses were detected in the message.";
        stop;
    }
}

Description:

Related information
pmx-policy