mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Fixed opendkim config on multiple nameservers
This commit is contained in:
parent
c5a61ca9bb
commit
5eb0d5ffa6
|
@ -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