| |
MailSite Knowledge Base
How to Scan Maillists When Using Domain Level Filtering
Document #:10505
Applies To:
- MailSite
9
- Anti-Spam
- Anti-Virus
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 can be sent to a maillist and forwarded onto members. (If Spam is set to scan at the server level(SMTPRA), than ALL messages are scanned).
More Information: Ensure that a filter is added to the Server > example.com > Filtering > Sieve Scripts as follows for the domain you wish to filter spam or viruses for. Any filter added at the Server Receive Script is not applied to these messages as they are scanned at the lower domain level.
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;
Last revised 2009-5-22
|
|