Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to monitor an email server - not whether the port is open and receiving, but rather that a "canary" message sent every so often actually arrives somewhere else. I have had a problem with a server getting firewalled off and no one noticing that cron jobs are not coming from the machine for a few weeks. Of course, the machine itself cannot send out a notification if it is having problems, so this requires an outside service. Any ideas?

share|improve this question

3 Answers 3

Send a message somewhere where you have POP or IMAP access and try to pick it up again with fetchmail.

share|improve this answer
    
That's what I was thinking. The OP needs an email loop test. –  joeqwerty Nov 19 '12 at 17:03
    
Right, I know how it could be done, but I was hoping there's already a service or solution out there rather than rolling my own. –  DGM Nov 19 '12 at 17:05

I have written a simple monitoring script in python which supports this.

https://github.com/gryphius/monsta

if you want to roll your own, you could have a look at the source for an example:

https://github.com/gryphius/monsta/blob/master/src/monsta/check/mailflow.py

share|improve this answer

Panopta's (full disclosure: I'm the founder) monitoring offering supports round-trip email checks, which I think would handle the situation you've got. Our monitoring nodes send a test email every few minutes, and then wait to make sure it can be retrieved via POP or IMAP. Alerts can be sent when the delivery fails or the round trip time exceeds a set threshold.

If you'd like to try it out, let me know and we'd be happy to help with the setup.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.