X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fpostfix.sh;h=7aa396136d6e75544bd6d7d98bbb328e28463144;hb=1a6944c221294202ee0b5e89c2d9f4dc6fdbcc5e;hp=1d74552dd4a268f49e71a73b1ab00c150e443050;hpb=ab5e282c076bb8875fc4fdbf0048b517bf0af7be;p=amavisd-cn.git diff --git a/src/postfix.sh b/src/postfix.sh old mode 100644 new mode 100755 index 1d74552..7aa3961 --- a/src/postfix.sh +++ b/src/postfix.sh @@ -5,10 +5,14 @@ update_postfix() { 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 }