diff --git a/bin/v-make-separate-ip-for-email b/bin/v-make-separate-ip-for-email index 6654b9688..1e0134639 100644 --- a/bin/v-make-separate-ip-for-email +++ b/bin/v-make-separate-ip-for-email @@ -137,3 +137,10 @@ if [ "$check_grep" -eq 0 ]; then fi echo "=== Done!" + +ptr=$(dig +short -x $MAIL_IP) +if [ "$PTR" != "$MAIL_HOSTNAME" ]; then + echo "" + echo "WARNING: PTR for $MAIL_IP is $ptr" + echo "WARNING: PTR for $MAIL_IP should be $MAIL_HOSTNAME" +fi