fix opendkim signing for mails submitted over the network (not localhost - webmail)

This commit is contained in:
John Soros 2016-10-18 11:40:31 +02:00
parent 50d8f8f1fb
commit 5b06f08cfe
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"