summaryrefslogtreecommitdiff
path: root/spamassassin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-12-30 18:07:59 +0100
committerJonas Smedegaard <dr@jones.dk>2016-12-30 18:07:59 +0100
commit2a2db34f867b9f0896f171a85a7e32712e232169 (patch)
treed99f6a72521a122f1dad823ba65256c2170b78dc /spamassassin
parent0c64fc97d07382a811449f966f6814f0fce0518a (diff)
Fix omit localhost from IP lists.
Diffstat (limited to 'spamassassin')
-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"