Need to define key/signing tables earlier
This commit is contained in:
parent
db63fc6e2a
commit
ad24ed9d2a
5
dkim.nix
5
dkim.nix
|
@ -32,6 +32,9 @@ let
|
||||||
pkgs.writeText "opendkim-signing-table"
|
pkgs.writeText "opendkim-signing-table"
|
||||||
(concatStringsSep "\n" (map (dom: "${dom} ${dom}") domains));
|
(concatStringsSep "\n" (map (dom: "${dom} ${dom}") domains));
|
||||||
|
|
||||||
|
keyTable = makeKeyTable cfg.state-directory cfg.domains;
|
||||||
|
signingTable = makeSigningTable cfg.domains;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
options.fudo.mail.dkim = with types; {
|
options.fudo.mail.dkim = with types; {
|
||||||
enable = mkEnableOption "Enable DKIM signature verification.";
|
enable = mkEnableOption "Enable DKIM signature verification.";
|
||||||
|
@ -93,8 +96,6 @@ in {
|
||||||
SyslogSuccess yes
|
SyslogSuccess yes
|
||||||
LogWhy yes
|
LogWhy yes
|
||||||
'';
|
'';
|
||||||
keyTable = makeKeyTable cfg.state-directory cfg.domains;
|
|
||||||
signingTable = makeSigningTable cfg.domains;
|
|
||||||
in pkgs.writeText "opendkim.conf" ''
|
in pkgs.writeText "opendkim.conf" ''
|
||||||
Canonicalization relaxed/simple
|
Canonicalization relaxed/simple
|
||||||
Socket inet:${toString cfg.port}
|
Socket inet:${toString cfg.port}
|
||||||
|
|
Loading…
Reference in New Issue