Need to define key/signing tables earlier

This commit is contained in:
niten 2023-09-28 14:22:47 -07:00
parent db63fc6e2a
commit ad24ed9d2a
1 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,9 @@ let
pkgs.writeText "opendkim-signing-table"
(concatStringsSep "\n" (map (dom: "${dom} ${dom}") domains));
keyTable = makeKeyTable cfg.state-directory cfg.domains;
signingTable = makeSigningTable cfg.domains;
in {
options.fudo.mail.dkim = with types; {
enable = mkEnableOption "Enable DKIM signature verification.";
@ -93,8 +96,6 @@ in {
SyslogSuccess yes
LogWhy yes
'';
keyTable = makeKeyTable cfg.state-directory cfg.domains;
signingTable = makeSigningTable cfg.domains;
in pkgs.writeText "opendkim.conf" ''
Canonicalization relaxed/simple
Socket inet:${toString cfg.port}