From 451bbd0115b7bbec4281d40d43d5bbd8b889a316 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Tue, 31 Mar 2009 13:32:40 +0200 Subject: [PATCH] - spajanje konfiguracije sa Postfix listom iz mynetworks --- debian/changelog | 6 ++++++ debian/postinst | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/debian/changelog b/debian/changelog index 016445b..6f6a9df 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +spamassassin-cn (2:3.2.5-6) stable; urgency=low + + * spajanje IP klasa iz mynetworks Postfix konfiguracije u trusted_networks + + -- Dinko Korunic Tue, 31 Mar 2009 12:59:44 +0200 + spamassassin-cn (2:3.2.5-5) stable; urgency=low * ciscenje 127.0.0.0/8 iz trusted_networks konfiguracije 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 -- 1.7.10.4