User Tools

Site Tools


reference:spam_filter_rules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
reference:spam_filter_rules [2011/08/19 17:23] – created simonreference:spam_filter_rules [2023/01/18 15:57] – [Statements] paul
Line 11: Line 11:
 The language is intended to be used by advanced users with some programming experience. VPOP3 comes with a pre-configured spam filter script, and it is recommended that you use that, and modify the configuration of that script using the Settings -> Spam Filter (Utilities -> SpamFilter in version 2) settings pages unless you are willing and able to modify and create a program using the filtering language. The language is intended to be used by advanced users with some programming experience. VPOP3 comes with a pre-configured spam filter script, and it is recommended that you use that, and modify the configuration of that script using the Settings -> Spam Filter (Utilities -> SpamFilter in version 2) settings pages unless you are willing and able to modify and create a program using the filtering language.
  
 +If you do need to create custom spam filter scripts and want us to do it for you, that is possible, but it is not covered by our standard support services. If you [[support@pscs.co.uk|contact us]] with details of what you want to do, we can tell you how much it will cost for us to do it.
  
 =====Spam Filter Rules Files===== =====Spam Filter Rules Files=====
Line 18: Line 19:
  
 For instance, the default spamrules.txt file contains the statements For instance, the default spamrules.txt file contains the statements
- +<code> 
-  include spamrules_initialise.txt +include spamrules_initialise.txt 
-  include spamrules_userlocal.txt +include spamrules_userlocal.txt 
-  include spamrules_localmail.txt +include spamrules_localmail.txt 
-  include spamrules_userchecks.txt +include spamrules_userchecks.txt 
-  include spamrules_checks.txt +include spamrules_checks.txt 
-  include spamrules_userprocess.txt +include spamrules_userprocess.txt 
-  include spamrules_processresults.txt +include spamrules_processresults.txt 
-  include spamrules_userfinal.txt+include spamrules_userfinal.txt 
 +</code>
  
 This means that VPOP3 reads the spamrules_initialise.txt, spamrules_userlocal.txt, spamrules_localmail.txt, spamrules_userchecks.txt, spamrules_checks.txt etc files in the specified order. This means that VPOP3 reads the spamrules_initialise.txt, spamrules_userlocal.txt, spamrules_localmail.txt, spamrules_userchecks.txt, spamrules_checks.txt etc files in the specified order.
Line 38: Line 40:
   * **spamrules_processresults.txt** - this contains the standard behaviour to perform depending on the calculated spam 'score'   * **spamrules_processresults.txt** - this contains the standard behaviour to perform depending on the calculated spam 'score'
  
-These above files may be overwritten by future installations of VPOP3. +These above files may be overwritten by future installations of VPOP3 and by the update procedure of the Spam Filter subscription.
  
 The **spamrules_user*.txt** files are for adding your own customised script entries, without them being overwritten by future installations of VPOP3. The **spamrules_user*.txt** files are for adding your own customised script entries, without them being overwritten by future installations of VPOP3.
Line 58: Line 60:
   * [[spamrules_statement_addnulladdress|AddNullAddress]]   * [[spamrules_statement_addnulladdress|AddNullAddress]]
   * [[spamrules_statement_addwhitelist|AddWhiteList]]   * [[spamrules_statement_addwhitelist|AddWhiteList]]
 +  * [[spamrules_statement_bagsize|BagSize]]
   * [[spamrules_statement_break|Break]]   * [[spamrules_statement_break|Break]]
-  * [[spamrules_statement_bulkscan_endbulkscan|BulkScan / EndBulkScan]]+  * [[spamrules_statement_bulkscan|BulkScan]]
   * [[spamrules_statement_clearbag|ClearBag]]   * [[spamrules_statement_clearbag|ClearBag]]
   * [[spamrules_statement_convert|Convert]]   * [[spamrules_statement_convert|Convert]]
   * [[spamrules_statement_copy|Copy]]   * [[spamrules_statement_copy|Copy]]
 +  * [[spamrules_statement_copybag|CopyBag]]
   * [[spamrules_statement_countmatches|CountMatches]]   * [[spamrules_statement_countmatches|CountMatches]]
 +  * [[spamrules_statement_dbinsert|DBInsert]]
 +  * [[spamrules_statement_dbdeletekey|DBDeleteKey]]
 +  * [[spamrules_statement_dbdeletetime|DBDeleteTime]]
 +  * [[spamrules_statement_dbdeleteval|DBDeleteVal]]
 +  * [[spamrules_statement_dbupdate|DBUpdate]]
 +  * [[spamrules_statement_dbquery|DBQuery]]
 +  * [[spamrules_statement_dbqueryone|DBQueryOne]]
   * [[spamrules_statement_definerule|DefineRule]]   * [[spamrules_statement_definerule|DefineRule]]
   * [[spamrules_statement_definesetting|DefineSetting]]   * [[spamrules_statement_definesetting|DefineSetting]]
