summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorayoung012 <adamyoung012@gmail.com>2019-06-08 02:14:08 +1000
committerGitHub <noreply@github.com>2019-06-08 02:14:08 +1000
commit095becf7691300595b5c71a02d92ae94b90cb9f1 (patch)
treed621a24d2964505d662a557d3bf85a401410f252
parentdb265994ac7c81bebab86b6d0d59e8b7f9cf86c4 (diff)
close quotation marks in opendkim socket config
opendkim ignores the invalid SOCKET config line, causing smtpd mail send to fail. $ sudo systemctl status opendkim systemd[1]: Ignoring invalid environment assignment 'SOCKET=inet:8891@localhost systemd[1]: ': /etc/sysconfig/opendkim $ journalctl postfix/submission/smtpd[17646]: fatal: host/service localhost/8891 not found: Device or resource busy
-rwxr-xr-xemailwiz.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 4fefa74..f4763c2 100755
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -182,7 +182,7 @@ SigningTable refile:/etc/postfix/dkim/signingtable
InternalHosts refile:/etc/postfix/dkim/trustedhosts" >> /etc/opendkim.conf
# OpenDKIM daemon settings, removing previously activated socket.
-sed -i "/^SOCKET/d" /etc/default/opendkim && echo "SOCKET=\"inet:8891@localhost" >> /etc/default/opendkim
+sed -i "/^SOCKET/d" /etc/default/opendkim && echo "SOCKET=\"inet:8891@localhost\"" >> /etc/default/opendkim
# Here we add to postconf the needed settings for working with OpenDKIM
echo "Configuring Postfix with OpenDKIM settings..."