From 777b1bacc7d5d78b51068c4643bae1a5f581927b Mon Sep 17 00:00:00 2001 From: Lukas Matt Date: Sat, 30 Apr 2016 13:15:04 +0200 Subject: [PATCH] Fix permission issues on wrong dkim path Signed-off-by: Lukas Matt --- target/bin/generate-dkim-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/bin/generate-dkim-config b/target/bin/generate-dkim-config index 19e6be9d..f2f8eeed 100644 --- a/target/bin/generate-dkim-config +++ b/target/bin/generate-dkim-config @@ -33,10 +33,10 @@ grep -vE '^(\s*$|#)' /tmp/vhost | while read domainname; do fi # Write to KeyTable if necessary - keytableentry="mail._domainkey.$domainname $domainname:mail:/tmp/docker-mailserver/opendkim/keys/$domainname/mail.private" + keytableentry="mail._domainkey.$domainname $domainname:mail:/etc/opendkim/keys/$domainname/mail.private" if [ ! -f "/tmp/docker-mailserver/opendkim/KeyTable" ]; then echo "Creating DKIM KeyTable" - echo "mail._domainkey.$domainname $domainname:mail:/tmp/docker-mailserver/opendkim/keys/$domainname/mail.private" > /tmp/docker-mailserver/opendkim/KeyTable + echo $keytableentry > /tmp/docker-mailserver/opendkim/KeyTable else if ! grep -q "$keytableentry" "/tmp/docker-mailserver/opendkim/KeyTable" ; then echo $keytableentry >> /tmp/docker-mailserver/opendkim/KeyTable