What do people use to monitor that their email server is accepting external email? Most monitoring solutions send notices by email which is useless when incoming email breaks, so some other method of notification is required. Ideally this is a piece of software that we can just run locally, but external services are also acceptable.

Background: Our ADSL modem has a stupid firewall that blocks incoming connections, which can be removed manually via telnet but comes back whenever the PPPoE connection drops. We're going to buy a new one soon, but having monitoring for email seems like a good idea generally.

link|improve this question
feedback

5 Answers

Perhaps you're looking at this from the wrong way?

If this occurs every time your PPPoE connection drops, why not monitor that connection? Any time it drops, wait until it comes back up and then have a script that goes in and resets the required rules/configuration.

No reason to notify you of the problem if you can just automatically fix it (also reduced the amount of time the service is unavailable).

link|improve this answer
+1 solve the problem, not the symptom – samt Jul 24 '09 at 6:42
feedback

We use Nagios to send SMS text messages via Clickatell. Clickatell is not free, but it's low enough and the alerting important enough to make it worthwhile. We do send email as well, but the SMS is the major alerting method.

We use the standard Nagios checks to make sure that port 25 is open and that we get an SMTP banner back and similar on our POP3 service. We also have a set of custom checks which send an email and then attempt to read a POP3 box for that email. This gives us end to end testing, plus the individual service checks can give us additional information on what might be wrong, even if they both continue to work.

link|improve this answer
feedback

What smtp server are you using? I use taile for postfix.

link|improve this answer
feedback

One method I've used in the past is to send mail to a test account, with a program checking that mailbox on a regular basis. If there's been "enough time" since the last received mail, there's a problem.

This can also be used to monitor mail delay through a larger email server network (that was actually the primary use of the code, but it also worked as a heads-up for mail server down issues).

link|improve this answer
feedback

If your modem/router allows you to loop back via the external interface (i.e. you can access internal resources via the public address from inside your network) you can just run a script to open and close an SMTP connection periodically. Unfortunately, not all routers allow you to loop back, so there would be no way to test it from the inside, so you would need to find a way to test it from the outside.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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