X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=spamassassin-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=e931e54d852717789e405d2101197314494d794b;hp=c6e4e1c67b46f6f805b70588ac43377527e2199b;hb=451bbd0115b7bbec4281d40d43d5bbd8b889a316;hpb=4d729e75290638889e599f334b38c55704fafb05 diff --git a/debian/postinst b/debian/postinst index c6e4e1c..e931e54 100755 --- a/debian/postinst +++ b/debian/postinst @@ -211,6 +211,14 @@ if [ -f $examdir/local.cf ]; then trusted_networks="$trusted_networks $i" fi done + # ... merge with Postfix ranges + if [ -x /usr/sbin/postconf ]; then + for i in $(postconf -h mynetworks); do + if ! echo "$trusted_networks" | grep -q "$i"; then + trusted_networks="$trusted_networks $i" + fi + done + fi # ... strip 127/8 range for i in $trusted_networks; do if ! echo "$i" | grep -q "127.0.0.0/8"; then