I installed monit to monitor my server. Monit is pretty similar to watchdog, but I can control it completely.
But, problem is, I can't receive email alerts.
Setting for mail server I use is:
set mailserver localhost
This uses default port. I use qmail on my server. Error in monit log is this:
Mail: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
Alert handler failed, retry scheduled for next cycle
I checked document here: http://kb.odin.com/en/168 I have localhost where it should be. I also tried using different port (587, as I use server for sending my mails).
Whatever I tried so far I don't receive emails. I see that there are events that should triggered email sending (as evident from mail log), like PID or Monit restart.
I don't know if watchdog sends emails on PID change, but I don't receive them neither. Before I received emails from watchdog for sure, some services (BIND, php-fpm) needed restart.
Any suggestions why monit doesn't send emails?
But, problem is, I can't receive email alerts.
Setting for mail server I use is:
set mailserver localhost
This uses default port. I use qmail on my server. Error in monit log is this:
Mail: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
Alert handler failed, retry scheduled for next cycle
I checked document here: http://kb.odin.com/en/168 I have localhost where it should be. I also tried using different port (587, as I use server for sending my mails).
Whatever I tried so far I don't receive emails. I see that there are events that should triggered email sending (as evident from mail log), like PID or Monit restart.
I don't know if watchdog sends emails on PID change, but I don't receive them neither. Before I received emails from watchdog for sure, some services (BIND, php-fpm) needed restart.
Any suggestions why monit doesn't send emails?