mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-04-02 05:44:33 +05:00
opendkim: switch to expandable settings option
This commit is contained in:
parent
b4fbffe79c
commit
a6c3b1b28d
@ -58,18 +58,18 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
selector = cfg.dkimSelector;
|
selector = cfg.dkimSelector;
|
||||||
keyPath = cfg.dkimKeyDirectory;
|
keyPath = cfg.dkimKeyDirectory;
|
||||||
domains = "csl:${builtins.concatStringsSep "," cfg.domains}";
|
domains = "csl:${lib.concatStringsSep "," cfg.domains}";
|
||||||
configFile = pkgs.writeText "opendkim.conf" (''
|
settings = {
|
||||||
Canonicalization ${cfg.dkimHeaderCanonicalization}/${cfg.dkimBodyCanonicalization}
|
Canonicalization = "${cfg.dkimHeaderCanonicalization}/${cfg.dkimBodyCanonicalization}";
|
||||||
UMask 0002
|
UMask = "0002";
|
||||||
Socket ${dkim.socket}
|
Socket = dkim.socket;
|
||||||
KeyTable file:${keyTable}
|
KeyTable = "file:${keyTable}";
|
||||||
SigningTable file:${signingTable}
|
SigningTable = "file:${signingTable}";
|
||||||
'' + (lib.optionalString cfg.debug ''
|
} // lib.optionalAttrs cfg.debug {
|
||||||
Syslog yes
|
Syslog = "yes";
|
||||||
SyslogSuccess yes
|
SyslogSuccess = "yes";
|
||||||
LogWhy yes
|
LogWhy = "yes";
|
||||||
''));
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users = optionalAttrs (config.services.postfix.user == "postfix") {
|
users.users = optionalAttrs (config.services.postfix.user == "postfix") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user