From 5ba24ad7c35213fd084d2268d219c1ee8690667b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Aug 2024 22:04:35 +0200 Subject: [PATCH] hack: restart dovecot from time to time --- pastila/imap.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pastila/imap.nix b/pastila/imap.nix index 8449dbf..36a11f1 100644 --- a/pastila/imap.nix +++ b/pastila/imap.nix @@ -37,4 +37,12 @@ ]; group = config.services.dovecot2.group; }; + + # XXX *shrug* + services.cron = { + enable = true; + systemCronJobs = [ + "0 2 * * * root systemctl restart dovecot2.service" + ]; + }; } \ No newline at end of file