From d75614a653d44d42260aa3b3b6c6f60e0cfa6932 Mon Sep 17 00:00:00 2001 From: Emmanouil Kampitakis <2565748-madonius@users.noreply.gitlab.com> Date: Mon, 22 Mar 2021 19:05:34 +0000 Subject: [PATCH] Feature/configurable delimiter --- default.nix | 8 ++++++++ mail-server/dovecot.nix | 2 +- mail-server/postfix.nix | 2 +- 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;