profile dictionary
Use this command to configure dictionary profiles.
Unlike banned words, dictionary terms are UTF-8 encoded, and may include characters other than US-ASCII characters, such as é or ñ.
Dictionary profiles can be grouped or used individually by antispam or content profiles to detect spam, banned content, or content that requires encryption to be applied.
Syntax
config profile dictionary
edit <profile_name>
config item
edit <item_int>
set pattern-comments <comment_str>
set pattern-type {ABAROUTING | CANSIN | CUSIP | CreditCard | ISIN | USSSN | regex | wildcard}
set pattern-weight <weight_int>
set pattern-scan-area {header | body}
set pattern-status {enable | disable}
set pattern-max-weight <weight_int>
set pattern-max-limit {enable | disable}
end
Variable |
Description |
Default |
Enter the name of the profile. |
|
|
Enter the index number for the pattern entry where you can add a word or phrase to the dictionary. |
|
|
For a predefined pattern, enter a value to change the predefined pattern name. For a use-defined pattern, enter a word or phrase that you want the dictionary to match, expressed either verbatim, with wild cards, or as a regular expression. Regular expressions do not require slash (
Matches are case insensitive and can occur over multiple lines as if the word were on a single line (that is, Perl-style match modifier options The FortiMail unit will convert the encoding and character set into UTF‑8, the same encoding in which dictionary patterns are stored, before evaluating an email for a match with the pattern. Because of this, your pattern must match the UTF‑8 string, not the originally encoded string. For example, if the original encoded string is:
the pattern must match:
|
|
|
Enter any description for the pattern. |
|
|
pattern-type {ABAROUTING | CANSIN | CUSIP | CreditCard | ISIN | USSSN | regex | wildcard} |
Enter ABAROUTING, CANSIN, CUSIP, CreditCard, ISIN, or USSSN for predefined patterns. ABAROUTING: A routing transit number (RTN) is a nine digit bank code, used in the United States, which appears on the bottom of negotiable instruments such as checks identifying the financial institution on which it was drawn.
CUSIP: CUSIP typically refers to both the Committee on Uniform Security Identification Procedures and the 9-character alphanumeric security identifiers that they distribute for all North American securities for the purposes of facilitating clearing and settlement of trades. CreditCard: Major credit card number formats.
USSSN: United States Social Security number. The format is a nine digit number, such as 078051111. For user-defined patterns, enter either:
|
regex |
Enter a number by which an email’s dictionary match score will be incremented for each word or phrase it contains that matches this pattern. The dictionary match score may be used by content monitor profiles to determine whether or not to apply the content action. |
1 |
|
Enter |
|
|
Enable or disable a pattern in a profile. |
disable |
|
Enter the maximum by which matches of this pattern can contribute to an email’s dictionary match score. |
1 |
|
Enable if the pattern must not be able to increase an email’s dictionary match score more than the amount configured in pattern-max-weight <weight_int>. |
disable |