mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
PTR check in v-make-separate-ip-for-email
This commit is contained in:
parent
89c2767e92
commit
7a0d18fc81
1 changed files with 7 additions and 0 deletions
|
@ -137,3 +137,10 @@ if [ "$check_grep" -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Done!"
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue