...
 
Commits (2)
......@@ -49,32 +49,37 @@ if [ $? == 0 ]; then
fi
if [ ${LEXIT} == 0 -o ${REXIT} == 0 ]; then
echo "LEXIT = ${LEXIT} et REXIT = ${REXIT} ..."
cp /etc/opendkim/KeyTable.orig /etc/opendkim/KeyTable
cp /etc/opendkim/SigningTable.orig /etc/opendkim/SigningTable
cp /etc/postfix/transport_regexp_listes.orig /etc/postfix/transport_regexp_listes
echo "les domaines:"
for domaine in `cat ${FIC}`
do
echo " $domaine"
echo "$domaine $domaine:dkim:/etc/opendkim/dkim.private" >> /etc/opendkim/KeyTable
echo "*@$domaine $domaine" >> /etc/opendkim/SigningTable
done
echo "les listes:"
for domaine in `cat ${FICLISTES}`
do
echo " liste $domaine"
echo "$domaine $domaine:dkim:/etc/opendkim/dkim.private" >> /etc/opendkim/KeyTable
echo "*@$domaine $domaine" >> /etc/opendkim/SigningTable
#/.*@listes\..*/ smtp:${SYMPASRV}
echo "/.*@${domaine}/ smtp:${SYMPASRV}" >> /etc/postfix/transport_regexp_listes
done
if [ -f ${FIC} ]; then
echo "les domaines:"
for domaine in `cat ${FIC}`
do
echo " $domaine"
echo "$domaine $domaine:dkim:/etc/opendkim/dkim.private" >> /etc/opendkim/KeyTable
echo "*@$domaine $domaine" >> /etc/opendkim/SigningTable
done
cp ${FIC} /etc/opendkim/reference
rm ${FIC}
fi
if [ -f ${FICLISTES} ]; then
echo "les listes:"
for domaine in `cat ${FICLISTES}`
do
echo " liste $domaine"
echo "$domaine $domaine:dkim:/etc/opendkim/dkim.private" >> /etc/opendkim/KeyTable
echo "*@$domaine $domaine" >> /etc/opendkim/SigningTable
#/.*@listes\..*/ smtp:${SYMPASRV}
echo "/.*@${domaine}/ smtp:${SYMPASRV}" >> /etc/postfix/transport_regexp_listes
done
cp ${FICLISTES} /etc/opendkim/referencelistes
rm ${FICLISTES}
fi
cp ${FIC} /etc/opendkim/reference
cp ${FICLISTES} /etc/opendkim/referencelistes
rm ${FIC}
rm ${FICLISTES}
service postfix restart
service opendkim restart
......