Feature/configurable delimiter

This commit is contained in:
Emmanouil Kampitakis 2021-03-22 19:05:34 +00:00 committed by lewo
parent d0a2e74574
commit d75614a653
3 changed files with 10 additions and 2 deletions

View file

@ -620,6 +620,14 @@ in
'';
};
recipientDelimiter = mkOption {
type = types.str;
default = "+";
description = ''
Configure the recipient delimiter.
'';
};
redis = {
address = mkOption {
type = types.str;

View file

@ -191,7 +191,7 @@ in
}
}
recipient_delimiter = +
recipient_delimiter = ${cfg.recipientDelimiter}
lmtp_save_to_detail_mailbox = ${cfg.lmtpSaveToDetailMailbox}
protocol lmtp {

View file

@ -160,7 +160,7 @@ in
config = {
# Extra Config
mydestination = "";
recipient_delimiter = "+";
recipient_delimiter = cfg.recipientDelimiter;
smtpd_banner = "${fqdn} ESMTP NO UCE";
disable_vrfy_command = true;
message_size_limit = toString cfg.messageSizeLimit;