Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to monitor my postfix, dovecot and sasl process and start them if something go wrong. I read about daemontools and I want it to monitor mail services. Can I find somewhere step by step guide to setup daemontools on Debian? I've already installed daemontools and daemontools-run packages.

share|improve this question
up vote 1 down vote accepted

daemontools is not really a meant to be used as a monitoring system for existing services. It is more of a framework for creating daemonized services that happens to have builtin self-monitoring and auto-restarting capabilities.

With a great deal of effort, you may be able to retrofit the postfix, dovecot, and sasl processes to run within the daemontools framework, but I can almost certainly guarantee that your time will be much better spent learning a tool better suited for what you want to accomplish.

I recommend you look into monit. It is packaged for Debian and should work well with the other Debian-packaged services that you want to monitor.

share|improve this answer
Thank You. monit is great. – PsychoX Oct 6 '11 at 11:25

Your intention is generally good. But...

Postfix and Dovecot are two of the most robust and mature software on your server. If one of them fail then you have another big problem. But most probably this problem is not related to Postfix or Dovecot. A restart of these services will run in the same problem as there was before. Postfix and Dovecot have self-healing mechanisms on board that restart their subroutines on their own. And SASL is a subroutine of Dovecot so there is no need to monitor this.

share|improve this answer

Your Answer


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.