From c04e4f22da48319d15593a2c942431744c12f27c Mon Sep 17 00:00:00 2001 From: Juergen Fitschen Date: Sat, 18 Mar 2023 12:26:27 +0000 Subject: [PATCH] opendkim: make public key world-readable --- mail-server/opendkim.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/mail-server/opendkim.nix b/mail-server/opendkim.nix index 27df835..cdb283c 100644 --- a/mail-server/opendkim.nix +++ b/mail-server/opendkim.nix @@ -37,6 +37,7 @@ let --directory="${cfg.dkimKeyDirectory}" mv "${cfg.dkimKeyDirectory}/${cfg.dkimSelector}.private" "${dkim_key}" mv "${cfg.dkimKeyDirectory}/${cfg.dkimSelector}.txt" "${dkim_txt}" + chmod 644 "${dkim_txt}" echo "Generated key for domain ${dom} selector ${cfg.dkimSelector}" fi '';