Description
This article describes how to check the antispam or email filter logs from the GUI and CLI.
Solution
From GUI.
Go To FortiGate -> Log And Reports -> Anti-Spam.

This article describes how to check the antispam or email filter logs from the GUI and CLI.
Solution
From GUI.
Go To FortiGate -> Log And Reports -> Anti-Spam.

From CLI.
# execute log filter category 5
# execute log display
1 logs found.
1 logs returned.
1: date=2021-02-22 time=11:34:04 eventtime=1613990044612557497 tz="+0100" logid="0513020480" type="utm" subtype="emailfilter" eventtype="spam" level="notice" vd="root" policyid=1 sessionid=1957747820 user="user" group="group2" srcip=177.10.199.186 srcport=4361 srcintf="port4" srcintfrole="lan" dstip=172.252.3.20 dstport=80 dstintf="port6" dstintfrole="undefined" proto=6 vrf=32 service="IMAP" action="blocked" from="from@xxx.com" to="to@xxx.com" direction="incoming" agent="agent" msg="SpamEmail" size="5168"