For some types of email correspondence, it is desirable to maintain an archive of all messages that originate from a specific address or group of addresses within a company. The following rule creates copies of all messages sent by a member of a designated list and sends them to the quarantine to be archived. (Note that this example assumes that you are using the default PureMessage Policy configuration.)
To archive messages from a group of users using the PureMessage Manager:
Policy Script
To archive messages from a group of users by manually editing the policy script:
if pmx_virus { # attr NAME=Allow unscannable messages to pass through if pmx_virus_cantscan { keep; stop; } reject "One or more viruses were detected in the message."; stop; } # attr NAME=Archive messages from Legal elsif envelope :comparator "i;ascii-casemap" :all :memberof ["from"] ["Legal"] { pmx_file "Legal Archive"; stop; }
See the Policy Script Tutorial for more information about modifying the policy script from the command line.