Merge pull request #140 from auguster/master

/etc/opendkim/TrustedHosts creation if missing
This commit is contained in:
Thomas VIAL 2016-04-19 23:24:05 +02:00
commit c278a4a46a
1 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,13 @@ grep -vE '^(\s*$|#)' /etc/postfix/vhost | while read domainname; do
echo $signingtableentry >> /etc/opendkim/SigningTable
fi
fi
# Creates TrustedHosts if missing
if [ ! -f "/etc/opendkim/TrustedHosts" ]; then
echo "Creating DKIM TrustedHosts";
echo "127.0.0.1" > /etc/opendkim/TrustedHosts
echo "localhost" >> /etc/opendkim/TrustedHosts
fi
done
echo "Changing permissions on /etc/opendkim"