profile content
Use this command to create content profiles, which you can use to match email based upon its subject line, message body, and attachments.
Unlike antispam profiles, which deal primarily with spam, content profiles match any other type of email.
Content profiles can be used to apply content-based encryption to email. They can also be used to restrict prohibited content, such as words or phrases, file names, and file attachments that are not permitted by your network usage policy. As such, content profiles can be used both for email that you want to protect, and for email that you want to prevent.
Syntax
config profile content
edit <profile_name>
[set comment "<comment_str>"]
set action-default <content-action-profile_name>
edit <index_int>
set patterns {<file-type_name> ...}
set action <content-action-profile_name>
next
end
set detect-office-status {enable | disable}
set office-scan-option {detect-password-protected detect-embedded-component}
set detect-password-office-option {detect-only | attempt-to-decrypt }
set detect-archive-status {enable | disable}
set archive-scan-option {detect-password-protected block-on-failure-to-decompress block-recursive}
set detect-password-archive-option {detect-only | attempt-to-decrypt }
set archive-max-recursive-level <threshold_int>
set decrypt-password-method {auto-decrypt prompt-user-input}
set decrypt-password-num-of-words <words_int>
set decrypt-password-quarantine-type {system-quarantine | domain-quarantine}
set decrypt-password-quarantine-folder <folder_name>
set decrypt-password-notification-disclaimer <notification_name>
set action-policy-match <content-action-profile_name>
set image-analysis-scan {enable | disable}
set image-classification-status {enable |disable}
set image-classification-profile <image-classification-profile_name>
set action-image-classification <content-action-profile_name>
set max-size-status {enable | disable}
set max-size-option {message | attachment}
set action-max-size <content-action-profile_name>
set max-num-of-attachment <limit_int>
set html-content-action {convert-to-text | modify-content}
set html-active-content-action {keep | remove}
set html-hidden-content-action {keep | remove}
set html-content-url-selection {tag-attribute tag-content}
set cdr-file-type-option {office pdf}
set cdr-office-metadata-action {keep | remove}
set action-cdr <content-action-profile_name>
edit <index_int>
set dictionary-type {group | profile}
set dictionary-group <dictionary-group_name>
set dictionary-profile <dictionary-profile_name>
set dict-score <threshold_int>
set action <content-action-profile_name>
set scan-office {enable | disable}
set scan-pdf {enable | disable}
set scan-archive {enable | disable}
next
end
next
end
|
Variable |
Description |
Default |
|
Enter the index number of the profile. If the profile does not currently exist, it will be created. |
|
|
|
Enter the name of the profile. To view a list of existing entries, enter a question mark ( |
|
|
|
If you want to override |
|
|
|
Select a content action profile. See profile content-action. This default setting applies only to sub-scans that do not have their own individually configured action, such as |
|
|
|
If you want to override |
|
|
|
If you want to override |
|
|
|
If you want to override |
|
|
|
If you want to override |
|
|
|
If you want to override |
|
|
|
Enter the maximum compression nesting depth. Valid range is 1-36. This setting applies only if |
12 |
|
|
archive-scan-option {detect-password-protected |
Select whether to:
This setting applies only if |
|
|
Select which file type(s) to apply content disarming and reconstruction (CDR) to:
See also file content-disarm-reconstruct. |
|
|
|
Select whether to Currently DOCX, PPTX, and XLSX files are supported. |
remove |
|
|
Enter a description or comment. |
|
|
|
decrypt-password-auto-option {built-in-password-list |
Select which kinds of password to try to automatically decrypt files:
This setting applies only if |
words-in-email-content |
|
Select which methods to try if an attachment file is password-protected:
This setting applies only if |
auto-decrypt |
|
|
decrypt-password-notification-disclaimer <notification_name> |
Select which notification template to use for the file password prompt. This setting applies only if |
default |
|
Enter how many nearby words to try as the attachment file's password. This setting applies only if you select |
5 |
|
|
Select which folder will be used to temporarily store email until the sender responds to the password prompt. To configure a quarantine folder, see This setting applies only if |
Content_PasswordProtected |
|
|
decrypt-password-quarantine-type {system-quarantine | domain-quarantine} |
Select whether to use the system-level or domain-level quarantine to temporarily store email while FortiMail waits for the sender to respond to the file password prompt. This setting applies only if |
system-quarantine |
|
Enter the attachment size threshold in kilobytes for deferred delivery. See also defer-delivery-starttime <time_str> and defer-delivery {enable | disable}. To disable the limit, enter Alternatively, configure |
0 |
|
|
Enable to scan archives such as ZIP files according to Disable to skip those scans. Note: This setting does not enable or disable other archive settings in the content profile such as the content monitor setting |
disable |
|
|
Enable to scan Microsoft Office, Open Office, and Adobe PDF files according to Disable to skip those scans. Note: This setting does not enable or disable other Office or PDF settings in the content profile, such as the CDR setting |
disable |
|
|
detect-password-archive-option {detect-only | attempt-to-decrypt } |
Select either:
This setting applies only if |
detect-only |
|
detect-password-office-option {detect-only | attempt-to-decrypt } |
Select either:
This setting applies only if |
detect-only |
|
Enter the number of times that an email must match the dictionary profile before it will receive the action configured in Note: The score is based on matches in each individual dictionary profile, not the total in |
1 |
|
|
Select which dictionary profile group the content monitor profile will use to find matching text. See profile dictionary-group. See also information on dictionary profiles. |
|
|
|
Select which dictionary profile the content monitor profile will use to find matching text. See also information on dictionary profiles. |
|
|
|
Select which will be used to find matching text, either:
Also configure |
group |
|
|
Select to either This setting applies only if |
remove |
|
|
Select either:
This setting applies only if |
modify-content |
|
|
html-content-url-action {click-protection | click-protection-isolator | isolator | keep | neutralize | remove} |
If
This setting applies only if |
click-protection |
|
Select where CDR modifications should apply:
This setting applies only if |
tag-attribute |
|
|
Select to either
|
remove |
|
|
Enable to scan images for content that you may want to block. Also configure This setting is available only with a valid feature license, and if |
disable |
|
|
image-classification-profile <image-classification-profile_name> |
Select which image analysis profile to use to define which categories to scan for, such as weapons, personal identification, or QR codes. Also configure This setting is available only with a valid feature license, and if |
|
|
Enable to classify images by their subject. Also configure This setting is available only with a valid feature license, and if |
disable |
|
|
Enter how many attachments are allowed in one email message. Valid range is from 1 to 100. This setting applies only if |
10 |
|
|
Select whether to apply |
message |
|
|
Enable to apply |
disable |
|
|
Enter the maximum size threshold in kilobytes (KB). Also configure To disable deferred delivery, enter This setting applies only if max-size-status {enable | disable} is |
10240 |
|
|
office-detect-embedded-option {check-msoffice |
Similar to an archive, documents can sometimes contain scripts, video, graphics, sounds, and other files that are used by the document. By wrapping files within a document instead of linking to the file on a separate, external location, a document becomes more portable. However, it also means that documents with other files nested inside can be used to hide infected files. Enable to detect other files embedded within the attachment file, and then select which embedded files to scan. Rules from Disable to skip scanning of embedded files. This setting applies only if you select |
|
|
office-scan-option {detect-password-protected |
Select whether to:
This setting applies only if |
|
|
Select either:
For example, if you want to reject all attachments that are executable software for Microsoft Windows platforms, you would configure:
Other file types would not match this rule and could trigger a different action in later rules or scans. |
is |
|
|
Select which file types of attachments will be scanned or omitted from the scan, depending on your configuration of For multiple file types, separate each entry with a space. To configure more file types, see file filter. This setting applies only if |
|
|
|
Enable to use the content monitor profile to scan archives such as ZIP files for specified words or phrases. |
disable |
|
|
Enable to use the content monitor profile to scan Microsoft Word and Open Office documents for specified words or phrases. |
disable |
|
|
scan-option {block-fragmented-email |
Select which option(s) to use:
Separate multiple options with a space. |
|
|
Enable to use the content monitor profile to scan Adobe PDF documents for specified words or phrases. |
disable |
|
|
Enable or disable the profile. |
disable |
|
|
Enable or disable the rule. |
enable |
|
|
text-content-action {click-protection | click-protection-isolator | isolator | neutralize | remove-url} |
Select how to sanitize the email (options are similar to This setting applies only if |
click-protection |
Related topics
file content-disarm-reconstruct