diff options
Diffstat (limited to 'spamassassin/tweak.d')
-rwxr-xr-x | spamassassin/tweak.d/networks.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spamassassin/tweak.d/networks.sh b/spamassassin/tweak.d/networks.sh index 25ac109..7b4d56b 100755 --- a/spamassassin/tweak.d/networks.sh +++ b/spamassassin/tweak.d/networks.sh @@ -38,6 +38,7 @@ addoroverwritewithindents() { "$file" } +ournets="127.0.0.1" REDPILL=$(firstitem "/etc/local-ORG/redpill") redpilldir="/etc/local-$REDPILL/" REALMS="$(items "$redpilldir/realms")" @@ -47,9 +48,8 @@ for realm in $REALMS; do [ -d "$realmdir" ] || continue mailnets=$(items_singleline "$realmdir/mailnetworks") #' if [ "$REALM" = "$realm" ]; then - ournets="${ournets:+$ournets }$mailnets" + ournets="$ournets $mailnets" [ ! -f "$realmdir/localnetworks" ] || ournets="${ournets:+$ournets }$(items "$realmdir/localnetworks")" - ournets="${ournets:+$ournets }127.0.0.1" else redpillnets="${redpillnets:+$redpillnets }$mailnets" fi @@ -57,4 +57,4 @@ done echo "FIXME: Add these to /etc/spamassassin/local.cf:" echo "internal_networks $ournets" -echo "trusted_networks $redpillnets" +echo "trusted_networks $ournets $redpillnets" |