]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add cron job to check for rejected messages
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Feb 2020 15:50:27 +0000 (16:50 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Feb 2020 16:04:30 +0000 (17:04 +0100)
modules/private/system/eldiron.nix

index 27c93537b20a1668dafdc132f996b83544d6b5bb..0ff99637026b9ca64cd126f82aea263aaa271a84 100644 (file)
@@ -65,6 +65,7 @@
       ''
         # The star after /var/lib/* avoids deleting all folders in case of problem
         0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" --new-compress -aAXv --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: > /dev/null
       ''
         # The star after /var/lib/* avoids deleting all folders in case of problem
         0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" --new-compress -aAXv --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: > /dev/null
+        0 0 * * * root journalctl -q --since="25 hours ago" -u postfix -g "immae.eu.*Recipient address rejected"
       ''
     ];
   };
       ''
     ];
   };