crating /etc/opendkim/TrustedHosts BEFORE searching in it
This commit is contained in:
parent
4cfa74401c
commit
967aeeeb4f
|
@ -584,9 +584,9 @@ chown -R alterncpanel:alterncpanel "/usr/share/alternc/panel/"
|
||||||
|
|
||||||
# We ensure localhost is trusted to opendkim
|
# We ensure localhost is trusted to opendkim
|
||||||
mkdir -p "/etc/opendkim/keys"
|
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 "^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
|
||||||
touch /etc/opendkim/TrustedHosts /etc/opendkim/SigningTable /etc/opendkim/KeyTable
|
|
||||||
|
|
||||||
# Add opendkim to service to restart
|
# Add opendkim to service to restart
|
||||||
SERVICES="$SERVICES opendkim"
|
SERVICES="$SERVICES opendkim"
|
||||||
|
|
Loading…
Reference in New Issue