From 50e39960ec9c6e22c3e9db1306bd48e4c3f1391a Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Tue, 4 Feb 2020 02:56:08 -0300 Subject: [PATCH] dovecot templating - split by whitespace and comma --- confd/templates/10-auth.conf.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confd/templates/10-auth.conf.tmpl b/confd/templates/10-auth.conf.tmpl index 7b58b2c..1a29d01 100644 --- a/confd/templates/10-auth.conf.tmpl +++ b/confd/templates/10-auth.conf.tmpl @@ -1,5 +1,5 @@ auth_realms = {{ getv "/mail/domains" }} -auth_default_realm = {{ index (split (split (getv "/mail/domains") " ") ",") 0 }} +auth_default_realm = {{ index (split (index (split (getv "/mail/domains") " ") 0) ",") 0 }} auth_username_format = {{ getv "/auth/username/format" }} auth_mechanisms = {{ getv "/auth/mechanisms" }}