fix opendkim signing for mails submitted over the network (not localhost - webmail)
This commit is contained in:
parent
50d8f8f1fb
commit
5b06f08cfe
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue