Fixed internalhosts
This commit is contained in:
@@ -18,8 +18,7 @@
|
|||||||
# DNS / trust defaults.
|
# DNS / trust defaults.
|
||||||
: "${OPENDKIM_TRUSTANCHORFILE:=}"
|
: "${OPENDKIM_TRUSTANCHORFILE:=}"
|
||||||
: "${OPENDKIM_INTERNALHOSTS:=127.0.0.1,localhost,127.0.0.0/8,192.168.0.0/16,172.16.0.0/12,10.0.0.0/8}"
|
: "${OPENDKIM_INTERNALHOSTS:=127.0.0.1,localhost,127.0.0.0/8,192.168.0.0/16,172.16.0.0/12,10.0.0.0/8}"
|
||||||
: "${OPENDKIM_EXTERNALIGNORELIST:=refile:/etc/opendkim/TrustedHosts}"
|
: "${OPENDKIM_EXTERNALIGNORELIST:=}"
|
||||||
: "${OPENDKIM_INTERNALHOSTS_FILE:=/etc/opendkim/TrustedHosts}"
|
|
||||||
|
|
||||||
# Table files.
|
# Table files.
|
||||||
: "${OPENDKIM_KEYTABLE:=/etc/opendkim/KeyTable}"
|
: "${OPENDKIM_KEYTABLE:=/etc/opendkim/KeyTable}"
|
||||||
@@ -98,8 +97,7 @@ Socket ${OPENDKIM_SOCKET}
|
|||||||
PidFile ${OPENDKIM_PIDFILE}
|
PidFile ${OPENDKIM_PIDFILE}
|
||||||
KeyTable ${OPENDKIM_KEYTABLE}
|
KeyTable ${OPENDKIM_KEYTABLE}
|
||||||
SigningTable ${OPENDKIM_SIGNINGTABLE}
|
SigningTable ${OPENDKIM_SIGNINGTABLE}
|
||||||
ExternalIgnoreList ${OPENDKIM_EXTERNALIGNORELIST}
|
InternalHosts ${OPENDKIM_INTERNALHOSTS}
|
||||||
InternalHosts refile:${OPENDKIM_INTERNALHOSTS_FILE}
|
|
||||||
AutoRestart ${OPENDKIM_AUTO_RESTART}
|
AutoRestart ${OPENDKIM_AUTO_RESTART}
|
||||||
AutoRestartRate ${OPENDKIM_AUTO_RESTART_RATE}
|
AutoRestartRate ${OPENDKIM_AUTO_RESTART_RATE}
|
||||||
DNSTimeout ${OPENDKIM_DNS_TIMEOUT}
|
DNSTimeout ${OPENDKIM_DNS_TIMEOUT}
|
||||||
@@ -113,6 +111,10 @@ if [ -n "${OPENDKIM_TRUSTANCHORFILE}" ] && [ -f "${OPENDKIM_TRUSTANCHORFILE}" ];
|
|||||||
echo "TrustAnchorFile ${OPENDKIM_TRUSTANCHORFILE}" >> /etc/opendkim.conf
|
echo "TrustAnchorFile ${OPENDKIM_TRUSTANCHORFILE}" >> /etc/opendkim.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${OPENDKIM_EXTERNALIGNORELIST}" ] && [ -f "${OPENDKIM_EXTERNALIGNORELIST}" ]; then
|
||||||
|
echo "ExternalIgnoreList ${OPENDKIM_EXTERNALIGNORELIST}" >> /etc/opendkim.conf
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${OPENDKIM_LOGRESULTS}" = "yes" ]; then
|
if [ "${OPENDKIM_LOGRESULTS}" = "yes" ]; then
|
||||||
echo "SoftwareHeader yes" >> /etc/opendkim.conf
|
echo "SoftwareHeader yes" >> /etc/opendkim.conf
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user