Mod:Postfix Updated msg's

This commit is contained in:
2021-03-18 16:04:53 +01:00
parent f755e27fb4
commit 31c7ba85c8
2 changed files with 7 additions and 2 deletions

View File

@@ -74,11 +74,15 @@ 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 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 \$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"
EOF EOF
chmod +x /etc/update-motd.d/51-generalspf chmod +x /etc/update-motd.d/51-generalspf

View File

@@ -20,6 +20,7 @@ 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 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 "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 "ip4:$(curl -s -4 icanhazip.com) ip6:$(curl -s -6 icanhazip.com)"
echo "" echo ""