Define blacklists in mail-server
This commit is contained in:
parent
2cdb1d8c67
commit
8ea389947a
|
@ -41,6 +41,28 @@ in {
|
|||
default = [ ];
|
||||
};
|
||||
|
||||
blacklist = {
|
||||
senders = mkOption {
|
||||
type = listOf str;
|
||||
description =
|
||||
"List of email addresses for which we will never send email.";
|
||||
default = [ ];
|
||||
};
|
||||
|
||||
recipients = mkOption {
|
||||
type = listOf str;
|
||||
description =
|
||||
"List of email addresses for which we will not accept email.";
|
||||
default = [ ];
|
||||
};
|
||||
|
||||
dns = mkOption {
|
||||
type = listOf str;
|
||||
description = "List of DNS spam blacklists to use.";
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
aliases = {
|
||||
user-aliases = mkOption {
|
||||
type = attrsOf (listOf str);
|
||||
|
|
|
@ -247,7 +247,7 @@ in {
|
|||
enableSubmission = true;
|
||||
# useSrs = true;
|
||||
|
||||
dnsBlacklists = cfg.blacklist.dns;
|
||||
# dnsBlacklists = cfg.blacklist.dns;
|
||||
|
||||
mapFiles = let
|
||||
writeEntries = filename: entries:
|
||||
|
|
Loading…
Reference in New Issue