Hi
Do you have the log insight agent installed on the server you are getting logs from? If so have you tried the Linux content pack I believe it covers mail.log as well as other Linux log files.
But if you like to parse it your self have a look at the log parser and how to configure it. It is possible to do.
Dont have an example at hand but look at the documentation -> Configure Log Parsers
Blogging at https://MichaelRyom.dk