Update 'config/dkim/opendkim.sh'
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
clear
|
clear
|
||||||
echo "Domain without www or e-mail:"
|
echo "Domain without www or e-mail:"
|
||||||
read domain
|
read domain
|
||||||
|
|
||||||
domonly=${domain}
|
domonly=${domain}
|
||||||
domain=mail.${domain}
|
domain=mail.${domain}
|
||||||
dhparam=1024
|
dhparam=1024
|
||||||
@@ -10,23 +9,25 @@ apt install opendkim opendkim-tools -y
|
|||||||
|
|
||||||
gpasswd -a postfix opendkim
|
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
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/beta/config/dkim/opendkim.conf -O /etc/opendkim.conf
|
||||||
echo "" >> /etc/opendkim.conf
|
|
||||||
echo "AutoRestart yes" >> /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 "AutoRestartRate 10/1M" >> /etc/opendkim.conf
|
#echo "" >> /etc/opendkim.conf
|
||||||
echo "Background yes" >> /etc/opendkim.conf
|
#echo "AutoRestart yes" >> /etc/opendkim.conf
|
||||||
echo "DNSTimeout 5" >> /etc/opendkim.conf
|
#echo "AutoRestartRate 10/1M" >> /etc/opendkim.conf
|
||||||
echo "SignatureAlgorithm rsa-sha256" >> /etc/opendkim.conf
|
#echo "Background yes" >> /etc/opendkim.conf
|
||||||
echo "" >> /etc/opendkim.conf
|
#echo "DNSTimeout 5" >> /etc/opendkim.conf
|
||||||
echo "# Map domains in From addresses to keys used to sign messages" >> /etc/opendkim.conf
|
#echo "SignatureAlgorithm rsa-sha256" >> /etc/opendkim.conf
|
||||||
echo "KeyTable refile:/etc/opendkim/key.table" >> /etc/opendkim.conf
|
#echo "" >> /etc/opendkim.conf
|
||||||
echo "SigningTable refile:/etc/opendkim/signing.table" >> /etc/opendkim.conf
|
#echo "# Map domains in From addresses to keys used to sign messages" >> /etc/opendkim.conf
|
||||||
echo "" >> /etc/opendkim.conf
|
#echo "KeyTable refile:/etc/opendkim/key.table" >> /etc/opendkim.conf
|
||||||
echo "# Hosts to ignore when verifying signatures" >> /etc/opendkim.conf
|
#echo "SigningTable refile:/etc/opendkim/signing.table" >> /etc/opendkim.conf
|
||||||
echo "ExternalIgnoreList /etc/opendkim/trusted.hosts" >> /etc/opendkim.conf
|
#echo "" >> /etc/opendkim.conf
|
||||||
echo "" >> /etc/opendkim.conf
|
#echo "# Hosts to ignore when verifying signatures" >> /etc/opendkim.conf
|
||||||
echo "# A set of internal hosts whose mail should be signed" >> /etc/opendkim.conf
|
#echo "ExternalIgnoreList /etc/opendkim/trusted.hosts" >> /etc/opendkim.conf
|
||||||
echo "InternalHosts /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
|
||||||
mkdir -p /etc/opendkim/keys
|
mkdir -p /etc/opendkim/keys
|
||||||
|
|||||||
Reference in New Issue
Block a user