# attr NAME=Quarantine mail from blacklisted hosts and senders
if anyof(pmx_relay :memberof "blacklisted-hosts",
envelope :memberof "From" "blacklisted-senders") {
pmx_quarantine "Blacklisted";
stop;
}
Description:
- If the message originates from a relay defined in the "blacklisted-hosts" list, or the
message has an "Envelope From" address defined in the "blacklisted-senders" list:
- The pmx_quarantine action sends the message to the PureMessage quarantine with the reason "Blacklisted".
- The stop control ends message processing.