Fortinet white logo
Fortinet white logo

CLI Reference

mailsetting mail-scan-options

mailsetting mail-scan-options

Use this command to configure how FortiMail scans compressed files such as ZIP archives.

Syntax

config mailsetting mail-scan-options

set content-scan-level {high | low | medium}

set decompress-max-level <level_int>

set decompress-max-ratio <ratio_int>

set decompress-max-size <size_int>

set scan-microsoft-msg {enable | disable}

set scan-timeout-action {tempfail | passthrough}

set scan-timeout-value <seconds_int>

end

Variable

Description

Default

content-scan-level {high | low | medium}

Set the scan level of dictionary and DLP rules.

When set to medium or high, FortiMail uses recursive regular expressions to find a match, which consumes more system resources.

medium

decompress-max-level <level_int>

Specify how many levels to decompress the archived files for antivirus and content scan. Valid range is 1 to 36.

12

decompress-max-ratio <ratio_int>

Specify the maximum compression ratio for FortiMail to decompress. Valid range is 1 to 1000.

200

decompress-max-size <size_int>

Specify the maximum file size in megabytes (MB) to scan after the archived files are decompressed. This applies to every file after decompression. Bigger files will not be scanned.

10

scan-microsoft-msg {enable | disable}

Enable to scan Microsoft Transport Neutral Encapsulation format (TNEF) and MSG format attachments.

enable

scan-timeout-action {tempfail | passthrough}

When the email attachments are large and the email scanning has timed out, FortiMail can either send a temporary fail message to the sender or just let the message pass through without further scanning.

tempfail

scan-timeout-value <seconds_int>

Specify how long in seconds that FortiMail should spend on scanning email contents. Valid range is 270 to 900.

When the specified timeout has been reached, FortiMail will take the action specified above.

285

Related topics

mailsetting relay-host-list

mailsetting storage central-quarantine

mailsetting storage central-quarantine

mailsetting systemquarantine

mailsetting mail-scan-options

mailsetting mail-scan-options

Use this command to configure how FortiMail scans compressed files such as ZIP archives.

Syntax

config mailsetting mail-scan-options

set content-scan-level {high | low | medium}

set decompress-max-level <level_int>

set decompress-max-ratio <ratio_int>

set decompress-max-size <size_int>

set scan-microsoft-msg {enable | disable}

set scan-timeout-action {tempfail | passthrough}

set scan-timeout-value <seconds_int>

end

Variable

Description

Default

content-scan-level {high | low | medium}

Set the scan level of dictionary and DLP rules.

When set to medium or high, FortiMail uses recursive regular expressions to find a match, which consumes more system resources.

medium

decompress-max-level <level_int>

Specify how many levels to decompress the archived files for antivirus and content scan. Valid range is 1 to 36.

12

decompress-max-ratio <ratio_int>

Specify the maximum compression ratio for FortiMail to decompress. Valid range is 1 to 1000.

200

decompress-max-size <size_int>

Specify the maximum file size in megabytes (MB) to scan after the archived files are decompressed. This applies to every file after decompression. Bigger files will not be scanned.

10

scan-microsoft-msg {enable | disable}

Enable to scan Microsoft Transport Neutral Encapsulation format (TNEF) and MSG format attachments.

enable

scan-timeout-action {tempfail | passthrough}

When the email attachments are large and the email scanning has timed out, FortiMail can either send a temporary fail message to the sender or just let the message pass through without further scanning.

tempfail

scan-timeout-value <seconds_int>

Specify how long in seconds that FortiMail should spend on scanning email contents. Valid range is 270 to 900.

When the specified timeout has been reached, FortiMail will take the action specified above.

285

Related topics

mailsetting relay-host-list

mailsetting storage central-quarantine

mailsetting storage central-quarantine

mailsetting systemquarantine