Yes, I think this should work similar.
Sorry it's markdown formatted
--
# Gotify notifications
Proxmox can be setup to send notifications to a gotify server.
Copy the following script `gotify.sh` to `/usr/bin/gotify.sh`.
```sh
#!/bin/bash
ALERTSENDTO="A92DJAD83DA0"
ALERTSUBJECT="Proxmox"
ALERTMESSAGE="$(grep -P '^SUBJECT:' - | cut -d' ' -f2-)"
curl -X POST "
https://gotify.myserver.com/message?token=$ALERTSENDTO" -F "title=$ALERTSUBJECT" -F "message=$ALERTMESSAGE" -F "priority=5" > /dev/null 2>&1
```
Set same owner and permissions as `/usr/bin/pvemailforward`.
```sh
chown 0:33 /usr/bin/gotify.sh
chmod 755 /usr/bin/gotify.sh
```
Add `|/usr/bin/gotify.sh` to `/root/.forward`.
It can be tested using the following command.
```sh
echo 'SUBJECT: foo bar' | /usr/sbin/sendmail -bm -N never -f root root@localhost
```
--
For now we will test it extracting the subject only, it may be sufficent for our use case.