How to adjust the anti-spam (Junk Mail) auto-clean interval

Document ID: 10311

Synopsis

This document will explain how to change the interval of the Anti Spam Auto-Purge feature for the IMAP folder 'Junk Mail' and when this purge action occurs. MailSite 6.1.22 and late

More Information

How to adjust the anti-spam (Junk Mail) auto-clean interval

This document will explain how to change the interval of the Anti Spam Auto-Purge feature for the IMAP folder 'Junk Mail' and when this purge action occurs.

MailSite 6.1.22 and later allows you to configure this parameter via the MailSite console and does not require you to make this registry/database change.

The default value for the Auto-Purge for the folder 'Junk Mail' is for messages that are older than 30 days. This value is calculated on successful logout from an IMAP session. At this point any messages that are older than 30 days from the time of logout will be removed from the folder 'Junk Mail'.

The Registry and the SQL Connector implementations are configurable and below are how to change the values.


Registry Connector

To Adjust the auto purge please follow these steps

  1. Open the registry and navigate to this location - HKEY_Local_Machine/Software/Rockliffe/MailSite/
  2. Add a new Dword value and add this as the name - SpamQuarantinePurgeAge
  3. The Value Data is calculated like this 30*24*60*60 (30 days) = 2592000 (Decimal)

SQL Connector

The Table that needs to have the new entry in is 'MailServerProperties' below is the entries that need to be entered into this Table to alter the default settings.

SQL Database Implementation

ServiceName PropertyName ServerRoleId PropType PropIntValue PropStringValue
server SpamQuarantinePurgeAge 0 4 2592000 NULL