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

I want a high-level test that ensures that both incoming and outgoing email services are operating normally. I've achieved this by writing a python script which does this:

  1. Send a message with a unique hash through my mail server to foo-circuit-test@gmail.com
  2. The gmail account is configured to auto-reply back to the same address and then delete the message.
  3. My script polls IMAP until it finds an email with the correct hash sitting in its inbox, or times out.
  4. It reports the elapsed time to my monitoring software (Zabbix)

My question: Is gmail the best third-party to use? Should I add a couple others as well such as hotmail and yahoo? Is there anyone more official that will auto-reply to these sorts of "mail pings"? Any other recommendations for this type of test?

share|improve this question
    
commenting to find your question again tomorrow, should have something that can help where i work –  HannesFostie Apr 14 '10 at 18:53

3 Answers 3

I had something similar but got frustrated with false positives (any of the free email services is going to be decent about mail delivery but there were occasional delays with Gmail). I ended up splitting this into two monitors: one to send an email to my server via SMTP and then check the mailbox via IMAP to make sure it arrived (that covers inbound) and the other just watches the outbound mail queue and alerts if it gets above x messages. Assuming your server is loaded 24x7, the outbound queue will fill if outbound delivery isn't working.

share|improve this answer
    
Great ideas. Thanks. –  lukecyca Apr 13 '10 at 16:39

I would send a test to as many free accounts as you can to pass the "we're not a spammer" test: that is, if your SPF records are in place and accurate, your content is ok, rDNS, attachments accepted, HTML formatting ok, etc. as more often than not, that's the cause of mail interruption these days.

share|improve this answer

I want to have more than one third-party email account to bounce my email test off of. Here's the result of my research:

  • Gmail: Works great. It has flexible filtering that can auto-reply.
  • Yahoo: Doesn't support filters that auto-reply, but can be set to forward all email back to you.
  • Hotmail: Doesn't support filters that auto-reply, and can only forward to other Windows-Live email accounts. Useless.

For now, I have both Gmail and Yahoo set up, but I may look at some other services from this list.

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.