mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -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
|
||||
|
||||
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