Cyberpower power panel

Is there any way of having the UPS start up the server once mains power is restored? ie stop battery power for short time then provide power so server starts - bios set to start on power.
 
View attachment 73367

Not working, is this correct?

Code:
SUBJECT="PowerPanel Notification - [$EVENT]"
FROM="PowerPanel Daemon <$SENDER_ADDRESS>"
TO="$RECEIPT_NAME <$RECEIPT_ADDRESS>"
MESSAGE="Warning: The $EVENT event has occurred for a while, system will be shutdown immediately!"

DATE=`date +'%Y/%m/%d %p %H:%M'`
test ${#DATE}

RUNTIME=""

if [ ! -z "$REMAINING_RUNTIME" ]; then
        RUNTIME="Remaining Runtime: $REMAINING_RUNTIME Seconds"
fi

DATA=(
"========================================================"
"   $SUBJECT"
"========================================================"
""
""
"$MESSAGE"
"Time: $DATE"
""
""
"UPS Model Name: $MODEL_NAME"
"Battery Capacity: $BATTERY_CAPACITY %"
"$RUNTIME"
)

IFS=$'\n'

echo "${DATA[*]}" | mail -s "$SUBJECT" root

exit 0

#IFS=$'\n'
#echo "${DATA[*]}" | mail \
#-r   "$FROM" \
#-s   "$SUBJECT" \
#     "$TO"

#exit 0


Did some digging found some errors running journalctl _SYSTEMD_UNIT=postfix@-.service

Code:
ug 03 16:18:17 procove postfix[764]: Postfix is using backwards-compatible default settings
Aug 03 16:18:17 procove postfix[764]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Aug 03 16:18:17 procove postfix[764]: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Aug 03 16:18:18 procove postfix/postfix-script[860]: starting the Postfix mail system
Aug 03 16:18:18 procove postfix/master[862]: daemon started -- version 3.7.11, configuration /etc/postfix
Aug 03 17:52:17 procove postfix/pickup[863]: 677178050F: uid=0 from=<root>
Aug 03 17:52:17 procove postfix/cleanup[40682]: 677178050F: message-id=<20240803225217.677178050F@procove.alife.com>
Aug 03 17:52:17 procove postfix/qmgr[864]: 677178050F: from=<root@procove.life.com>, size=889, nrcpt=1 (queue active)
Aug 03 17:52:17 procove postfix/smtp[40684]: connect to gmail-smtp-in.l.google.com[607:f0:43:104::b]:25: Network is unreachable
Aug 03 17:52:47 procove postfix/smtp[40684]: connect to gmail-smtp-in.l.google.com[142.50.15.26]:25: Connection timed out
Aug 03 17:53:17 procove postfix/smtp[40684]: connect to alt1.gmail-smtp-in.l.google.com[142.250.12.26]:25: Connection timed out
Aug 03 17:53:17 procove postfix/smtp[40684]: connect to alt1.gmail-smtp-in.l.google.com[267:f80:401:c56::1b]:25: Network is unreachable
Aug 03 17:53:17 procove postfix/smtp[40684]: connect to alt2.gmail-smtp-in.l.google.com[207:fb0:403:1::1b]:25: Network is unreachable

Some issue with port 25?
Hi

were you able to get this working? i'm having the same issue