diff --git a/config/dkim/opendkim.sh b/config/dkim/opendkim.sh index 99be8b6..6247ca6 100644 --- a/config/dkim/opendkim.sh +++ b/config/dkim/opendkim.sh @@ -1,7 +1,6 @@ clear echo "Domain without www or e-mail:" read domain - domonly=${domain} domain=mail.${domain} dhparam=1024 @@ -10,23 +9,25 @@ apt install opendkim opendkim-tools -y gpasswd -a postfix opendkim -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 +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