Allow rejecting mails to selected local addresses from remote systems

This commit is contained in:
Daniel Frank 2018-04-15 01:37:30 +02:00
parent 1dd394e63f
commit f613779999
2 changed files with 21 additions and 2 deletions

View file

@ -166,6 +166,17 @@ in
default = {};
};
rejectRecipients = mkOption {
type = types.listOf types.str;
example = [ "sales@example.com" "info@example.com" ];
description = ''
Reject emails addressed to these local addresses from unauthorized senders.
Use if a spammer has found email addresses in a catchall domain but you do
not want to disable the catchall.
'';
default = [];
};
vmailUID = mkOption {
type = types.int;
default = 5000;