Fortinet white logo
Fortinet white logo

CLI Reference

mailsetting preference

mailsetting preference

In antispam, antivirus, and content action profiles, you can select the action:

  • Deliver to alternate host

  • Deliver to original host

  • System quarantine

  • Personal quarantine

  • Disclaimer insertion

  • Subject tag location

  • Replacement message location

For those actions, you can configure preferences.

Syntax

config mailsetting preference

set deliver-to-alternate-host {modified_copy | unmodified_copy}

set deliver-to-original-host {modified_copy | unmodified_copy}

set disclaimer-insertion {selected-message | all-message}

set domain-quarantine {modified_copy | unmodified_copy}

set enforce-delivery {enable | disable}

set personal-quarantine {modified_copy | unmodified_copy}

set personal-quarantine-attachment-scan {enable | disable}

set replacement-message-location {beginning | end}

set subject-tag-location {beginning | end}

set system-quarantine {modified_copy | unmodified_copy}

end

Variable

Description

Default

deliver-to-alternate-host {modified_copy | unmodified_copy}

For delivery and quarantine actions, you can select which form of the email to use:

  • modified_copy — Modify the email according to the action.

  • unmodified_copy — Original email header and body.

    Note

    If the email is in its original form, the recipient in the SMTP envelope (RCPT TO:) still might be rewritten by the action.

For example, when the HTML content is converted to text, if you choose to deliver the unmodified copy, then the HTML version will be delivered; if you choose to deliver the modified copy, then the plain text version will be delivered.

modified_copy

deliver-to-original-host {modified_copy | unmodified_copy}

Select to use the modified or original email.

modified_copy

disclaimer-insertion {selected-message | all-message}

Select when to insert the disclaimer:

  • selected-message: Only new email in threads. Thread replies do not receive a disclaimer. This avoids repeatedly inserting disclaimers that recipients have already seen.

    Note

    Threads are detected when the same domain is in both the Message-ID: and In-Reply-To:/References: message headers. In RFC 2822, those message headers are optional. If an email client doesn't support them, then this setting has no effect.

  • all-message: Both new and reply email in threads.

selected-message

domain-quarantine {modified_copy | unmodified_copy}

Select to use the modified or original email.

modified_copy

enforce-delivery {enable | disable}

If the action in a profile is one of the final actions, such as system quarantine, while the action in another profile is to deliver to the original host or alternate host, you can enable this option to override the final action.

enable

personal-quarantine {modified_copy | unmodified_copy}

Select to use the modified or original email.

modified_copy

personal-quarantine-attachment-scan {enable | disable}

For spam that is sent to personal quarantine, select whether to continue or stop later scans of the email's attachments.

disable

replacement-message-location {beginning | end}

Select where to insert the attachment replacement message in the email body.

end

subject-tag-location {beginning | end}

Select to insert the tag at the start or end of the subject line.

beginning

system-quarantine {modified_copy | unmodified_copy}

Specify to use the modified email or the unmodified email.

modified_copy

Related topics

profile antispam-action

mailsetting preference

mailsetting preference

In antispam, antivirus, and content action profiles, you can select the action:

  • Deliver to alternate host

  • Deliver to original host

  • System quarantine

  • Personal quarantine

  • Disclaimer insertion

  • Subject tag location

  • Replacement message location

For those actions, you can configure preferences.

Syntax

config mailsetting preference

set deliver-to-alternate-host {modified_copy | unmodified_copy}

set deliver-to-original-host {modified_copy | unmodified_copy}

set disclaimer-insertion {selected-message | all-message}

set domain-quarantine {modified_copy | unmodified_copy}

set enforce-delivery {enable | disable}

set personal-quarantine {modified_copy | unmodified_copy}

set personal-quarantine-attachment-scan {enable | disable}

set replacement-message-location {beginning | end}

set subject-tag-location {beginning | end}

set system-quarantine {modified_copy | unmodified_copy}

end

Variable

Description

Default

deliver-to-alternate-host {modified_copy | unmodified_copy}

For delivery and quarantine actions, you can select which form of the email to use:

  • modified_copy — Modify the email according to the action.

  • unmodified_copy — Original email header and body.

    Note

    If the email is in its original form, the recipient in the SMTP envelope (RCPT TO:) still might be rewritten by the action.

For example, when the HTML content is converted to text, if you choose to deliver the unmodified copy, then the HTML version will be delivered; if you choose to deliver the modified copy, then the plain text version will be delivered.

modified_copy

deliver-to-original-host {modified_copy | unmodified_copy}

Select to use the modified or original email.

modified_copy

disclaimer-insertion {selected-message | all-message}

Select when to insert the disclaimer:

  • selected-message: Only new email in threads. Thread replies do not receive a disclaimer. This avoids repeatedly inserting disclaimers that recipients have already seen.

    Note

    Threads are detected when the same domain is in both the Message-ID: and In-Reply-To:/References: message headers. In RFC 2822, those message headers are optional. If an email client doesn't support them, then this setting has no effect.

  • all-message: Both new and reply email in threads.

selected-message

domain-quarantine {modified_copy | unmodified_copy}

Select to use the modified or original email.

modified_copy

enforce-delivery {enable | disable}

If the action in a profile is one of the final actions, such as system quarantine, while the action in another profile is to deliver to the original host or alternate host, you can enable this option to override the final action.

enable

personal-quarantine {modified_copy | unmodified_copy}

Select to use the modified or original email.

modified_copy

personal-quarantine-attachment-scan {enable | disable}

For spam that is sent to personal quarantine, select whether to continue or stop later scans of the email's attachments.

disable

replacement-message-location {beginning | end}

Select where to insert the attachment replacement message in the email body.

end

subject-tag-location {beginning | end}

Select to insert the tag at the start or end of the subject line.

beginning

system-quarantine {modified_copy | unmodified_copy}

Specify to use the modified email or the unmodified email.

modified_copy

Related topics

profile antispam-action