From bc93db7be476efcd51bc528e9695e00b8641923c Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Wed, 16 Oct 2019 14:21:53 +0200 Subject: [PATCH] Update 'config/dkim/opendkim.sh' --- config/dkim/opendkim.sh | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/config/dkim/opendkim.sh b/config/dkim/opendkim.sh index 6247ca6..25433f8 100644 --- a/config/dkim/opendkim.sh +++ b/config/dkim/opendkim.sh @@ -1,43 +1,13 @@ -clear -echo "Domain without www or e-mail:" -read domain -domonly=${domain} -domain=mail.${domain} -dhparam=1024 - -apt install opendkim opendkim-tools -y - gpasswd -a postfix opendkim wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/beta/config/dkim/opendkim.conf -O /etc/opendkim.conf - -#sed -i -e 's/#Canonicalization simple/Canonicalization relaxed/simple/' -e 's/#Mode sv/Mode sv/' -e 's/#SubDomains no/SubDomains no/' /etc/opendkim.conf -#echo "" >> /etc/opendkim.conf -#echo "AutoRestart yes" >> /etc/opendkim.conf -#echo "AutoRestartRate 10/1M" >> /etc/opendkim.conf -#echo "Background yes" >> /etc/opendkim.conf -#echo "DNSTimeout 5" >> /etc/opendkim.conf -#echo "SignatureAlgorithm rsa-sha256" >> /etc/opendkim.conf -#echo "" >> /etc/opendkim.conf -#echo "# Map domains in From addresses to keys used to sign messages" >> /etc/opendkim.conf -#echo "KeyTable refile:/etc/opendkim/key.table" >> /etc/opendkim.conf -#echo "SigningTable refile:/etc/opendkim/signing.table" >> /etc/opendkim.conf -#echo "" >> /etc/opendkim.conf -#echo "# Hosts to ignore when verifying signatures" >> /etc/opendkim.conf -#echo "ExternalIgnoreList /etc/opendkim/trusted.hosts" >> /etc/opendkim.conf -#echo "" >> /etc/opendkim.conf -#echo "# A set of internal hosts whose mail should be signed" >> /etc/opendkim.conf -#echo "InternalHosts /etc/opendkim/trusted.hosts" >> /etc/opendkim.conf - mkdir -p /etc/opendkim mkdir -p /etc/opendkim/keys chown -R opendkim:opendkim /etc/opendkim chmod go-rw /etc/opendkim/keys echo "*@$domonly default._domainkey.$domonly" >> /etc/opendkim/signing.table - echo "default._domainkey.$domonly $domonly:default:/etc/opendkim/keys/$domonly/default.private" >> /etc/opendkim/key.table - echo "127.0.0.1" >> /etc/opendkim/trusted.hosts echo "localhost" >> /etc/opendkim/trusted.hosts echo "" >> /etc/opendkim/trusted.hosts @@ -47,5 +17,5 @@ mkdir -p /etc/opendkim/keys/$domonly opendkim-genkey -b $dhparam -d $domonly -D /etc/opendkim/keys/$domonly -s default -v chown opendkim:opendkim /etc/opendkim/keys/$domonly/default.private -clear -cat /etc/opendkim/keys/$domonly/default.txt \ No newline at end of file +cat /etc/opendkim/keys/$domonly/default.txt +sleep 3 \ No newline at end of file