1d74552dd4a268f49e71a73b1ab00c150e443050
[amavisd-cn.git] / src / postfix.sh
1 update_postfix() {
2   # set up master.cf
3   if [ -f /etc/postfix/master.cf ] && \
4      ( ! grep -q smtp-amavis /etc/postfix/master.cf || \
5           dpkg --compare-versions "$2" lt $MASTTMPLVERSION ); then
6     noisy_backup /etc/postfix/master.cf
7     cp-update $PKG /etc/postfix/master.cf < $MASTTMPL
8   fi
9
10   # main.cf
11   postconf -e content_filter="smtp-amavis:[127.0.0.1]:10024"
12   
13   restart_mta=1
14 }