Skip to main content

Name

commtouch_scan — email virus scan

Synopsis

commtouch_scan

Description

Use commtouch_scan in a data phase Sieve script and then read the message context variable commtouch-virus-threat. The possible return values are:

  • non-virus

  • unknown

  • medium

  • high

  • virus

Sieve scripts using commtouch_scan can be used in the data phase.

commtouch_scan;

if vctx_mess :is :comparator "i;ascii-casemap"  "commtouch-virus-threat" ["high", "virus"]
{
        ec_action 550 "Virus detected" "virus:Viruses rejected";
        stop;
}

Use of this function requires that the commtouch module be loaded.

See Also

Was this page helpful?