MailSite Knowledge Base

Enter text to search for or enter the document ID number.
Search:   
Doc ID:   

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
 
 

MailSite SE - Easy email and calendar server software for small businesses | MailSite ExpressPro - AJAX email and calendar client for web browsers
MailSite Fusion SP - Scalable and clustered email and calendar hosting software | Email Server and Calendar Server Software
MailSite Mobile Sync Server | MailSite Calendar Server Software | MailSite Anti-Virus | Mailsite Anti-Spam | Customer Portal
Support | Webstore | Services | Partners | Press | Company | Contact | Reviews | Site Map | Privacy | ©2010 MailSite, Inc.
BlackBerry® is a registered trademark of Research in Motion Limited. Outlook®, Windows Vista® and ActiveSync® are registered trademarks of Microsoft Corporation. MailSite Inc. is in No Way Affiliated with Research in Motion Limited or Microsoft Corporation.