A simple smtp (sendmail) server that forwards all emails to pushover.
It's an easy way to get tools like smartmontools to send you push notifications. It can also be handy for quickly scripting push notifications without having to have your pushover credentials all over the place.
Docker images are available at Docker Hub and GitHub Container Registry.
To use it with docker-compose, you could configure it like this:
services:
smtp-pushover:
restart: unless-stopped
container_name: smtp-pushover
image: ghcr.io/mattbun/smtp-pushover
ports:
- "25:25"
environment:
- PORT=25 # optional, defaults to 25
- PUSHOVER_USER=...
- PUSHOVER_TOKEN=...and start it with
docker-compose up smtp-pushoverNow, if you configure a smtp client to use localhost:25, you can send notifications with:
echo -e "Subject:Test\n\nHello" | msmtp blah@blah.com- The destination email doesn't matter, smtp-pushover will forward all email to pushover.
- The subject of the email becomes the title of the push notification.
- The contents of the email become the text of the push notification.
- Clone this repo
yarn installto install dependenciesyarn buildto compile typescriptyarn startto start the server