Mod:Postfix updated instructions
This commit is contained in:
@@ -69,12 +69,12 @@ 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 > /etc/update-motd.d/51-generalspf
|
cat << EOF > test.sh
|
||||||
#!/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 \"ip4:\$(curl -s -4 icanhazip.com) ip6:\$(curl -s -6 icanhazip.com)\" to $hostname SPF"
|
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 DKKIM for the hostname run bash ~/OpenDKIMInit-host.sh"
|
printf \$red "to enable DKKIM 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"
|
||||||
|
|||||||
@@ -20,11 +20,14 @@ if [ -n "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Required to enable mailing for this system"
|
echo "Required to enable mailing for this system"
|
||||||
echo "Please add the folloing to your SPF Record in the DNS of DOMAINname"
|
echo "Please add the folloing to your SPF Record in the DNS of DOMAINname,"
|
||||||
echo ""
|
|
||||||
echo "Optional to enable dkim"
|
|
||||||
echo "ip4:$(curl -s -4 icanhazip.com) ip6:$(curl -s -6 icanhazip.com)"
|
echo "ip4:$(curl -s -4 icanhazip.com) ip6:$(curl -s -6 icanhazip.com)"
|
||||||
echo "Please add the folloing TXT Record to the DNS of DOMAINname"
|
echo ""
|
||||||
|
echo "Alternatively use the 'a' and 'mx' in the SPF record just make sure the server has an 'A' and 'AAA' record pointing to it"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "Optionally to enable dkim"
|
||||||
|
echo "Add the folloing TXT Record to the DNS of DOMAINname"
|
||||||
echo "WARNING the output is split, please combine key before inserting into DNS"
|
echo "WARNING the output is split, please combine key before inserting into DNS"
|
||||||
cat /etc/opendkim.d/keys/DOMAINname/ODKSec.txt
|
cat /etc/opendkim.d/keys/DOMAINname/ODKSec.txt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user