Fortinet black logo

Administration Guide

Configuring email settings for notifications

Configuring email settings for notifications

If you want FortiRecorder to send email for notifications, and you want to use your own email server to send them, then configure the settings that FortiRecorder will use to connect to your email server.

Note

In factory default settings, the mail relay server is:

notification.fortinet.net

To configure notification email settings

  1. Go to System > Configuration > Mail Server Settings.
  2. Configure the following settings:

    Setting Name

    Description

    Host name

    Type the host name for the FortiRecorder appliance.

    The default host name is the FortiRecorder appliance's serial number. Maximum length is 35 characters. It can include US-ASCII letters, numbers, hyphens, and underscores, but not spaces and special characters (for example, ? ).

    The host name is used in:

    • command prompt of the CLI
    • SNMP system name. See Configuring SNMP traps and queries.
    • notification email, when FortiRecorder identifies itself to the email server (SMTP HELO/EHLO).

    The get system status CLI command displays the full host name. If the host name is longer than 16 characters, the name may be truncated elsewhere and end with a tilde ( ~ ) to indicate that additional characters exist, but are not displayed.

    For example, if the host name is FortiRecorder1234567890, then the CLI prompt would be:

    FortiRecorder123~#

    Note: This hostname is not required to be a fully qualified domain name, such as nvr.example.com, that is globally resolvable by DNS servers on the Internet. The hostname could be used only on your local private network. For the hostname used with remote or public network access, instead see Public Access Host name.

    Mail Server

    Use custom mail server

    Enable if you want to use a mail server instead of the default provided by Fortinet (notification.fortinet.net). If you do not have your own email server, this may be the name of your ISP's SMTP relay, or a 3rd-party email server such as Yahoo! or Gmail.

    Mail server name

    Type the fully-qualified domain name (FQDN) of your SMTP server, such as mail.example.com.

    This setting appears only if Use custom mail server is enabled.

    Mail server port

    Type the port number on which your email server or SMTP relay listens for connections.

    The default varies by whether you enable Use SMTPS: if disabled, it is port 25; if enabled, it is port 465.

    This setting appears only if Use custom mail server is enabled.

    Use SMTPS

    Enable to initiate TLS-secured connections to the email server if it supports SSL/TLS.

    When disabled, SMTP connections from the FortiRecorder appliance's built-in email client to the SMTP server will occur as clear text, unencrypted.

    This option must be enabled to initiate SMTPS-secured connections.

    This setting appears only if Use custom mail server is enabled.

    User name

    Type the name of the account, such as jdoe or fortirecorder@example.com, that FortiRecorder will use to log in to the SMTP server.

    This setting appears only if Use custom mail server is enabled.

    Password

    Type the password for the account on the SMTP server.

    This setting appears only if Use custom mail server is enabled.

    Authentication type

    Select one of the following authentication methods:

    • AUTO — Automatically detect and use the most secure SMTP authentication type supported by the email server.
    • PLAIN — Provides an unencrypted, scrambled password.
    • LOGIN — Provides an unencrypted, scrambled password.
    • DIGEST-MD5 — Provides an encrypted MD5 hash of the password.
    • CRAM-MD5 — Provides an encrypted MD5 hash of the password, with hash replay prevention, combined with a challenge and response mechanism.

    This setting appears only if Use custom mail server is enabled.

    Sender

    Display name

    If you want to customize the display name in the emails sent by the FortiRecorder, type the name that will displayed by the email clients. By default, the display name is FortiRecorder.

    Email address

    Type the sender email address (From:) that will appear in the SMTP header. The default email address is noreply@fortirecorder.com.

  3. ClickApply.
  4. ClickOK.

    To verify that FortiRecorder can send email now, expand the Test section, enter your email address in Mail Recipient, and then click Send.

    Tooltip

    To prevent classification as spam, it usually helps if you add the Email address of FortiRecorder to your address book.

    After configuring the SMTP server and the SMS service provider, configure the cameras and FortiRecorder with your notification criteria. See Configuring notification triggers and Configuring alert email.

    You can customize the templates used by email notifications. See Customizing email templates.

