mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Merge pull request #1218 from romansey/fix-opendkim-multiple-nameservers
Fixed opendkim config on multiple nameservers
This commit is contained in:
commit
1903e98ef2
|
@ -853,7 +853,7 @@ function _setup_dkim() {
|
|||
|
||||
# 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
|
||||
echo "Nameservers $(grep '^nameserver' /etc/resolv.conf | awk -F " " '{print $2}' | paste -sd ',' -)" >> /etc/opendkim.conf
|
||||
notify 'inf' "Nameservers added to /etc/opendkim.conf"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue