From b4f6d963650b959f12afb91221c78422b021fe7a Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Sun, 1 Sep 2019 20:21:11 +0900 Subject: [PATCH] fix: make surprising lmtp_save_to_detail_mailbox behaviour optional --- default.nix | 10 ++++++++++ mail-server/dovecot.nix | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index e4d8785..3e37a71 100644 --- a/default.nix +++ b/default.nix @@ -144,6 +144,16 @@ in default = {}; }; + lmptSaveToDetailMailbox = mkOption { + type = types.enum ["yes" "no"]; + default = "yes"; + description = '' + If an email address is delimited by a "+", should it be filed into a + mailbox matching the string after the "+"? For example, + user1+test@example.com would be filed into the mailbox "test". + ''; + }; + extraVirtualAliases = mkOption { type = types.loaOf (mkOptionType { name = "Login Account"; diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 686c390..d9955f7 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -107,7 +107,7 @@ in } recipient_delimiter = + - lmtp_save_to_detail_mailbox = yes + lmtp_save_to_detail_mailbox = ${cfg.lmptSaveToDetailMailbox} protocol lmtp { mail_plugins = $mail_plugins sieve