Hi,
I am looking for a relatively simple Perl script that can parse the Exim mainlog file and outputs the entries matching a certain criteria such as username or email address.
So far I have been able to find exigrep and exim-analyzer, but they seem to be way too complicated and serve different purpose.
What I need is a script that takes the username or email address as a parameter, parses the exim_mainlog, compares the lines that contain the username/email address to a bunch of key words such as "blacklisted" or "as SPAM", etc. and outputs the results in the following manner:
date time - email_address (or username) - error (based on the keywords) - Suggested solution
Best regards,
Nixx
I am looking for a relatively simple Perl script that can parse the Exim mainlog file and outputs the entries matching a certain criteria such as username or email address.
So far I have been able to find exigrep and exim-analyzer, but they seem to be way too complicated and serve different purpose.
What I need is a script that takes the username or email address as a parameter, parses the exim_mainlog, compares the lines that contain the username/email address to a bunch of key words such as "blacklisted" or "as SPAM", etc. and outputs the results in the following manner:
date time - email_address (or username) - error (based on the keywords) - Suggested solution
Best regards,
Nixx