Fortinet white logo
Fortinet white logo

Administration Guide

Configuring antivirus action profiles

Configuring antivirus action profiles

Antivirus action profiles define what the FortiMail unit should do if the antivirus profile determines that an email is infected by viruses.

To configure antivirus action profiles

  1. Go to Profile > AntiVirus > Action.

  2. Either click New to add a profile or double-click an existing profile to modify it.

  3. Configure the following:

    GUI item

    Description

    Domain

    Select which protected domain this profile belongs to, or System (all protected domains can use this profile).

    You can only see the domains that are permitted by your administrator profile. See About administrator account permissions and domains.

    Name

    Enter a unique name for the profile.

    Comment

    Enter a comment or description.

    Tag subject

    Enable and enter the text that appears in the subject line of the email, such as [virus]. The FortiMail unit will prepend this text to the subject line of spam before forwarding it to the recipient.

    Many email clients can sort incoming email messages into separate mailboxes, including a spam mailbox, based on text appearing in various parts of email messages, including the subject line. For details, see the documentation for your email client.

    Insert header

    Enable and enter the message header key in the field, and the values in the With value field. The FortiMail unit adds this text to the message header of the email before forwarding it to the recipient.

    Many email clients can sort incoming email messages into separate mailboxes, including a spam mailbox, based on text appearing in various parts of email messages, including the message header. For details, see the documentation for your email client.

    Message header lines are composed of two parts: a key and a value, which are separated by a colon. For example, you might enter:

    X-Custom-Header: Detected as virus by profile 22.

    If you enter a header line that does not include a colon, the FortiMail unit will automatically append a colon, causing the entire text that you enter to be the key.

    Note: Do not enter spaces in the key portion of the header line. They are forbidden by RFC 2822.

    Starting from FortiMail 6.0.1 release, you can add multiple headers by adding them to the header table. You can also insert the predefined variables to the header value.

    Insert disclaimer

    Insert disclaimer as an action, and select whether you want to insert the disclaimer at the start of the message, end of the message, or at the location of the custom message.

    You can modify the default disclaimer or add new disclaimers by going to System > Mail Setting > Disclaimer.

    Deliver to alternate host

    Enable to route the email to a specific SMTP server or relay, then type the fully qualified domain name (FQDN) or IP address of the destination.

    You can choose to deliver the original email or the modified email.

    Note: If you enable this setting, the FortiMail unit uses this destination for all email that matches the profile and ignores Relay server name and Use this domain’s SMTP server to deliver the mail.

    Deliver to original host

    Enable to route the email back to its original source destination.

    BCC

    Enable to send a blind carbon copy (BCC) of the email.

    You can specify a sender email address in the SMTP envelope (MAIL FROM:) so that, in the case the email is not deliverable and bounced back, it will be returned to the specified envelope from address, instead of the original sender. This is helpful when you want to use a specific email to collect bounce notifications.

    Click New to add BCC recipients.

    Replace infected/suspicious body or attachment(s)

    Replaces the infected file with a replacement message that notifies the email user the infected file was removed.

    • For malware outbreak scans, virus replacement messages will be used.
    • For FortiSandbox scans, virus replacement messages will be used.
    • For heuristic scans, suspicious replacement messages will be used.

    You can customize replacement messages. For more information, see Customizing GUI, custom messages, email templates, and Security Fabric.

    Remove URL detected by FortiSandbox

    Removes suspicious URLs from email, as detected by FortiSandbox.

    Archive to account

    Redirect email to a specified archive account.

    Notify with profile

    Enable and select a notification profile to send a notification email to the sender, recipient, or any other people as you configure in the notification profile. The notification email is customizable and will tell the users what happened to the email message. For details about notification profiles and email templates, see Configuring notification profiles and Customizing email templates.

    Final action

    Select one of the following actions:

    • Discard: Enable to accept the email, but then delete it instead of delivering the email, without notifying the SMTP client.

    • Reject: Enable to reject the email and reply to the SMTP client with SMTP reply code 550.
      However, if email messages are held for FortiGuard spam outbreak protection or FortiGuard virus outbreak protection, or sent to FortiSandbox, the actual action will fallback to "system quarantine".

    • System quarantine: Enable to redirect email to the system quarantine. For more information, see Managing the system quarantine.You can choose to quarantine the original email or the modified email.

    • Domain quarantine: Enable to redirect email to the domain quarantine folder. For more information, see Managing the domain quarantines.

    • Rewrite recipient email address: Enable to change the recipient address of any infected email message.

      Configure rewrites separately for the local-part (the portion of the email address before the '@' symbol, typically a user name) and the domain part (the portion of the email address after the '@' symbol). For each part, select either:

      • None: No change.
      • Prefix: Prepend the part with text that you have entered in the With field.
      • Suffix: Append the part with the text you have entered in the With field.
      • Replace: Substitute the part with the text you have entered in the With field.
    • Repackage email with customized content: Enable to forward the infected email as an attachment with the customized email body that you define in the custom email template. For example, in the template, you may want to say “The attached email is infected by a virus”. For details, see Customizing email templates.

    • Repackage email with original text content: Enable to forward the infected email as an attachment but the original email body will still be used without modification.

