Technical Tip: How to verify user authentication in logs
Description
 This article explains how to check user authentication success and failure via logs.
Scope
FortiMail.
Solution
Administrator authentication success/failure is logged in the System Event log.
legend: "#","Date","Time","Subtype","Message","Level","Log ID"
Via GUI:
0,"2026-03-26","14:32:16.740","admin","User hoge login successfully from GUI(192.168.1.xxx)","information","0701003024"0,"2026-03-26","14:32:26.030","admin","User hoge login failed from GUI(192.168.1.xxx)","information","0701003024"
Via SSH:
0,"2026-03-26","14:28:06.983","admin","User hoge login successfully from ssh(192.168.1.xxx)","information","0701009794"0,"2026-03-26","14:30:00.064","admin","User hoge login failed from ssh(192.168.1.xxx)","information","0701009824"WebMail, SMTP(S), IMAP(S), and POP3(S) authentication success and failure events are logged in the Mail Event log.
Via WebMail:
legend: "#","Date","Time","Subtype","Message","Session ID","Level","Log ID"
0,"2026-03-13","15:22:36.803","webmail","WebMail: User hoge@fuga.com from 192.168.1.xxx logged in.",,"information","0000018899",,"event",,"unknown","webmail","webmail"0,"2026-03-13","14:31:49.752","webmail","WebMail: Login for 'hoge@fuga.com' from 192.168.1.xxx failed",,"information","0000018899",,"event",,"unknown","webmail","webmail"
Via IMAP(S):
0,"2026-03-23","10:36:10.838","imap","Login: user=<hoge@fuga.com>, method=PLAIN, rip=192.168.1.xxx, lip=192.168.1.yyy, mpid=7721, session=<xxxxxxxxxxxxxxxxxxxxx>","","information","0002002034"0,"2026-03-23","10:36:21.275","imap","Aborted login (auth failed, 1 attempts in 2 secs): user=<hoge@fuga.com>, method=PLAIN, rip=192.168.1.xxx, lip=192.168.1.yyy, session=<xxxxxxxxxxxxxxxxxxxxx>","","information","0002002034"
Via POP3(S):
0,"2026-03-23","10:27:52.218","pop3","Login: user=<hoge@fuga.com>, method=PLAIN, rip=192.168.1.xxx, lip=192.168.1.yyy, mpid=7656, session=<xxxxxxxxxxxxxxxxxxxxx>","","information","0001002034"0,"2026-03-23","10:27:42.478","pop3","Aborted login (auth failed, 1 attempts in 8 secs): user=<hoge@fuga.com>, method=PLAIN, rip=192.168.1.xxx, lip=192.168.1.yyy, session=<xxxxxxxxxxxxxxxxx>","","information","0001002034"
Via SMTP(S):
0,"2026-03-18","10:02:48.453","smtp","AUTH=server, relay=[192.168.1.xxx], authid=hoge@fuga.com, mech=LOGIN, bits=0","xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx","information","0003003058"0,"2026-03-18","10:03:33.151","smtp","SMTP authentication failure: authid=hoge@fuga.com, authtype=LOGIN, client_ip=192.168.1.xxx, detail=SASL(-13): authentication failure: checkpass failed","xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx","information","0003003076"
Note:
If the logs do not appear, the logging feature may be disabled.
Please navigate to Log & Report -> Log Setting -> Local -> Logging Policy Configuration -> System Event, click the "+" icon to expand, and verify the settings.