Line 69: Line 80:
   * [[spamrules_statement_dnsbl|DNSBL]]   * [[spamrules_statement_dnsbl|DNSBL]]
   * [[spamrules_statement_escape|Escape]]   * [[spamrules_statement_escape|Escape]]
-  * [[spamrules_statement_foreach_addr_endfor|ForEach Addr / EndFor]] +  * [[spamrules_statement_extralog|ExtraLog]] 
-  * [[spamrules_statement_foreach_bag_endfor|ForEach Bag / EndFor]] +  * [[spamrules_statement_FileBulkScan|FileBulkScan]] 
-  * [[spamrules_statement_foreach_header_endfor|ForEach Header / EndFor]] +  * [[spamrules_statement_foreach|ForEach]]
-  * [[spamrules_statement_foreach_mimesection_endfor|ForEach MimeSection / EndFor]] +
-  * [[spamrules_statement_foreach_recipient_endfor|ForEach Recipient / EndFor]] +
-  * [[spamrules_statement_foreach_tag_endfor|ForEach Tag / EndFor]] +
-  * [[spamrules_statement_foreach_url_endfor|ForEach  / EndFor]] +
-  * [[spamrules_statement_foreach__endfor|ForEach URL / EndFor]]+
   * [[spamrules_statement_getaddresstype|GetAddressType]]   * [[spamrules_statement_getaddresstype|GetAddressType]]
   * [[spamrules_statement_getdecodedsection|GetDecodedSection]]   * [[spamrules_statement_getdecodedsection|GetDecodedSection]]
 +  * [[spamrules_statement_getgeoip|GetGeoIP]]
   * [[spamrules_statement_getmd5|GetMD5]]   * [[spamrules_statement_getmd5|GetMD5]]
   * [[spamrules_statement_getrfc822date|GetRFC822Date]]   * [[spamrules_statement_getrfc822date|GetRFC822Date]]
   * [[spamrules_statement_getsectionMD5|GetSectionMD5]]   * [[spamrules_statement_getsectionMD5|GetSectionMD5]]
   * [[spamrules_statement_getsectionencoding|GetSectionEncoding]]   * [[spamrules_statement_getsectionencoding|GetSectionEncoding]]
 +  * [[spamrules_statement_getsha1|GetSha1]]
   * [[spamrules_statement_getusergroup|GetUserGroup]]   * [[spamrules_statement_getusergroup|GetUserGroup]]
 +  * [[spamrules_statement_globalmatch|GlobalMatch]]
   * [[spamrules_statement_goto|Goto]]   * [[spamrules_statement_goto|Goto]]
   * [[spamrules_statement_httpget|HTTPGet]]   * [[spamrules_statement_httpget|HTTPGet]]
Line 93: Line 102:
   * [[spamrules_statement_ifmatch|IfMatch]]   * [[spamrules_statement_ifmatch|IfMatch]]
   * [[spamrules_statement_include|Include]]   * [[spamrules_statement_include|Include]]
 +  * [[spamrules_statement_loadbag|LoadBag]]
   * [[spamrules_statement_log|Log]]   * [[spamrules_statement_log|Log]]
 +  * [[spamrules_statement_random|Random]]
   * [[spamrules_statement_redirect|Redirect]]   * [[spamrules_statement_redirect|Redirect]]
   * [[spamrules_statement_reject|Reject]]   * [[spamrules_statement_reject|Reject]]
Line 110: Line 121:
   * [[spamrules_statement_surbl|SURBL]]   * [[spamrules_statement_surbl|SURBL]]
   * [[spamrules_statement_winhttpget|WinHTTPGet]]   * [[spamrules_statement_winhttpget|WinHTTPGet]]
 +  * [[spamrules_statement_zipcontents|ZipContents]]
 +  * [[spamrules_statement_zipcontentsfull|ZipContentsFull]]
 +  * [[spamrules_statement_zipcount|ZipCount]]
 +  * [[spamrules_statement_zipfile|ZipFile]]
 +=====Examples=====
 +  * [[spamrules_addrandomtexttosubject|Add random text to subject on incoming messages]]
 +  * [[spamrules_addfixedtexttosubject|Add fixed text to subject on incoming messages]]
 +  * [[spamrules_checkrecipient|Increase spam score for specified recipients]]
 +  * [[spamrules_longsenderdomain|Increase spam score for long sender domains]]
 +  * [[spamrules_manylinks|Increase spam score for many links in the email]]
 +  * [[spamrules_subject|Increase spam score for subject marker]]
 +  * [[spamrules_header|Increase spam score for spam header marker]]
 +  * [[spamrules_ipwhitelist|Allow messages through from a specific IP address]]
 +
reference/spam_filter_rules.txt · Last modified: 2023/01/18 15:57 by paul