mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
PTR dot fix in v-make-separate-ip-for-email
This commit is contained in:
parent
7d2dda10bc
commit
5bbfb4dc1a
1 changed files with 4 additions and 1 deletions
|
@ -139,7 +139,10 @@ fi
|
||||||
echo "=== Done!"
|
echo "=== Done!"
|
||||||
|
|
||||||
ptr=$(dig +short -x $MAIL_IP)
|
ptr=$(dig +short -x $MAIL_IP)
|
||||||
if [ "$PTR" != "$MAIL_HOSTNAME." ]; then
|
ptr_len=${#ptr}
|
||||||
|
ptr_len=$((ptr_len-1))
|
||||||
|
ptr=${ptr:0:ptr_len}
|
||||||
|
if [ "$PTR" != "$MAIL_HOSTNAME" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "WARNING: PTR for $MAIL_IP is $ptr"
|
echo "WARNING: PTR for $MAIL_IP is $ptr"
|
||||||
echo "WARNING: PTR for $MAIL_IP should be $MAIL_HOSTNAME"
|
echo "WARNING: PTR for $MAIL_IP should be $MAIL_HOSTNAME"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue