Alternc  latest
Alternc logiel libre pour l'hébergement
alternc_add_policy_dovecot
Go to the documentation of this file.
1 #! /bin/bash
2 
3 #script used to update Postfix Master.cf file, to use dovecot delivery service.
4 #launch from alternc.install
5 
6 
7 name="/etc/postfix/master.cf"
8 
9 if grep -q dovecot $name ; then
10  echo "Policy already active, not updated"
11 else
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
13  echo "Policy updated"
14 fi
15