Configuring email settings for notifications

If you want FortiRecorder to send email for notifications, and you want to use your own email server to send them, then configure the settings that FortiRecorder will use to connect to your email server.

Note

In factory default settings, the mail relay server is:

notification.fortinet.net

To configure notification email settings

  1. Go to System > Configuration > Mail Server Settings.
  2. Configure the following settings:

    Setting Name

    Description

    Host name

    Type the host name for the FortiRecorder appliance.

    The default host name is the FortiRecorder appliance's serial number. Maximum length is 35 characters. It can include US-ASCII letters, numbers, hyphens, and underscores, but not spaces and special characters (for example, ? ).

    The host name is used in:

    • command prompt of the CLI
    • SNMP system name. See Configuring SNMP traps and queries.
    • notification email, when FortiRecorder identifies itself to the email server (SMTP HELO/EHLO).

    The get system status CLI command displays the full host name. If the host name is longer than 16 characters, the name may be truncated elsewhere and end with a tilde ( ~ ) to indicate that additional characters exist, but are not displayed.

    For example, if the host name is FortiRecorder1234567890, then the CLI prompt would be:

    FortiRecorder123~#

    Note: This hostname is not required to be a fully qualified domain name, such as nvr.example.com, that is globally resolvable by DNS servers on the Internet. The hostname could be used only on your local private network. For the hostname used with remote or public network access, instead see Public Access Host name.

    Mail Server

    Use custom mail server

    Enable if you want to use a mail server instead of the default provided by Fortinet (notification.fortinet.net). If you do not have your own email server, this may be the name of your ISP's SMTP relay, or a 3rd-party email server such as Yahoo! or Gmail.

    Mail server name

    Type the fully-qualified domain name (FQDN) of your SMTP server, such as mail.example.com.

    This setting appears only if Use custom mail server is enabled.

    Mail server port

    Type the port number on which your email server or SMTP relay listens for connections.

    The default varies by whether you enable Use SMTPS: if disabled, it is port 25; if enabled, it is port 465.

    This setting appears only if Use custom mail server is enabled.

    Use SMTPS

    Enable to initiate TLS-secured connections to the email server if it supports SSL/TLS.

    When disabled, SMTP connections from the FortiRecorder appliance's built-in email client to the SMTP server will occur as clear text, unencrypted.

    This option must be enabled to initiate SMTPS-secured connections.

    This setting appears only if Use custom mail server is enabled.

    User name

    Type the name of the account, such as jdoe or fortirecorder@example.com, that FortiRecorder will use to log in to the SMTP server.

    This setting appears only if Use custom mail server is enabled.

    Password

    Type the password for the account on the SMTP server.

    This setting appears only if Use custom mail server is enabled.

    Authentication type

    Select one of the following authentication methods:

    • AUTO — Automatically detect and use the most secure SMTP authentication type supported by the email server.
    • PLAIN — Provides an unencrypted, scrambled password.
    • LOGIN — Provides an unencrypted, scrambled password.
    • DIGEST-MD5 — Provides an encrypted MD5 hash of the password.
    • CRAM-MD5 — Provides an encrypted MD5 hash of the password, with hash replay prevention, combined with a challenge and response mechanism.

    This setting appears only if Use custom mail server is enabled.

    Sender

    Display name

    If you want to customize the display name in the emails sent by the FortiRecorder, type the name that will displayed by the email clients. By default, the display name is FortiRecorder.

    Email address

    Type the sender email address (From:) that will appear in the SMTP header. The default email address is noreply@fortirecorder.com.

  3. ClickApply.
  4. ClickOK.

    To verify that FortiRecorder can send email now, expand the Test section, enter your email address in Mail Recipient, and then click Send.

    Tooltip

    To prevent classification as spam, it usually helps if you add the Email address of FortiRecorder to your address book.

    After configuring the SMTP server and the SMS service provider, configure the cameras and FortiRecorder with your notification criteria. See Configuring notification triggers and Configuring alert email.

    You can customize the templates used by email notifications. See Customizing email templates.