Merge pull request #125 from soul9/dkim-hosts

fix opendkim signing for mails submitted over the network
This commit is contained in:
Benjamin Sonntag 2017-06-07 15:16:40 +02:00 committed by GitHub
commit 55cb0410a5
1 changed files with 1 additions and 0 deletions

View File

@ -591,6 +591,7 @@ mkdir -p "/etc/opendkim/keys"
touch /etc/opendkim/TrustedHosts /etc/opendkim/SigningTable /etc/opendkim/KeyTable
grep -q "^127.0.0.1\$" /etc/opendkim/TrustedHosts || echo "127.0.0.1" >>/etc/opendkim/TrustedHosts
grep -q "^localhost\$" /etc/opendkim/TrustedHosts || echo "localhost" >>/etc/opendkim/TrustedHosts
grep -q "^$PUBLIC_IP\$" /etc/opendkim/TrustedHosts || echo "$PUBLIC_IP" >>/etc/opendkim/TrustedHosts
# Add opendkim to service to restart
SERVICES="$SERVICES opendkim"