Merge pull request #125 from soul9/dkim-hosts
fix opendkim signing for mails submitted over the network
This commit is contained in:
commit
55cb0410a5
|
@ -591,6 +591,7 @@ mkdir -p "/etc/opendkim/keys"
|
||||||
touch /etc/opendkim/TrustedHosts /etc/opendkim/SigningTable /etc/opendkim/KeyTable
|
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 "^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 "^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
|
# Add opendkim to service to restart
|
||||||
SERVICES="$SERVICES opendkim"
|
SERVICES="$SERVICES opendkim"
|
||||||
|
|
Loading…
Reference in New Issue