From c48e00ee2664a8d74d9797706d465029cd358605 Mon Sep 17 00:00:00 2001 From: Till Skrodzki Date: Tue, 9 Nov 2021 12:22:53 +0100 Subject: [PATCH] Do not call .split() on RELAYNETS if not specified --- core/postfix/conf/main.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/postfix/conf/main.cf b/core/postfix/conf/main.cf index 5fffc330..8ac646da 100644 --- a/core/postfix/conf/main.cf +++ b/core/postfix/conf/main.cf @@ -17,7 +17,7 @@ queue_directory = /queue message_size_limit = {{ MESSAGE_SIZE_LIMIT }} # Relayed networks -mynetworks = 127.0.0.1/32 [::1]/128 {{ SUBNET }} {{ RELAYNETS.split(",") | join(' ') }} +mynetworks = 127.0.0.1/32 [::1]/128 {{ SUBNET }} {% if RELAYNETS %}{{ RELAYNETS.split(",") | join(' ') }}{% endif %} # Empty alias list to override the configuration variable and disable NIS alias_maps =