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 '';