From d49eeec2ee7ec0fc6ef1ae0e7a7bd21c246a516e Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 6 Dec 2024 17:30:18 +0100 Subject: flora: replace mailserver with ntfy.sh not sure how permanent this will be, but for now it allows me to do some things that would otherwise be hard. --- flora/services/monit.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'flora/services/monit.nix') diff --git a/flora/services/monit.nix b/flora/services/monit.nix index 83436e7..19e7e88 100644 --- a/flora/services/monit.nix +++ b/flora/services/monit.nix @@ -16,15 +16,15 @@ if failed port 64738 of type tcp using ssl with expect "NixOS" then alert - check process postfix with pidfile /var/lib/postfix/queue/pid/master.pid - start program = "${pkgs.systemd}/bin/systemctl start postfix" - stop program = "${pkgs.systemd}/bin/systemctl stop postfix" - if failed port 25 protocol smtp for 5 cycles then restart - - check process dovecot with pidfile /var/run/dovecot2/master.pid - start program = "${pkgs.systemd}/bin/systemctl start dovecot2" - stop program = "${pkgs.systemd}/bin/systemctl stop dovecot2" - if failed host mail.stuebinm.eu port 993 type tcpssl sslauto protocol imap for 5 cycles then restart + # check process postfix with pidfile /var/lib/postfix/queue/pid/master.pid + # start program = "${pkgs.systemd}/bin/systemctl start postfix" + # stop program = "${pkgs.systemd}/bin/systemctl stop postfix" + # if failed port 25 protocol smtp for 5 cycles then restart + + # check process dovecot with pidfile /var/run/dovecot2/master.pid + # start program = "${pkgs.systemd}/bin/systemctl start dovecot2" + # stop program = "${pkgs.systemd}/bin/systemctl stop dovecot2" + # if failed host mail.stuebinm.eu port 993 type tcpssl sslauto protocol imap for 5 cycles then restart check host bahnhof.name with address bahnhof.name if failed port 443 with protocol https -- cgit v1.2.3