Configuring FortiGuard services
FortiMail uses Fortinet FortiGuard antivirus, antispam, and URL protection services.
Go to System > FortiGuard > License to view the most recent updates to FortiGuard Antivirus engines, antivirus definitions, and FortiGuard antispam definitions (antispam heuristic rules).
FortiMail units receive updates from the FortiGuard Distribution Network (FDN), a world-wide network of FortiGuard Distribution Servers (FDS). FortiMail units connect to the FDN by connecting to the FDS nearest to the FortiMail unit by its configured time zone.
In addition to manual update requests, FortiMail units support two kinds of automatic update mechanisms:
- scheduled updates, by which the FortiMail unit periodically polls the FDN to determine if there are any available updates
- push updates, by which the FDN notifies FortiMail units when updates become available
You may want to configure both scheduled and push updates. In this way, if the network experiences temporary problems such as connectivity issues that interfere with either method, the other method may still provide your FortiMail unit with updated protection. You can alternatively manually update the FortiMail unit by uploading an update file by going to Dashboard > Status and click Update under License Information. |
For FortiGuard Antispam and FortiGuard Antivirus update connectivity requirements and troubleshooting information, see Troubleshoot FortiGuard connection issues.
To access this part of the web UI, your administrator account’s:
- Domain must be System
- access profile must have Read-Write permission to the Others category
For details, see About administrator account permissions and domains.
This section contains the following topics:
- Configuring FortiGuard antivirus service
- Configuring FortiGuard antispam service
- Configuring FortiGuard URL click protection service
- Configuring GeoIP override
- Configuring GeoIP override
Configuring FortiGuard antivirus service
You can configure the FortiMail unit to periodically request updates from the FDN or override servers for the FortiGuard antivirus engine and antivirus definitions.
You can use push updates or manually initiate updates as alternatives or in conjunction with scheduled updates. If protection from the latest viral threats is a high priority, you could configure both scheduled updates and push updates, using scheduled updates as a failover method to increase the likelihood that the FortiMail unit always retrieves periodic updates if connectivity is interrupted during a push notification. While using only scheduled updates could potentially leave your network vulnerable to a new virus, it minimizes short disruptions to antivirus scans that can occur if the FortiMail unit applies push updates during peak volume times.
For example, you might schedule updates every night at 2 AM or weekly on Sunday, when email traffic volume is light.
Before configuring scheduled updates, first verify that the FortiMail unit can connect to the FDN or override server.
To configure FortiGuard antivirus options
- Go to System > FortiGuard > AntiVirus.
- Configure the following and then click Apply.
See also
Configuring FortiGuard services
Verifying connectivity with FortiGuard services
Configuring FortiGuard antivirus service
Troubleshoot FortiGuard connection issues
Manually requesting updates
You can manually trigger the FortiMail unit to connect to the FDN or override server to request available updates for its FortiGuard antivirus packages.
You can manually initiate updates as an alternative or in addition to other update methods.
To manually request updates
Before manually initiating an update, first verify that the FortiMail unit can connect to the FDN or override server.
- Go to System > FortiGuard > AntiVirus.
- Click Update Now.
- After a few minutes, click the System > FortiGuard > License tab to check the update status. If an update was available, new version numbers appear for the packages that were updated. If you have enabled logging, messages are recorded to the event log indicating whether the update was successful or not. For details, see Logs, reports and alerts.
Updating FortiGuard Antivirus definitions can cause a short disruption in traffic currently being scanned while the FortiMail unit applies the new signature database. To minimize disruptions, update when traffic is light, such as during the night. |
Configuring FortiGuard antispam service
You can connect to FDN to use its antispam service. You can also use your own override server, such as a FortiManager unit, to get the antispam service.
To configure the FortiGuard antispam options
- Go to System > FortiGuard > AntiSpam.
- Verify that the Enable service is enabled. Also specify the FortiGuard server port (53, 443, or 8888. The default number is 53) and protocol (UDP or HTTPS).
- Specify a spam outbreak protection level. Higher level means more strict filtering. This feature temporarily hold email for a certain period of time (spam outbreak protection period) if the enabled FortiGuard antispam check (block IP and/or URL filter) returns no result (see Configuring FortiGuard options). After the specified time interval, FortiMail will query the FortiGuard server for the second time. This provides an opportunity for the FortiGuard antispam service to update its database in cases a spam outbreak occurs.
- If you want to use an override server, such as a local FortiManager unit, instead of the default FDN server, specify it by enabling the option and entering the server address.
- Optionally enable cache and specify the cache TTL time. Enabling cache can improve performance.
- Use FortiGuard servers either in U.S. only or in any locations in the world.
- Click Apply.
Note that port 443 is only available for protocol HTTPS.
Manually querying FortiGuard antispam service
For testing or any other purposes, you may want to manually query the FortiGuard antispam service by entering an IP address, URL, or a Hash value of an email message.
To query FortiGuard antispam service
- Go to System > FortiGuard > License.
- Enter an IP, URL or hash value of an email message.
- Click Query.
- Verify that the DNS servers contain A records to resolve
service.fortiguard.net
and other FDN servers. To try to obtain additional insight into the cause of the query failure, manually perform a DNS query from the FortiMail unit using the following CLI command: - Verify that:
If the query is successful, the Query result field will display if the IP/URL is spam or unknown (not spam).
If the query is unsuccessful, the Query result field will display No response. In this case, you can use the following tips to troubleshoot the issue.
If the FortiMail unit can reach the DNS server, but cannot successfully resolve the domain name of the FDN, a message appears notifying you that a DNS error occurred.
DNS error when resolving the FortiGuard Antispam domain name
execute nslookup name service.fortiguard.net
If the FortiMail unit cannot successfully connect, or if your FortiGuard Antispam license does not exist or has expired, a message appears notifying you that a connection error occurred.
Connection error when verifying FortiGuard Antispam connectivity
- this is no proxy in between FortiMail and the FDN server.
- your FortiGuard Antispam license is valid and currently active
- the default route (located in System > Network > Routing) is correctly configured
- the FortiMail unit can connect to the DNS servers (located in System > Network > DNS) and to the FDN servers
- firewalls between the FortiMail unit and the Internet or override server allow FortiGuard Antispam rating query traffic.
The default port number for FortiGuard antispam query is UDP port 53 in v4.0. Prior to v4.0, the port number was 8889.
execute traceroute <address_ipv4>
where <address_ipv4>
is the IP address of the DNS server or FDN server.
When query connectivity is successful, antispam profiles can use the FortiGuard option.
You can use the antispam log to monitor for subsequent query connectivity interruptions. When sending email through the FortiMail unit that matches a policy and profile where the FortiGuard option is enabled, if the FortiMail cannot connect to the FDN and/or its license is not valid, and if Information-level logging is enabled, the FortiMail unit records a log message in the antispam log (located in Monitor > Log > AntiSpam) whose Log Id field is 0300023472
and whose Message field is:
FortiGuard-Antispam: No Answer from server.
Configuring FortiGuard URL click protection service
When configuring the content profiles (see Configuring content disarm and reconstruction (CDR)), you can choose what to do with the URLs contained in the email messages: either remove them or leave them.
However, if the URLs are not removed, there is a chance that email users may click and follow them. To protect users from harmful or spam URLs, such as phishing or advertising web sites, FortiMail uses FortiGuard URL filter service (see Configuring heuristic options) and FortiSandbox to scan the URLs after the users click the URLs. Depending on the inspection results from FortiGuard and FortiSandbox, you can decide if you would allow the users to access the URLs or block them.
Starting from 6.2 release, you can also choose to use FortiIsolator to isolate threats. FortiIsolator is a browser isolation solution, which protects users against zero day malware and phishing threats that are delivered over the web and email. These threats may result in data loss, compromise, or ransomware. This protection is achieved by creating a visual air gap between users' browsers and websites, which prevents content from breaching the gap. With FortiIsolator, web content is executed in a remote disposable container and displayed to users visually.
To configure FortiGuard URL click protection settings
Go to System > FortiGuard > URL Protection and configure the following:
GUI item |
Description |
|
URL Rewrite |
FortiMail must rewrite URLs to ensure that the URLs will be directed to FortiMail first when users click the URLs. |
|
|
Category |
Specify what URL categories will be rewritten. |
|
Base URL |
Enter prefix “https://” and the FortiMail FQDN or IP address. Note that without the prefix, the URL will not work. The rewritten URL will be in this format: https://company.com/fmlurlsvc/?fewReq/baseValue&url=originalUrlEscaped. Using the originalUrlEscaped part, you can get the original URL with the help of a URL decoding web site, such as https://www.urldecoder.org. |
URL Click Handling |
When users click the URLs in the email messages, you can choose to block or allow their access. |
|
|
Category |
Choose the URL category for the below action. For information about URL categories, see Configuring heuristic options. |
|
Action |
Specify either to Block or Allow with Confirmation for the above URL category. |
|
FortiSandbox Scan |
For all other URL categories not specified above, you can choose to send them to FortiSandbox (see Using FortiSandbox antivirus inspection) for further scanning. Enable: Toggle to enable or disable FortiSandbox scan. Action: Allow with Confirmation means to allow access with warning; Block means to block access; and Submit only means to allow access while sending the URLs for scanning. Timeout action: When the URLs are sent to FortiSandbox for scanning, it may take a while to get the results back. You should specify how long you want to wait for the results before you take Block, Allow, or Allow with Confirmation actions. Timeout: Specify how long (in seconds) you want to wait for FortiSandbox scan results before you take Block, Allow, or Allow with Confirmation actions. |
FortiIsolator Integration |
|
|
|
Category |
Specify what URL categories will be going through FortiIsolator. For information about URL categories, see Configuring heuristic options. |
|
Base URL |
Enter prefix “https://” and the FortiIsolator FQDN or IP address. Note that without the prefix, the URL will not work. |
URL Removal |
You can also choose to remove the URLs in the specified category. |
|
|
Category |
Specify the URL category to remove the URLs. For information about URL categories, see Configuring heuristic options. |
Configuring GeoIP override
GeoIP service looks up the IP address geolocations in the GeoIP database. However, in some cases, the lookup might not be accurate, for example, when clients use proxies.
With FortiMail, you can override the GeoIP lookup by manually specifying the geolocations of some IP addresses/IP ranges. When you create GeoIP groups (see Configuring GeoIP groups), you can use the override geolocations in the groups.
When entering IP addresses for GeoIP overrides, only IPv4 addresses are supported. |
To configure GeoIP override
- Go to System > FortiGuard > GeoIP Override.
- Click New.
- Specify a geolocation name for the client IP addresses.
- Optionally enter a description.
- Click New to specify the IPv4 addresses that you want to include in the geolocation.
- Click Create.
You can test GeoIP lookup by clicking IP Geography Query.
Configuring MSSP features (license required)
FortiMail provides some features that are useful to the MSSP customers.
If you have the MSSP license, you can enable or disable the following features under System > FortiGuard > MSSP.
- Enable HA centralized monitor. For details, see Centrally monitoring the HA cluster.
- Enable mailbox accounting service. For details, see Configuring mailbox statistics.
- Enable domain group support. For details, see To view and configure domain groups.
- Enable history log access for domain level administrator. For details, see Configuring protected domains.