I am running Postfix on an Ubuntu distribution and have been requested to log and count all email messages originating at a particular sender.
I have thought of using the log file (tail -f /var/log/mail.log | grep
xyz@somedomain.com') and redirecting this into a file. I then need to write a program to read through the file and count the instances of this email address and also connect to mySql and log it.
The problem is I don't know how to write programs in Linux....what do I use? is there an easier way to do this?
Thanks
Vatraxos