diff options
author | Emmanouil Kampitakis <2565748-madonius@users.noreply.gitlab.com> | 2021-03-22 19:05:34 +0000 |
---|---|---|
committer | lewo <lewo@abesis.fr> | 2021-03-22 19:05:34 +0000 |
commit | d75614a653d44d42260aa3b3b6c6f60e0cfa6932 (patch) | |
tree | 8fc13b4cd108907c7fb4e7ffdc763d3a246be7eb | |
parent | d0a2e74574a9955d974396c84c6a3729a11d8258 (diff) |
Feature/configurable delimiter
-rw-r--r-- | default.nix | 8 | ||||
-rw-r--r-- | mail-server/dovecot.nix | 2 | ||||
-rw-r--r-- | 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; |