Created on
09-28-2023
10:57 PM
Edited on
06-10-2025
10:59 AM
By
Stephen_G
| Description | This article explains the correlation between these commands and their use cases. |
| Scope | FortiMail. |
| Solution |
Understanding the CLI Commands:
archive-max-recursive-level
decompress-max-level
The correlation between 'archive-max-recursive-level' and 'decompress-max-level' is crucial for efficient and effective email scanning. Here is how they work together and their use cases:
config profile content
edit <profile_name>
set archive-scan-options {block-on-failure-to-decompress | block-password-protected | block-recursive
end
block-recursive: Enable to block archive attachments whose depth of nested archives exceeds the value defined under archive-max-recursive-level.
archive-max-recursive-level <depth_int>: Enter the nesting depth threshold. Depending upon each attached archive’s depth of archives nested within the archive, the FortiMail unit will use one of the following methods to determine whether it should block or pass the email.
The archive-max-recursive-level is 0, or the attachment’s depth of nesting equals or is less than the archive-max-recursive-level: If the attachment contains a file that matches one of the other MIME file types, perform the action configured for that file type, either block or pass.
The attachment’s depth of nesting is greater than archive-max-recursive-level: Apply the block action, unless this option is disabled block-recursive, in which case it will pass the MIME file type content filter. Block actions are specified in the profile content-action.
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
decompress-max-level <level_int>: Specify how many levels to decompress the archived files for antivirus and content scan. The valid range is 1 to 36. The default is 12.
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.