I'm working in hosting company as Linux administrator 10 years, therefore I can help you with your task.
My last finished script, project - https://www.freelancer.com/projects/php/script-detect-undelivered-emails/
I can do it now.
Waiting for your answer.