Configuring antivirus action profiles

Configuring antivirus action profiles

Antivirus action profiles define what the FortiMail unit should do if the antivirus profile determines that an email is infected by viruses.

To configure antivirus action profiles

  1. Go to Profile > AntiVirus > Action.

  2. Either click New to add a profile or double-click an existing profile to modify it.

  3. Configure the following:

    GUI item

    Description

    Domain

    Select which protected domain this profile belongs to, or System (all protected domains can use this profile).

    You can only see the domains that are permitted by your administrator profile. See About administrator account permissions and domains.

    Name

    Enter a unique name for the profile.

    Comment

    Enter a comment or description.

    Tag subject

    Enable and enter the text that appears in the subject line of the email, such as [virus]. The FortiMail unit will prepend this text to the subject line of spam before forwarding it to the recipient.

    Many email clients can sort incoming email messages into separate mailboxes, including a spam mailbox, based on text appearing in various parts of email messages, including the subject line. For details, see the documentation for your email client.

    Insert header

    Enable and enter the message header key in the field, and the values in the With value field. The FortiMail unit adds this text to the message header of the email before forwarding it to the recipient.

    Many email clients can sort incoming email messages into separate mailboxes, including a spam mailbox, based on text appearing in various parts of email messages, including the message header. For details, see the documentation for your email client.

    Message header lines are composed of two parts: a key and a value, which are separated by a colon. For example, you might enter:

    X-Custom-Header: Detected as virus by profile 22.

    If you enter a header line that does not include a colon, the FortiMail unit will automatically append a colon, causing the entire text that you enter to be the key.

    Note: Do not enter spaces in the key portion of the header line. They are forbidden by RFC 2822.

    Starting from FortiMail 6.0.1 release, you can add multiple headers by adding them to the header table. You can also insert the predefined variables to the header value.

    Insert disclaimer

    Insert disclaimer as an action, and select whether you want to insert the disclaimer at the start of the message, end of the message, or at the location of the custom message.

    You can modify the default disclaimer or add new disclaimers by going to System > Mail Setting > Disclaimer.

    Deliver to alternate host

    Enable to route the email to a specific SMTP server or relay, then type the fully qualified domain name (FQDN) or IP address of the destination.

    You can choose to deliver the original email or the modified email.

    Note: If you enable this setting, the FortiMail unit uses this destination for all email that matches the profile and ignores Relay server name and Use this domain’s SMTP server to deliver the mail.

    Deliver to original host

    Enable to route the email back to its original source destination.

    BCC

    Enable to send a blind carbon copy (BCC) of the email.

    You can specify a sender email address in the SMTP envelope (MAIL FROM:) so that, in the case the email is not deliverable and bounced back, it will be returned to the specified envelope from address, instead of the original sender. This is helpful when you want to use a specific email to collect bounce notifications.

    Click New to add BCC recipients.

    Replace infected/suspicious body or attachment(s)

    Replaces the infected file with a replacement message that notifies the email user the infected file was removed.

    • For malware outbreak scans, virus replacement messages will be used.
    • For FortiSandbox scans, virus replacement messages will be used.
    • For heuristic scans, suspicious replacement messages will be used.

    You can customize replacement messages. For more information, see Customizing GUI, custom messages, email templates, and Security Fabric.

    Remove URL detected by FortiSandbox

    Removes suspicious URLs from email, as detected by FortiSandbox.

    Archive to account

    Redirect email to a specified archive account.

    Notify with profile

    Enable and select a notification profile to send a notification email to the sender, recipient, or any other people as you configure in the notification profile. The notification email is customizable and will tell the users what happened to the email message. For details about notification profiles and email templates, see Configuring notification profiles and Customizing email templates.

    Final action

    Select one of the following actions:

    • Discard: Enable to accept the email, but then delete it instead of delivering the email, without notifying the SMTP client.

    • Reject: Enable to reject the email and reply to the SMTP client with SMTP reply code 550.
      However, if email messages are held for FortiGuard spam outbreak protection or FortiGuard virus outbreak protection, or sent to FortiSandbox, the actual action will fallback to "system quarantine".

    • System quarantine: Enable to redirect email to the system quarantine. For more information, see Managing the system quarantine.You can choose to quarantine the original email or the modified email.

    • Domain quarantine: Enable to redirect email to the domain quarantine folder. For more information, see Managing the domain quarantines.

    • Rewrite recipient email address: Enable to change the recipient address of any infected email message.

      Configure rewrites separately for the local-part (the portion of the email address before the '@' symbol, typically a user name) and the domain part (the portion of the email address after the '@' symbol). For each part, select either:

      • None: No change.
      • Prefix: Prepend the part with text that you have entered in the With field.
      • Suffix: Append the part with the text you have entered in the With field.
      • Replace: Substitute the part with the text you have entered in the With field.
    • Repackage email with customized content: Enable to forward the infected email as an attachment with the customized email body that you define in the custom email template. For example, in the template, you may want to say “The attached email is infected by a virus”. For details, see Customizing email templates.

    • Repackage email with original text content: Enable to forward the infected email as an attachment but the original email body will still be used without modification.