Need a script to test mail.
I want the script to send an email from an address on one server, to an address on another server, every minute, or at least every 5 minutes, and if that server does not go through I need it to send an email to my cell phone.
Both servers are running exim and it is a mission critical environment.
This needs to be able to notify when anything other than a Completed is in the exim log on the one server for the test email being sent. And also if nothing comes through. For example if there is a retry timeout exceed, or any other temporary differ or problem.
Please briefly describe how you will accomplish this.
I also need something to test ping on the server and port 25, I can use a recommended 3rd party for this it doesn't have to be custom.