mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-27 11:40:32 +05:00
Rename rejectMessage to sendOnlyRejectMessage
This commit is contained in:
parent
d47e4ead88
commit
41219cc690
@ -143,12 +143,13 @@ in
|
||||
default = false;
|
||||
description = ''
|
||||
Specifies if the account should be a send-only account.
|
||||
Emails sent to send-only accounts will be rejected with the
|
||||
rejectMessage stating the reason.
|
||||
Emails sent to send-only accounts will be rejected from
|
||||
unauthorized senders with the sendOnlyRejectMessage
|
||||
stating the reason.
|
||||
'';
|
||||
};
|
||||
|
||||
rejectMessage = mkOption {
|
||||
sendOnlyRejectMessage = mkOption {
|
||||
type = types.str;
|
||||
default = "This account cannot receive emails.";
|
||||
description = ''
|
||||
|
@ -52,7 +52,7 @@ let
|
||||
|
||||
# denied_recipients_postfix :: [ String ]
|
||||
denied_recipients_postfix = (map
|
||||
(acct: "${acct.name} REJECT ${acct.rejectMessage}")
|
||||
(acct: "${acct.name} REJECT ${acct.sendOnlyRejectMessage}")
|
||||
(lib.filter (acct: acct.sendOnly) (lib.attrValues cfg.loginAccounts)));
|
||||
denied_recipients_file = builtins.toFile "denied_recipients" (lib.concatStringsSep "\n" denied_recipients_postfix);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user