summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanouil Kampitakis <2565748-madonius@users.noreply.gitlab.com>2021-03-22 19:05:34 +0000
committerlewo <lewo@abesis.fr>2021-03-22 19:05:34 +0000
commitd75614a653d44d42260aa3b3b6c6f60e0cfa6932 (patch)
tree8fc13b4cd108907c7fb4e7ffdc763d3a246be7eb
parentd0a2e74574a9955d974396c84c6a3729a11d8258 (diff)
Feature/configurable delimiter
-rw-r--r--default.nix8
-rw-r--r--mail-server/dovecot.nix2
-rw-r--r--mail-server/postfix.nix2
3 files changed, 10 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 31aa12b..21c38e3 100644
--- a/default.nix
+++ b/default.nix
@@ -620,6 +620,14 @@ in
'';
};
+ recipientDelimiter = mkOption {
+ type = types.str;
+ default = "+";
+ description = ''
+ Configure the recipient delimiter.
+ '';
+ };
+
redis = {
address = mkOption {
type = types.str;
diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix
index c4811e1..293aaa6 100644
--- a/mail-server/dovecot.nix
+++ b/mail-server/dovecot.nix
@@ -191,7 +191,7 @@ in
}
}
- recipient_delimiter = +
+ recipient_delimiter = ${cfg.recipientDelimiter}
lmtp_save_to_detail_mailbox = ${cfg.lmtpSaveToDetailMailbox}
protocol lmtp {
diff --git a/mail-server/postfix.nix b/mail-server/postfix.nix
index 971c833..618d6c5 100644
--- a/mail-server/postfix.nix
+++ b/mail-server/postfix.nix
@@ -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;