Mod:Postfix Updated msg's
This commit is contained in:
@@ -74,11 +74,15 @@ cat << EOF > /etc/update-motd.d/51-generalspf
|
||||
#!/bin/sh
|
||||
red='\e[1;31m%s\e[0m\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 Records for $hostname:"
|
||||
printf \$red "A record: \$(curl -s -4 icanhazip.com)"
|
||||
printf \$red "AAA record: \$(curl -s -6 icanhazip.com)"
|
||||
printf \$red "MX record: '0 mail'"
|
||||
printf \$red "SPF record: '\"v=spf1 a mx -all\"'"
|
||||
printf \$red "Check Blacklist using the following url: 'https://www.debouncer.com/blacklistlookup?t=$hostname'"
|
||||
printf "\n"
|
||||
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"
|
||||
EOF
|
||||
chmod +x /etc/update-motd.d/51-generalspf
|
||||
|
||||
@@ -20,6 +20,7 @@ if [ -n "$1" ]; then
|
||||
fi
|
||||
fi
|
||||
echo "Required to enable mailing for this system"
|
||||
echo "Please make sure a valid MX record, and A/AAA are set for DOMAINname,"
|
||||
echo "Please add the folloing to your SPF Record in the DNS of DOMAINname,"
|
||||
echo "ip4:$(curl -s -4 icanhazip.com) ip6:$(curl -s -6 icanhazip.com)"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user