How to Scan Maillists When Using Domain Level Filtering
Document ID: 10505
Synopsis
With MailSite set up to scan messages at the domain level for Anti-Spam, messages sent to maillists are not scanned unless the correct filter is used. This means by default 'spam' messages
More Information
As the filtering is being done at the domain level the only options available are to either reject a message as shown below or to redirect it to another address.
require ["reject","virustest","relational","comparator-i;ascii-numeric","x_spamtest","x_editheader","x_variables","x_body"];
/*
RuleName: Reject Viruses
RuleDescription: Rejects mail containing a virus.
*/
if true {
if virustest :value "ge" :comparator "i;ascii-numeric" "2" {
reject "The message was rejected because it contained a virus.";
stop;
}
}
/*
RuleName: Reject Spam Score GE 9
RuleDescription: Reject all messages if Spam Score is greater than or equal to 9 unless the sender is whitelisted
*/
if true {
if allof (
not header :is "From" "${Whitelist}",
spamtest :value "ge" :comparator "i;ascii-numeric" "9"
) {
reject "This message has been scored as spam with a probability of more than 90%";
stop;
}
}
/* This rule is inserted by Mailsite to make sure that the default delivery action is to deliver the message.*/
keep;
stop;