Fortinet white logo
Fortinet white logo

CLI Reference

fortiguard

fortiguard

Use these commands to verify FortiGuard Antispam and URL filtering ratings for SMTP client IP addresses, sender relationships, and URLs.

Syntax

diagnose fortiguard rating hash <hash_str>

diagnose fortiguard rating ip {<public_ipv4> | <public_ipv6>}

diagnose fortiguard rating srr from <envelope-sender_email> [hfrom <from-header-sender_email> replyto <reply-to-header-sender_email>] to <envelope-recipient_email>

diagnose fortiguard rating url <site_url>

Variable

Description

Default

hash <hash_str>

Enter an MD5 hash of a URL to query its rating from FortiGuard.

ip {<public_ipv4> | <public_ipv6>}

Enter an SMTP client IP address to query its sender reputation rating from FortiGuard.

srr from <envelope-sender_email> [hfrom <from-header-sender_email> replyto <reply-to-header-sender_email>] to <envelope-recipient_email>

Enter a sender email address that appears in the SMTP envelope (MAIL FROM:) and, optionally, the message headers (From: and/or Reply-To:), to query their sender relationship score with the recipient email address.

url <site_url>

Enter a URL to query its rating from FortiGuard.

Example

FortiMail # diagnose fortiguard rating hash 2a0c1e18c3b5afb52a6baacffdf8c180

System Time:  2025-05-22 10:53:39 EDT (Uptime: 0d 21h 5m)
1: hash html 2a0c1e18c3b5afb52a6baacffdf8c180:1, score=0, Not spam
2: hash text 2a0c1e18c3b5afb52a6baacffdf8c180:2, score=0, Not spam
3: hash png 2a0c1e18c3b5afb52a6baacffdf8c180:3, score=0, Not spam
4: hash gif 2a0c1e18c3b5afb52a6baacffdf8c180:4, score=0, Not spam
5: hash jpeg 2a0c1e18c3b5afb52a6baacffdf8c180:5, score=0, Not spam
6: hash binary 2a0c1e18c3b5afb52a6baacffdf8c180:6, score=0, Not spam

FortiMail # diagnose fortiguard rating url https://example.com/

System Time:  2025-05-22 11:10:19 EDT (Uptime: 0d 21h 21m)
url: https://example.com/, score=7, Not spam; category=Information Technology(Id: 52)

FortiMail # diagnose fortiguard rating ip 8.8.8.8

System Time:  2025-05-22 11:24:55 EDT (Uptime: 0d 21h 36m)
ip: 8.8.8.8, score=7, Not spam

FortiMail # diagnose fortiguard rating srr from no-reply@example.com to admin@fortinet.com

System Time:  2025-05-22 11:27:45 EDT (Uptime: 0d 21h 39m)
relationship: neutral; score: 9

Related topics

autoupdate

internet-service

profile antispam

system fortiguard antispam

fortiguard

fortiguard

Use these commands to verify FortiGuard Antispam and URL filtering ratings for SMTP client IP addresses, sender relationships, and URLs.

Syntax

diagnose fortiguard rating hash <hash_str>

diagnose fortiguard rating ip {<public_ipv4> | <public_ipv6>}

diagnose fortiguard rating srr from <envelope-sender_email> [hfrom <from-header-sender_email> replyto <reply-to-header-sender_email>] to <envelope-recipient_email>

diagnose fortiguard rating url <site_url>

Variable

Description

Default

hash <hash_str>

Enter an MD5 hash of a URL to query its rating from FortiGuard.

ip {<public_ipv4> | <public_ipv6>}

Enter an SMTP client IP address to query its sender reputation rating from FortiGuard.

srr from <envelope-sender_email> [hfrom <from-header-sender_email> replyto <reply-to-header-sender_email>] to <envelope-recipient_email>

Enter a sender email address that appears in the SMTP envelope (MAIL FROM:) and, optionally, the message headers (From: and/or Reply-To:), to query their sender relationship score with the recipient email address.

url <site_url>

Enter a URL to query its rating from FortiGuard.

Example

FortiMail # diagnose fortiguard rating hash 2a0c1e18c3b5afb52a6baacffdf8c180

System Time:  2025-05-22 10:53:39 EDT (Uptime: 0d 21h 5m)
1: hash html 2a0c1e18c3b5afb52a6baacffdf8c180:1, score=0, Not spam
2: hash text 2a0c1e18c3b5afb52a6baacffdf8c180:2, score=0, Not spam
3: hash png 2a0c1e18c3b5afb52a6baacffdf8c180:3, score=0, Not spam
4: hash gif 2a0c1e18c3b5afb52a6baacffdf8c180:4, score=0, Not spam
5: hash jpeg 2a0c1e18c3b5afb52a6baacffdf8c180:5, score=0, Not spam
6: hash binary 2a0c1e18c3b5afb52a6baacffdf8c180:6, score=0, Not spam

FortiMail # diagnose fortiguard rating url https://example.com/

System Time:  2025-05-22 11:10:19 EDT (Uptime: 0d 21h 21m)
url: https://example.com/, score=7, Not spam; category=Information Technology(Id: 52)

FortiMail # diagnose fortiguard rating ip 8.8.8.8

System Time:  2025-05-22 11:24:55 EDT (Uptime: 0d 21h 36m)
ip: 8.8.8.8, score=7, Not spam

FortiMail # diagnose fortiguard rating srr from no-reply@example.com to admin@fortinet.com

System Time:  2025-05-22 11:27:45 EDT (Uptime: 0d 21h 39m)
relationship: neutral; score: 9

Related topics

autoupdate

internet-service

profile antispam

system fortiguard antispam