From 31c7ba85c8132f0441feafb278f45675b5658383 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 18 Mar 2021 16:04:53 +0100 Subject: [PATCH] Mod:Postfix Updated msg's --- SubModules/postfix/conf.sh | 8 ++++++-- SubModules/postfix/opendkim-init.sh | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SubModules/postfix/conf.sh b/SubModules/postfix/conf.sh index 6b9ec0a..2d4c3b7 100644 --- a/SubModules/postfix/conf.sh +++ b/SubModules/postfix/conf.sh @@ -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 diff --git a/SubModules/postfix/opendkim-init.sh b/SubModules/postfix/opendkim-init.sh index d8a035a..4a2c861 100644 --- a/SubModules/postfix/opendkim-init.sh +++ b/SubModules/postfix/opendkim-init.sh @@ -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 ""