Define blacklists in mail-server
This commit is contained in:
parent
2cdb1d8c67
commit
8ea389947a
|
@ -41,6 +41,28 @@ in {
|
||||||
default = [ ];
|
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 = {
|
aliases = {
|
||||||
user-aliases = mkOption {
|
user-aliases = mkOption {
|
||||||
type = attrsOf (listOf str);
|
type = attrsOf (listOf str);
|
||||||
|
|
|
@ -247,7 +247,7 @@ in {
|
||||||
enableSubmission = true;
|
enableSubmission = true;
|
||||||
# useSrs = true;
|
# useSrs = true;
|
||||||
|
|
||||||
dnsBlacklists = cfg.blacklist.dns;
|
# dnsBlacklists = cfg.blacklist.dns;
|
||||||
|
|
||||||
mapFiles = let
|
mapFiles = let
|
||||||
writeEntries = filename: entries:
|
writeEntries = filename: entries:
|
||||||
|
|
Loading…
Reference in New Issue