Fortinet white logo
Fortinet white logo

CLI Reference

mailsetting storage config

mailsetting storage config

Use these commands to configure the FortiMail unit to store mail data such as queues and email user mailboxes either on its local hard disks, or on a network file storage (NFS or ISCSI) server.

If the FortiMail unit is operating in an HA group, remote storage may be required or recommended. For more information, see the FortiMail Administration Guide.

Syntax

config mailsetting storage config

set encryption-key

set folder <folder_str>

set host <host_str>

set iscsi-id <id_str>

set iscsi-use-initiator {enable | disable}

set nfs-version (auto | nfs-v3 | nfs-v4}

set password <password_str>

set port <port_int>

set protocol {nfs | iscsi_server}

set type {local | remote}

set username <user-name_str>

end

Variable

Description

Default

encryption-key

Enter the key that will be used to encrypt data stored on the ISCSI server. Valid key lengths are between 6 and 64 single-byte characters.

Applies only when protocol is iscsi_server.

folder <folder_str>

Enter the directory path of the NFS export on the NAS server where the FortiMail unit will store email.

Applies only when protocol is nfs.

host <host_str>

Enter the IP address or fully qualified domain name (FQDN) of the NFS or ISCSI server.

iscsi-id <id_str>

Enter the ISCSI identifier in the format expected by the ISCSI server, such as an ISCSI Qualified Name (IQN), Extended Unique Identifier (EUI), or T11 Network Address Authority (NAA).

Applies only when protocol is iscsi_server.

iscsi-use-initiator {enable | disable}

Enable to use ISCSI initiator name as username.

disable

nfs-version (auto | nfs-v3 | nfs-v4}

Use this command to control supported NFS versions.

This command is helpful when NFS version 4 causes problems, you can specify to use NFS version 3.

auto

password <password_str>

Enter the password of the FortiMail unit’s account on the ISCSI server.

Applies only when protocol is iscsi_server.

port <port_int>

Enter the TCP port number on which the NFS or ISCSI server listens for connections.

2049

protocol {nfs | iscsi_
server}

Select the type of the NAS server:

  • nfs: A network file system (NFS) server. If you select this option, enter the following information:
  • iscsi_server: An Internet SCSI (Small Computer System Interface), also called iSCSI, server. If you select this option, enter the following information:

nfs

type {local | remote}

Select whether to store email locally or on an NFS server.

local

username <user-name_str>

Enter the user name of the FortiMail unit’s account on the ISCSI server.

Applies only when protocol is iscsi_server.

Related topics

mailsetting proxy-smtp

mailsetting relay-host-list

mailsetting storage central-quarantine

mailsetting systemquarantine

mailsetting storage config

mailsetting storage config

Use these commands to configure the FortiMail unit to store mail data such as queues and email user mailboxes either on its local hard disks, or on a network file storage (NFS or ISCSI) server.

If the FortiMail unit is operating in an HA group, remote storage may be required or recommended. For more information, see the FortiMail Administration Guide.

Syntax

config mailsetting storage config

set encryption-key

set folder <folder_str>

set host <host_str>

set iscsi-id <id_str>

set iscsi-use-initiator {enable | disable}

set nfs-version (auto | nfs-v3 | nfs-v4}

set password <password_str>

set port <port_int>

set protocol {nfs | iscsi_server}

set type {local | remote}

set username <user-name_str>

end

Variable

Description

Default

encryption-key

Enter the key that will be used to encrypt data stored on the ISCSI server. Valid key lengths are between 6 and 64 single-byte characters.

Applies only when protocol is iscsi_server.

folder <folder_str>

Enter the directory path of the NFS export on the NAS server where the FortiMail unit will store email.

Applies only when protocol is nfs.

host <host_str>

Enter the IP address or fully qualified domain name (FQDN) of the NFS or ISCSI server.

iscsi-id <id_str>

Enter the ISCSI identifier in the format expected by the ISCSI server, such as an ISCSI Qualified Name (IQN), Extended Unique Identifier (EUI), or T11 Network Address Authority (NAA).

Applies only when protocol is iscsi_server.

iscsi-use-initiator {enable | disable}

Enable to use ISCSI initiator name as username.

disable

nfs-version (auto | nfs-v3 | nfs-v4}

Use this command to control supported NFS versions.

This command is helpful when NFS version 4 causes problems, you can specify to use NFS version 3.

auto

password <password_str>

Enter the password of the FortiMail unit’s account on the ISCSI server.

Applies only when protocol is iscsi_server.

port <port_int>

Enter the TCP port number on which the NFS or ISCSI server listens for connections.

2049

protocol {nfs | iscsi_
server}

Select the type of the NAS server:

  • nfs: A network file system (NFS) server. If you select this option, enter the following information:
  • iscsi_server: An Internet SCSI (Small Computer System Interface), also called iSCSI, server. If you select this option, enter the following information:

nfs

type {local | remote}

Select whether to store email locally or on an NFS server.

local

username <user-name_str>

Enter the user name of the FortiMail unit’s account on the ISCSI server.

Applies only when protocol is iscsi_server.

Related topics

mailsetting proxy-smtp

mailsetting relay-host-list

mailsetting storage central-quarantine

mailsetting systemquarantine