mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 16:06:12 +01:00
Feature/configurable delimiter
This commit is contained in:
parent
d0a2e74574
commit
d75614a653
3 changed files with 10 additions and 2 deletions
|
@ -620,6 +620,14 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
recipientDelimiter = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "+";
|
||||||
|
description = ''
|
||||||
|
Configure the recipient delimiter.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
redis = {
|
redis = {
|
||||||
address = mkOption {
|
address = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
|
@ -191,7 +191,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
recipient_delimiter = +
|
recipient_delimiter = ${cfg.recipientDelimiter}
|
||||||
lmtp_save_to_detail_mailbox = ${cfg.lmtpSaveToDetailMailbox}
|
lmtp_save_to_detail_mailbox = ${cfg.lmtpSaveToDetailMailbox}
|
||||||
|
|
||||||
protocol lmtp {
|
protocol lmtp {
|
||||||
|
|
|
@ -160,7 +160,7 @@ in
|
||||||
config = {
|
config = {
|
||||||
# Extra Config
|
# Extra Config
|
||||||
mydestination = "";
|
mydestination = "";
|
||||||
recipient_delimiter = "+";
|
recipient_delimiter = cfg.recipientDelimiter;
|
||||||
smtpd_banner = "${fqdn} ESMTP NO UCE";
|
smtpd_banner = "${fqdn} ESMTP NO UCE";
|
||||||
disable_vrfy_command = true;
|
disable_vrfy_command = true;
|
||||||
message_size_limit = toString cfg.messageSizeLimit;
|
message_size_limit = toString cfg.messageSizeLimit;
|
||||||
|
|
Loading…
Reference in a new issue