mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-14 15:08:56 +02:00
set Nameservers in opendkim.conf at start-up
This commit is contained in:
parent
33c85d75ad
commit
8a1584c3cb
1 changed files with 6 additions and 0 deletions
|
@ -850,6 +850,12 @@ function _setup_dkim() {
|
||||||
local _f_keytable="/etc/opendkim/KeyTable"
|
local _f_keytable="/etc/opendkim/KeyTable"
|
||||||
[ ! -f "$_f_keytable" ] && touch "$_f_keytable"
|
[ ! -f "$_f_keytable" ] && touch "$_f_keytable"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Setup nameservers paramater from /etc/resolv.conf if not defined
|
||||||
|
if ! grep '^Nameservers' /etc/opendkim.conf; then
|
||||||
|
echo "Nameservers $(grep '^nameserver' /etc/resolv.conf | awk -F " " '{print $2}')" >> /etc/opendkim.conf
|
||||||
|
notify 'inf' "Nameservers added to /etc/opendkim.conf"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function _setup_ssl() {
|
function _setup_ssl() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue