system : replacemsg-group
Replacement messages can be created and applied to specific profile groups. This allows the customization of messages for specific users or user groups.
If a user is not part of a custom replacement message group, their replacement messages come from the ‘default’ group. The ‘default’ group always exists, and cannot be deleted. All additional replacement message groups inherit from the default group. Any messages in custom groups that have not been modified, inherit any changes to those messages in the default group.
The only replacement messages that can not be customized in groups are administration related messages, which in the following categories:
Alert Mail
IM and P2P
Except for mm1, mm3, mm4, mm7 which use the message field, all replacement message types use the buffer field to refer to the body of the message.
config system replacemsg-group
edit <groupname_string>
set comment <string>
set group-type {auth | captive‑portal | ec | utm}
config {auth | ec | fortiguard‑wf | ftp | http | mail | mm1 | mm3 | mm4 | mm7 | nntp | spam}
edit <msgkey_integer>
set msg-type <type>
set buffer <string>
set header <header_flag>
set format <format_flag>
set message <string>
edit <groupname_string>
Create or edit a replacement message group.
Use a groupname of default to configure per-vdom replacement messages. Only valid when VDOMs are enabled.
comment <string>
Enter a descriptive comment for this replacement message group.
group-type {auth | captive‑portal | ec | utm}
Enter the type of replacement message group this is.
auth — for use with authentication pages in firewall policies
captive-portal — for use with captive-portal configurations
ec — for use with endpoint-control profiles
utm — for use with UTM settings in firewall policies
default — used to configure per-vdom replacement messages, only available when group name is set to default
config {auth | ec | fortiguard‑wf | ftp | http | mail | mm1 | mm3 | mm4 | mm7 | nntp | spam}
Select a replacement message type to add or edit. These types or protocols, match with the existing replacemsg commands, and determine which msg-types are available.
For more information on these replacement message types see:
Note: mm1,mm3,mm4,and mm7 are FortiOS Carrier only.
edit <msgkey_integer>
Create or edit a message entry in the table. Enter the key of the entry.
Using ‘?’ will show you the existing message type as well as the msgkey entries in the table.
msg-type <type>
Select the message type for this message entry. Valid message types vary according to which replacement message table you are editing.
For a list of valid message types for this table, refer to the CLI replacemsg command of the same name.
buffer <string>
Enter the replacement message for this message type. Enclose the message in quotes.
This field is used with the following replacement messages:
Other replacement messages use the message field.
header <header_flag>
Select the header for this message. Valid types include:
format <format_flag>
Select the format of this message. Valid formats include:
wml (FortiOS Carrier only)
message <string>
Enter the replacement message for this message type. Enclose the message in quotes.
This field is used with the following replacement messages:
mm1 (FortiOS Carrier only)
mm3 (FortiOS Carrier only)
mm4 (FortiOS Carrier only)
mm7 (FortiOS Carrier only)
Other replacement messages use the buffer field.