From 2a2db34f867b9f0896f171a85a7e32712e232169 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 30 Dec 2016 18:07:59 +0100 Subject: Fix omit localhost from IP lists. --- spamassassin/tweak.d/networks.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'spamassassin') diff --git a/spamassassin/tweak.d/networks.sh b/spamassassin/tweak.d/networks.sh index 3b62edb..24f09d4 100755 --- a/spamassassin/tweak.d/networks.sh +++ b/spamassassin/tweak.d/networks.sh @@ -38,7 +38,6 @@ addoroverwritewithindents() { "$file" } -ournets="127.0.0.1" REDPILL=$(firstitem "/etc/local-ORG/redpill") redpilldir="/etc/local-$REDPILL/" REALMS="$(items "$redpilldir/realms")" @@ -48,7 +47,7 @@ for realm in $REALMS; do [ -d "$realmdir" ] || continue mailnets=$(items_singleline "$realmdir/mailnetworks") #' if [ "$REALM" = "$realm" ]; then - ournets="$ournets $mailnets" + ournets="${ournets:+$ournets }$mailnets" [ ! -f "$realmdir/localnetworks" ] || ournets="${ournets:+$ournets }$(items "$realmdir/localnetworks")" else redpillnets="${redpillnets:+$redpillnets }$mailnets" -- cgit v1.2.3