FortiMail™ Secure Messaging Platform
Version 3.0 MR4
Note: The History sections in the command entries are intended to record
changes in FortiMail 3.0 CLI commands with each release of the product.
Although these sections show all commands as new for version 3.0, many of
the commands existed in previous versions of FortiMail firmware.
Dynamic Threat Prevention System (DTPS), APSecure, FortiASIC,
FortiBIOS, FortiBridge, FortiClient, FortiGate, FortiGate Unified Threat
Management System, FortiGuard, FortiGuard-Antispam, FortiGuardAntivirus, FortiGuard-Intrusion, FortiGuard-Web, FortiLog, FortiAnalyzer,
FortiManager, Fortinet, FortiOS, FortiPartner, FortiProtect, FortiReporter,
FortiResponse, FortiShield, FortiVoIP, and FortiWiFi are trademarks of
Fortinet, Inc. in the United States and/or other countries. The names of
actual companies and products mentione d herein may be the trade marks
of their respective owners.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081413
Contents
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
1406-30004-0420-20080814
Introduction About the FortiMail Secure Messaging Platform
Introduction
This chapter introduces you to the FortiMail™ Secure Messaging Platform and
the following topics:
•About the FortiMail Secure Messaging Platform
•About this document
•FortiMail documentation
•Customer service and technical support
About the FortiMail Secure Messaging Platform
Each FortiMail unit is an integrated hardware and software solution that provides
powerful and flexible logging and reporting, antispam, antivirus, and email
archiving capabilities to incoming and outgoing email traffic. The FortiMail unit has
reliable and high performance features for detecting and blocking spam
messages and malicious attachments. Built on Fortinet’s FortiOS™, the FortiMail
antivirus technology extends full content inspection capabilities to detect the most
advanced email threats.
About this document
This document describes how to use the Fort ine t Com m a nd Line Inter f a ce (CL I) .
The following chapters appear in this document:
•Using the CLI describes how to connect to and use the Fortinet command-line
interface (CLI).
•execute is an alphabetically-ordered reference to the execute commands.
These commands perform immediate actions on the FortiMail unit, such as
configuration backup or unit reset.
•get is an alphabetically-ordered reference to the get commands. These
commands display information about FortiMail unit co nfiguration and status.
•set is an alphabetically-ordered reference to the set commands. These
commands configure all aspects of FortiMail unit operation.
•unset is an alphabetically-ordered reference to the unset commands. These
commands remove configurations such as alert email settings, LDAP profiles,
logging and email server settings.
Note: Diagnose commands are also available from the FortiMail CLI. These commands are
used to display system information and for debugging. Diagnose commands are intended
for advanced users only, and they are not covered in this document. Contact Fortinet
technical support before using these commands.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081415
About this documentIntroduction
Document conventions
The following document conventions are used in this guide:
•In the examples, private IP addresses are used for both private and public IP
addresses.
•Notes and Cautions are used to provide important information:
Note: Highlights useful additional information.
Caution: Warns you about commands or procedures that could have unexpected or
!
undesirable results including loss of data or damage to equipment.
Typographic conventions
Fortinet documentation uses the following typographical conventions:
ConventionExample
Keyboard inputIn the Gateway Name field, type a name for the remote VPN
Menu commandsGo to Anti-Spam > Greylist > Exempt and select Create
Program outputWelcome!
Variables
peer or client (for example, Central_Office_1).
Authentication</TITLE></HEAD>
<BODY><H4>You must authenticate to use this
service.</H4>
New.
•<xxx_str> indicates an ASCII string variable keyword.
•<xxx_integer> indicates an integer variable
keyword.
•<xxx_ipv4> indicates an IP address variable keyword.
•vertical bar and braces {|} separate mutually exclusive
required keywords
For example:
set system opmode {gateway | transparent
| server}
This example indicates you can enter set system
opmode gateway or set system opmode
transparent or set system opmode server
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
1606-30004-0420-20080814
Introduction FortiMail documentation
FortiMail documentation
Information about the FortiMail unit is available from the following guides:
•FortiMailQuickStart Guides
Provides basic information about connecting and installing a FortiMail unit. A
separate guide is available for each FortiMail model.
•FortiMail Administration Guide
Introduces the product and describes how to configure and ma nage a FortiMail
unit, including how to create profiles and policies, configure antispam and
antivirus filters, create user accounts, configure email archiving, and set up
logging and reporting.
•FortiMail CLI Reference
Describes how to use the FortiMail CLI and contains a reference of all
FortiMail CLI commands.
•FortiMail Log Message Reference
Available exclusively from the Fortinet Knowledge Center, the FortiMail Log
Message Reference describes the structure of FortiMail log messages and
provides information about the log messages that are generated by FortiMail
units.
•FortiMail Installation Guide
Describes how to set up the FortiMail unit in transparent, gateway, or server
mode.
•FortiMail online help
Provides a searchable version of the Administration Guide in HTML format.
You can access online help from the web-based manager as you work.
•FortiMail Webmail online help
Describes how to use the FortiMail web-based email client, including how to
send and receive email, how to add, import, and export addresses, how to
configure message display preferences, and how to manage quarantined
email.
•FortiMail User Guides
Provides information that the FortiMail end users need to know in orde r to ta ke
advantage of the services provided by the FortiMail unit. These guides are
included as chapters in the FortiMail Administration Guide, allowing the
administrator to provide information on only the enabled features.
Fortinet Tools and Documentation CD
All Fortinet documentation is available on the Fortinet Tools and Documentation
CD shipped with your Fortinet product. The documents on this CD are current at
shipping time. For up-to-date versions of Fortinet documentation visit the Fortinet
Technic al Doc um e ntation web site at http://docs.forticare.com.
Fortinet Knowledge Center
Additional Fortinet technical documentation is available from the Fortinet
Knowledge Center. The knowledge center contains troubleshooting and how-to
articles, FAQs, technical notes, a glossary , and more. Visit the Fortinet Knowledge
Center at http://kc.forticare.com.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081417
Customer service and technical supportIntroduction
Comments on Fortinet technical documentation
Please send information about any errors or omissions in this document, or any
Fortinet technical documentation, to techdoc@fortinet.com.
Customer service and technical support
Fortinet Technical Support provides services designed to make sure that your
Fortinet systems install quickly, configure easily, and operate reliably in your
network.
Please visit the Fortinet Technical Support web site at http://support.fortinet.com
to learn about the technical support services that Fortinet provides.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
1806-30004-0420-20080814
What’s new
What’s new
The table below lists commands which have changed since the previous release, 3.0 MR3.
CommandChange
execute partitionlogdiskNew command. Sets the size of the hard disk
set as bounceverifyNew command. Configures verification of
set as mms_reputationNew command. Sets the window of time during
set as profile modify rewrite_rcptNew command. Configure rewriting of the
set ip_profile headermanipulationNew command. Removes specified message
set ip_profile mms_reputationNew command. Enables or disables detection
set ip_profile sendervalidation
bypassbounceverify
set ip_profile_setting rate_controlNew command. Selects whether to rate control
set mailserver access ... authenticatedNew keyword. Selects whether to apply the
set mailserver access ... tlsprofileNew keyword. Selects the name of a transport
set mailserver smtp ldap_domain_checkNew command. Enables or disables use of an
set mailserver smtpauth smtpNew keyword. Enables or disables SMTP
set mailserver smtpauth smtpovertlsNew keyword. Enables or disables transport
set mailserver smtpauth smtpsNew keyword. Enables or disables SMTPS
set policy modify add_associationNew command. Configures domain
partition to use as the log disk. Remaining hard
disk space is used as the mail disk.
delivery status notification (DSN) email.
which detection of multimedia message service
(MMS) spam will affect the sender reputation of
the end user ID (MSISDN).
recipient email address located in the envelope
if the email message is detected as spam.
headers.
of spam based upon the sender reputation of
the end user ID (MSISDN) for multimedia
message service (MMS) email messages, and
configures its detection threshold and duration.
New keyword. Enables or disables bypass of
verification of delivery status notification (DSN)
email.
email messages by either the number of email
messages or the number of SMTP connections.
access control rule to only authenticated SMTP
sessions, or regardless of authentication
status.
layer security (TLS) profile to apply to SMTP
sessions governed by this access control rule.
LDAP query to verify the existence of a domain
and to automatically associate it with a
protected domain.
authentication.
layer security (TLS) authentication for SMTP.
authentication.
associations, which associate a domain name
with the settings for an existing protected
domain.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081419
CommandChange
set system fortimanagerNew command. Configures remote
administration by and automatic configuration
backups to a FortiManager system.
set user pkiNew command. Configures public key
infrastructure (PKI) authentication for email
users and FortiMail administrators.
What’s new
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
2006-30004-0420-20080814
Using the CLI CLI command syntax
Using the CLI
This section describes how to connect to and use the FortiMail command line
interface (CLI). You can use CLI commands to view all FortiMail system
information and to change all system configuration settings.
This section contains the following topics:
•CLI command syntax
•Connecting to the CLI
•CLI command branches
CLI command syntax
This guide uses the following conventions to describe command syntax.
•Angle brackets < > to indicate variables.
For example:
set console page <length_int>
You enter:
set console page 40
The various types of variables include:
<xxx_str> indicates an ASCII string.
<xxx_int> indicates an integer string that is a decimal number.
<xxx_ipv4> indicates a dotted decimal IPv4 address.
<xxx_v4mask> indicates a dotted decimal IPv4 netmask.
<xxx_ipv4mask> indicates a dotted decimal IPv4 address followed by a
dotted decimal IPv4 netmask (e.g. 192.168.1.99 255.255.255.0)
<xxx_ipv4/mask> indicates a dotted decimal IPv4 address followed by a
CIDR notation IPv4 netmask (e.g. 192.168.1.99/24)
<xxx_ipv6> indicates an IPv6 address.
<xxx_v6mask> indicates an IPv6 netmask.
<xxx_ipv6mask> indicates an IPv6 address followed by an IPv6 netmask.
•Vertical bar and braces {|} separate alternative, mutually exclusive required
keywords.
For example:
set system opmode {gateway | server | transparent}
You can enter set system opmode gateway or set system opmode
server or set system opmode transparent.
•Square brackets [ ] to indicate th at a keyword or variable is optional.
For example:
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081421
Connecting to the CLIUsing the CLI
set policy <fqdn> modify fallbackhost <host_ipv4>
[fallbackport <port>]
The fallback host address is required, and a fallback port is optional
•A space to separate options that can be entered in any combination and must
be separated by spaces.
For example:
set allowaccess {ping https ssh snmp http telnet}
You can enter any of the following:
set allowaccess ping
set allowaccess ping https ssh
set allowaccess https ping ssh
set allowaccess snmp
In most cases to make changes to lists that contain options separated by
spaces, you need to retype the whole list including all the optio ns you want to
apply and excluding all the options you want to remove.
Connecting to the CLI
You can use a direct console connection, SSH, or Telnet to connect to the
FortiMail unit CLI.
Connecting to the FortiMail unit console
To connect to the FortiMail console, you require:
•A computer with an available com port.
•A null modem cable to connect the FortiMail console port.
•Terminal emulation software such as HyperTerminal for Windows.
Note: The following procedure describes how to connect to the FortiMail CLI using
Windows HyperTerminal software. You can use any terminal emulation program.
To connect to the FortiMail unit console
1Connect the FortiMail console port to the available communications port on your
computer.
2Make sure the FortiMail unit is powered on.
3Start HyperTerminal, enter a name for the connection, and select OK.
4Configure HyperTerminal to connect directly to the communications port on the
computer to which you have connected the FortiMail console port.
5Select OK.
6Select the following port settings and select OK.
Bits per second 9600
Data bit s8
ParityNone
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
2206-30004-0420-20080814
Using the CLI Connecting to the CLI
Stop b its1
Flow controlNone
7Press Enter to connect to the FortiMail CLI.
8A prompt appears:
FortiMail-400 login:
9Type a valid administrator name and press Enter .
10Type the password for this administrator and press Enter.
The following prompt appears:
Welcome!
You have connected to the FortiLog CLI, and you can enter CLI commands.
Setting administrative access for SSH or Telnet
To configure the FortiMail unit to accept SSH or Te lnet connections, you must set
administrative access to SSH or Telnet for the FortiMail interface to which your
management computer connects. To use the web-based manager to configure
FortiMail interfaces for SSH or Telnet access, see “Interface settings” in the
“Configuring FortiMail system settings” chapter of the FortiMail Administration
Guide.
To use the CLI to configure SSH or Telnet access
1Connect and log into the CLI using the FortiMail console port and your terminal
emulation software.
2Use the following command to configure an interface to accept SSH connections:
set system interface <interface_name> config allowaccess ssh
end
3Use the following command to configure an interface to accept Telnet
connections:
set system interface <interface_name> config allowaccess
telnet
4To confirm that you have configured SSH or Telnet access correctly, enter the
following command to view the access settings for the interface:
get system interface
The CLI displays the settings, including the management access settings, for the
configured interfaces.
Connecting to the FortiMail CLI using SSH
Secure Shell (SSH) provides strong secure authentication and secure
communications to the FortiMail CLI from your internal network or the internet.
Once the FortiMail unit is configured to accept SSH connections, you can run an
SSH client on your management computer and use this client to connect to the
FortiMail CLI.
Note: The FortiMail unit supports the following encryption algorithms for SSH access:
3DES and Blowfish.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081423
CLI command branchesUsing the CLI
To connect to the CLI using SSH
1Install and start an SSH client.
2Connect to the FortiMail interface that is configured for SSH connections.
3Type a valid administrator name and press Enter.
4Type the password for this administrator and press Enter.
The FortiMail model name followed by a # is Displayed.
You have connected to the FortiMail CLI, and you can enter CLI commands.
Connecting to the FortiMail CLI using Telnet
You can use Telnet to connect to the FortiMail CLI from your internal network or
the Internet. Once the FortiMail unit is configured to accept Telnet connections,
you can run a Telnet client on your management computer and use this client to
connect to the FortiLog CLI.
Caution: Telnet is not a secure access method. SSH should be used to access the FortiLog
!
CLI from the internet or any other unprotected network.
To connect to the CLI using Telnet
1Install and start a Telnet client.
2Connect to the FortiMail interface that is configured for Telnet connections.
3Type a valid administrator name and press Enter.
4Type the password for this administrator and press Enter.
You have connected to the FortiMail CLI, and you can enter CLI commands.
CLI command branches
The FortiGate command-line interfa c e consists of four command branches:
•Use execute to run static commands on the FortiMail unit. Examples include
resetting the device, formatting the hard drive, and pinging other devices from
the FortiMail unit’s network interfaces.
For a complete execute command list, see “execute” on page 25.
•Use get to display system status information. The get command can be
used to display the current value of items configured with the set command.
For a complete get command list, see “get” on page 49.
•Use set to configure the FortiMail unit. All of the configuration allowed in the
GUI can also be accomplished using the set command. Some extra options
not available in the GUI are also available with the set command.
For a complete set command list, see “set” on page 93.
•Use unset to return settings to their default values.
For a complete unset command list, see “unset” on page 353.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
2406-30004-0420-20080814
execute
execute
Use execute commands to perform maintenance operations on your FortiMail unit or to perform
network test operations such as ping or traceroute.
This chapter describes the following execute co mm a nd s:
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081425
backup configexecute
backup config
Use this command to back up system settings to a TFTP server.
Syntax
execute backup config <name_str> <server_ipv4>
<name_str> is the filename for the backup on the TFTP server<server_ipv4> is the IP address of the TFTP server
History
FortiMail v3.0 New.
Related topics
•execute restore
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
2606-30004-0420-20080814
execute checklogdisk
checklogdisk
When recommended by Customer Support, use this command to find and correct errors on the log
disk. Logging is suspended while this command is running.
Syntax
execute checklogdisk
History
FortiMail v3.0 New.
Related topics
•execute checkmaildisk
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081427
checkmaildiskexecute
checkmaildisk
When recommended by Customer Support, use this command to find and correct errors on the mail
disk. Actions are reported at the command prompt. If the check can’t fix something automatically, it
presents a list of options for the admin to select from.
Mail functions are suspended while this command is running.
Syntax
execute checkmaildisk
History
FortiMail v3.0 New.
FortiMail v3.0 MR3 Renamed from checkspooldisk.
Related topics
•execute checklogdisk
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
2806-30004-0420-20080814
execute clearqueue
clearqueue
Select to remove all messages from the deferred queue.
Syntax
execute clearqueue
History
FortiMail v3.0 MR3 New.
Related topics
•execute checklogdisk
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
06-30004-0420-2008081429
factoryresetexecute
factoryreset
Use this command to restore the factory default settings.
This will delete your configuration.
Syntax
execute factoryreset
History
FortiMail v3.0 New.
FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
3006-30004-0420-20080814
Loading...
+ 338 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.