3 #script used to update Postfix Master.cf file, to use dovecot delivery service.
4 #launch from alternc.install
7 name="/etc/postfix/master.cf"
9 if grep -q dovecot $name ; then
10 echo "Policy already active, not updated"
12 echo -e "dovecot unix - n n - 0 pipe\n\tflags=DRhu user=vmail:vmail argv=/usr/bin/sudo /usr/lib/dovecot/deliver -f \${sender} -d \${recipient}" >> $name