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