system : replacemsg spam
 
replacemsg spam
The FortiGate unit adds the Spam replacement messages listed in Table 20 to SMTP server responses if the email message is identified as spam and the spam action is discard. If the FortiGate unit supports SSL content scanning and inspection these replacement messages can also be added to SMTPS server responses.
By default, these are text messages with an 8-bit header.
Syntax
config system replacemsg spam <message-type>
set buffer <message>
set format <format>
set header <header_type>
end
Variable
Description
Default
<message-type>
Spam replacement message type. See Table 20.
No default.
buffer <message>
Type a new replacement message to replace the current replacement message. Maximum length 8 192 characters.
Depends on message type.
format <format>
Set the format of the message, one of:
html
text
none
text
header <header_type>
Set the format of the message header, one of:
8bit
http
none
8bit
Table 20: spam message types
Message name
Description
ipblocklist
Spam Filtering IP address BWL check enabled for an email protocol identifies an email message as spam and adds this replacement message.
reversedns
Spam Filtering Return e-mail DNS check enabled for an email protocol identifies an email message as spam and adds this replacement message.
smtp-spam-ase
The FortiGuard Antispam Engine (ASE) reports this message as spam.
 
smtp-spam-bannedword
Spam Filtering Banned word check enabled for an email protocol identifies an email message as spam and adds this replacement message.
smtp-spam-dnsbl
From the CLI, spamrbl enabled for an email protocol identifies an email message as spam and adds this replacement message.
smtp-spam-emailblack
The spam filter email address blacklist marked an email as spam. The smtp-spam-emailblack replaces the email.
smtp-spam-feip
FortiGuard Antispam IP address checking identifies an email message as spam and adds this replacement message to the server response.
 
smtp-spam-helo
Spam Filtering HELO DNS lookup enabled for SMTP identifies an email message as spam and adds this replacement message. HELO DNS lookup is not available for SMTPS.
smtp-spam-mimeheader
From the CLI, spamhdrcheck enabled for an email protocol identifies an email message as spam and adds this replacement message.
submit
Any Spam Filtering option enabled for an email protocol identifies an email message as spam and adds this replacement message. Spam Filtering adds this message to all email tagged as spam. The message describes a button that the recipient of the message can select to submit the email signatures to the FortiGuard Antispam service if the email was incorrectly tagged as spam (a false positive).
Table 21: Replacement messages can include replacement message tags. When users receive the replacement message, the replacement message tag is replaced with content relevant to the message.
Table 22: Replacement message tags
Tag
Description
%%QUARFILENAME%%
The name of a file that has been removed from a content stream and added to the quarantine. This could be a file that contained a virus or was blocked by antivirus file blocking. %%QUARFILENAME%% can be used in virus and file block messages. Quarantining is only available on FortiGate units with a local disk.
%%SOURCE_IP%%
The IP address from which a virus was received. For email this is the IP address of the email server that sent the email containing the virus. For HTTP this is the IP address of the web page that sent the virus.
%%DEST_IP%%
The IP address of the computer that would have received the blocked file. For email this is the IP address of the user’s computer that attempted to download the message from which the file was removed.
%%EMAIL_FROM%%
The email address of the sender of the message from which the file was removed.
%%EMAIL_TO%%
The email address of the intended receiver of the message from which the file was removed.