Mod:Postfix Fixed oopsie

This commit is contained in:
2021-03-18 14:57:42 +01:00
parent 22df00dd80
commit f755e27fb4

View File

@@ -69,14 +69,14 @@ curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/SubModules
sed -i -e 's/DOMAINname/'$hostname'/g' -e 's/SITEName/'host'/g' -e 's/ODKSec/'$odkhsec'/g' ~/OpenDKIMInit-host.sh sed -i -e 's/DOMAINname/'$hostname'/g' -e 's/SITEName/'host'/g' -e 's/ODKSec/'$odkhsec'/g' ~/OpenDKIMInit-host.sh
unset odkhsec unset odkhsec
/etc/update-motd.d/51-generalspf
cat << EOF > test.sh cat << EOF > /etc/update-motd.d/51-generalspf
#!/bin/sh #!/bin/sh
red='\e[1;31m%s\e[0m\n' red='\e[1;31m%s\e[0m\n'
printf "\n" printf "\n"
printf \$red "To enable mail for this server add the folling ip's \"ip4:\$(curl -s -4 icanhazip.com) ip6:\$(curl -s -6 icanhazip.com)\" for $hostname" printf \$red "To enable mail for this server add the folling ip's \"ip4:\$(curl -s -4 icanhazip.com) ip6:\$(curl -s -6 icanhazip.com)\" for $hostname"
printf \$red Check Blacklist using the following url: "https://www.debouncer.com/blacklistlookup?t=$hostname" printf \$red "Check Blacklist using the following url: 'https://www.debouncer.com/blacklistlookup?t=$hostname'"
printf \n printf "\n"
printf \$red "Optionally, to enable DKIM for the hostname run bash ~/OpenDKIMInit-host.sh" printf \$red "Optionally, to enable DKIM for the hostname run bash ~/OpenDKIMInit-host.sh"
printf \$red "remove notice this by running \"rm /etc/update-motd.d/51-generalspf\"" printf \$red "remove notice this by running \"rm /etc/update-motd.d/51-generalspf\""
printf "\n" printf "\n"