Fortinet white logo
Fortinet white logo

CLI Reference

system replacemsg spam

system replacemsg spam

FortiOS adds Spam replacement messages to SMTP and SMTPS server responses if the email message is identified as spam and the spam action is discard.

By default, these are text messages with an 8-bit header.

config system replacemsg spam
    edit {msg-type}
    # Replacement messages.
        set msg-type {string}   Message type. size[28]
        set buffer {string}   Message string. size[32768]
        set header {none | http | 8bit}   Header flag.
                none  No header type.
                http  HTTP
                8bit  8 bit.
        set format {none | text | html | wml}   Format flag.
                none  No format type.
                text  Text format.
                html  HTML format.
                wml   WML format
    next
end

Additional information

The following section is for those options that require additional explanation.

buffer <message>

Type a new replacement message to replace the current replacement message. Maximum length 32,768 characters.

spam message types

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 blocklist 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).

Replacement message tags

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.

%%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.

%%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.

system replacemsg spam

system replacemsg spam

FortiOS adds Spam replacement messages to SMTP and SMTPS server responses if the email message is identified as spam and the spam action is discard.

By default, these are text messages with an 8-bit header.

config system replacemsg spam
    edit {msg-type}
    # Replacement messages.
        set msg-type {string}   Message type. size[28]
        set buffer {string}   Message string. size[32768]
        set header {none | http | 8bit}   Header flag.
                none  No header type.
                http  HTTP
                8bit  8 bit.
        set format {none | text | html | wml}   Format flag.
                none  No format type.
                text  Text format.
                html  HTML format.
                wml   WML format
    next
end

Additional information

The following section is for those options that require additional explanation.

buffer <message>

Type a new replacement message to replace the current replacement message. Maximum length 32,768 characters.

spam message types

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 blocklist 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).

Replacement message tags

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.

%%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.

%%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.