summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xspamassassin/tweak.d/networks.sh3
1 files changed, 1 insertions, 2 deletions
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"