I am assuming you mean
FortiMail, please correct me if I am wrong since I am not familiar with any system named Fortimal, however, there will be a way in which you can get the logs in case it is a different system.
In case it is FortiMail, a simple option is to configure the logging in FortiMail to a syslog server, the procedure might be different depending on the version, here I am providing the documentation for
FortiMail 7.2.2That syslog server you are going to send the syslog events can be the same Wazuh Manager as explained here:
Receiving syslog logs in a custom port, however, I recommend you to use rsyslog and a Wazuh Agent as an intermediary:
Forward syslog eventsIn case it is a different system than FortiMail, you can aways get logs using
localfile, here it is explained how it works:
Log data collection