From 7fae62ca9c3f6bf88d50ed8b3882b3bd1d477d85 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 9 Sep 2023 22:03:40 -0500 Subject: [PATCH] Update install-postfix.sh --- install-postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-postfix.sh b/install-postfix.sh index ff5de56..0b79556 100755 --- a/install-postfix.sh +++ b/install-postfix.sh @@ -81,7 +81,7 @@ case "$choice" in fi [ "$(ip route | awk '/default/ { print $5 }')" == "link" ] && HIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) || HIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) - echo -e "Received from: $(hostname) {$(hostname -f) [${HIP}]}\n${pffromemail}@scity.us\n$(date)" | mail -r ${pffromemail}@scity.us -s "Test Message (Postfix Install)" $TESTEMAIL + echo -e "Received from: ${pffromemail}@scity.us\nHostname: $(hostname) ($(hostname -f))\nIP: ${HIP}\n\n\nSent: $(date)" | mail -r ${pffromemail}@scity.us -s "Test Message (Postfix Install)" $TESTEMAIL fi echo ""