mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-13 07:46:54 +01:00
Merge branch 'rspamd-dmarc-exclude' into 'master'
mail-server: add `dmarcReporting.excludeDomains` See merge request simple-nixos-mailserver/nixos-mailserver!297
This commit is contained in:
commit
876e691685
2 changed files with 11 additions and 0 deletions
|
@ -868,6 +868,14 @@ in
|
|||
The sender name for DMARC reports. Defaults to the organization name.
|
||||
'';
|
||||
};
|
||||
|
||||
excludeDomains = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = ''
|
||||
List of domains or eSLDs to be excluded from DMARC reports.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
debug = mkOption {
|
||||
|
|
|
@ -65,6 +65,9 @@ in
|
|||
org_name = "${cfg.dmarcReporting.organizationName}";
|
||||
from_name = "${cfg.dmarcReporting.fromName}";
|
||||
msgid_from = "dmarc-rua";
|
||||
${lib.optionalString (cfg.dmarcReporting.excludeDomains != []) ''
|
||||
exclude_domains = ${builtins.toJSON cfg.dmarcReporting.excludeDomains};
|
||||
''}
|
||||
}''}
|
||||
''; };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue