From 25fa394b997534f02621771cc7a19f918c9f5e11 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Tue, 10 Sep 2019 01:04:56 -0300 Subject: [PATCH] fix go templates --- files/10-auth.conf.tmpl | 2 +- files/20-lmtp.conf.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/10-auth.conf.tmpl b/files/10-auth.conf.tmpl index 839056f..9ded33b 100644 --- a/files/10-auth.conf.tmpl +++ b/files/10-auth.conf.tmpl @@ -1,5 +1,5 @@ auth_realms = {{ getv "/mail/domains" }} -auth_default_realm = {{ first 1 (split (getv "/mail/domains") " ") }} +auth_default_realm = {{ index (split (getv "/mail/domains") " ") 1 }} auth_username_format = {{ getv "/auth/username/format" }} auth_mechanisms = {{ getv "/auth/mechanisms" }} diff --git a/files/20-lmtp.conf.tmpl b/files/20-lmtp.conf.tmpl index 3429338..4e5b419 100644 --- a/files/20-lmtp.conf.tmpl +++ b/files/20-lmtp.conf.tmpl @@ -1,5 +1,5 @@ protocol lmtp { # postmaster_address aparentemente es obligatorio - postmaster_address = postmaster@{{ first 1 (split (getv "/mail/domains") " ") }} + postmaster_address = postmaster@{{ index (split (getv "/mail/domains") " ") 1 }} mail_plugins = $mail_plugins sieve }