From 5eb0d5ffa6e4184bcc07daf608d8734c7142e82c Mon Sep 17 00:00:00 2001 From: Roman Seyffarth Date: Fri, 9 Aug 2019 09:04:43 +0200 Subject: [PATCH] Fixed opendkim config on multiple nameservers --- target/start-mailserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 784acffc..8571d9e3 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -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 }