mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-05-25 20:10:49 +05:00
domains: separate into domains and domainsWithoutMailbox
This commit is contained in:
parent
61b3a2c5ec
commit
e4c6e6e2ee
@ -41,7 +41,14 @@ in
|
||||
type = types.listOf types.str;
|
||||
example = [ "example.com" ];
|
||||
default = [];
|
||||
description = "The domains that this mail server serves.";
|
||||
description = "The domains served by this mail server for delivery into mailboxes and forwards.";
|
||||
};
|
||||
|
||||
domainsWithoutMailbox = mkOption {
|
||||
type = types.listOf types.str;
|
||||
example = [ "lists.example.com" ];
|
||||
default = [];
|
||||
description = "The domains served by this mail server and forwards.";
|
||||
};
|
||||
|
||||
certificateDomains = mkOption {
|
||||
|
@ -94,7 +94,7 @@ let
|
||||
reject_recipients_file = builtins.toFile "reject_recipients" (lib.concatStringsSep "\n" (reject_recipients_postfix)) ;
|
||||
|
||||
# vhosts_file :: Path
|
||||
vhosts_file = builtins.toFile "vhosts" (concatStringsSep "\n" cfg.domains);
|
||||
vhosts_file = builtins.toFile "vhosts" (concatStringsSep "\n" (cfg.domainsWithoutMailbox ++ cfg.domains));
|
||||
|
||||
# vaccounts_file :: Path
|
||||
# see
|
||||
|
@ -165,7 +165,7 @@ in
|
||||
SupplementaryGroups = [ config.services.redis.servers.rspamd.group ];
|
||||
}
|
||||
(lib.optionalAttrs cfg.dkimSigning {
|
||||
ExecStartPre = map createDkimKeypair cfg.domains;
|
||||
ExecStartPre = map createDkimKeypair (cfg.domainsWithoutMailbox ++ cfg.domains);
|
||||
ReadWritePaths = [ cfg.dkimKeyDirectory ];
|
||||
})
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user