
Originally Posted by
ronaldoo
Yes, I have shell root access to the server!
Thank you!
My exim_mainlog commences at 4.02am every Sunday.
So I run a cron as follows to push the stats in a file called MailStats.
Code:
01 4 * * * /usr/sbin/eximstats -ne -nr -nt /var/log/exim_mainlog > MailStats
I have a small file called 4am which has the single line below in it. This sends me a mail populated with the contents of file MailStats
Code:
mail -s "Domain Server Mail Traffic as from 4a.m. Sunday to 4a.m. today" me@domain.com < MailStats
Then I run a cron as follows
Rough, but reliable, I am a noob in 'nix, this works for me.
Hope this helps