Signed-off-by: Dinko Korunic <kreator@carnet.hr>
dpkg --compare-versions "$2" lt $MASTTMPLVERSION ); then
noisy_backup /etc/postfix/master.cf
cp-update $PKG /etc/postfix/master.cf < $MASTTMPL
+ restart_mta=1
fi
# main.cf
- postconf -e content_filter="smtp-amavis:[127.0.0.1]:10024"
-
- restart_mta=1
+ if [ ! -f /etc/postfix/main.cf ] || \
+ ! grep -q "smtp-amavis:[127.0.0.1]:10024" \
+ /etc/postfix/main.cf; then
+ postconf -e content_filter="smtp-amavis:[127.0.0.1]:10024"
+ restart_mta=1
+ fi
}