Skip to main content

msys.dp_config.commtouch

Last updated March 2020

Scan messages using Commtouch. To use this configuration item you must have the commtouch module loaded. For more information see commtouch Module.

Find below the sample excerpt included in the dp_config.lua file.

require("msys.commtouch");
msys.dp_config.commtouch = {
  scan = true,
  spam_dispositions = {
    confirmed = "reject",
    bulk = "reject",
    -- suspect = "reject"
  },
  virus_dispositions = {
    virus = "reject",
    high = "reject",
    -- medium = "reject"
  },
  honor_whitelist = { "global" }
};

The elements of this configuration table are as follows:

scan

Whether or not to scan using this engine.

spam_disposition

Define the actions to take for the various dispositions. The dispositions are unknown, suspect, bulk, confirmed and none.

confirmed

The action to take when the scan result is confirmed. The legal actions are reject and discard.

bulk

The action to take when the scan result is bulk.

suspect

The action to take when the scan result is suspect.

virus_disposition

Define the actions to take for the various dispositions. The dispositions are nonvirus, medium, high and unknown.

virus

The action to take when the scan result is virus.

high

The action to take when the scan result is high.

medium

The action to take when the scan result is medium.

honor_whitelist

A table listing any applicable whitelists set in the msys.dp_config.whitelist table.

process_result

Define a function to process the scan result. process_result info is a table: { rc = rc, verdict = verdict }. For more information see “msys.dp_config.beik”.

Was this page helpful?