From eaeacbed471fe42d9d1b650397bc40b274a52cbb Mon Sep 17 00:00:00 2001 From: MGislv Date: Sat, 8 Jan 2022 18:04:29 +0000 Subject: [PATCH] Remove sample conf --- emailwiz.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/emailwiz.sh b/emailwiz.sh index 58bac9b..8880a63 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -266,12 +266,10 @@ grep -q '127.0.0.1' /etc/postfix/dkim/trustedhosts 2>/dev/null || echo '127.0.0.1' >> /etc/postfix/dkim/trustedhosts # ...and source it from opendkim.conf -cp /usr/share/doc/opendkim/opendkim.conf.sample /etc/opendkim/opendkim.conf -sed -i "s/^Domain/Domain $domain/" /etc/opendkim/opendkim.conf -sed -i 's/example.com//g' /etc/opendkim/opendkim.conf -grep -q '^KeyTable' /etc/opendkim/opendkim.conf 2>/dev/null || echo 'KeyTable file:/etc/postfix/dkim/keytable +grep -q '^KeyTable' /etc/opendkim/opendkim.conf 2>/dev/null || echo "KeyTable file:/etc/postfix/dkim/keytable SigningTable refile:/etc/postfix/dkim/signingtable -InternalHosts refile:/etc/postfix/dkim/trustedhosts' >> /etc/opendkim/opendkim.conf +InternalHosts refile:/etc/postfix/dkim/trustedhosts +Domain $domain" >> /etc/opendkim/opendkim.conf sed -i '/^#Canonicalization/s/simple/relaxed\/simple/' /etc/opendkim/opendkim.conf sed -i '/^#Canonicalization/s/^#//' /etc/opendkim/opendkim.conf