Skip to content

A small program which listens for SMTP notifications and sends all incoming messages to your Gotify server

License

Notifications You must be signed in to change notification settings

swonky/smtp-gotify

This branch is 7 commits behind scott-8/smtp-gotify:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e9152b9 · Jan 22, 2020

History

21 Commits
Jan 22, 2020
Jan 22, 2020
Jan 20, 2020
Jan 22, 2020
Jan 22, 2020
Jan 22, 2020

Repository files navigation

SMTP to Gotify

smtp-gotify is a small program which listens for SMTP and sends all incoming Email messages to your Gotify server. It is modified version of KostyaEsmukov/smtp_to_telegram .

Say you have a software which can send Email notifications via SMTP. You may use smtp-gotify as an SMTP server so the notification mail can be sent to a Gotify app.

Getting started

Starting a docker container:

docker run \
    --name smtp-gotify \
    -e GOTIFY_URL=<SERVER_URL> \
    -e GOTIFY_TOKEN=<APP_TOKEN1>,<APP_TOKEN2> \
    -p 2525:2525 \
    piedelivery/smtp-gotify

The variable GOTIFY_URL should be in the form http[s]://example.com[:port]/.

A few other environmental variables that can be optionally specified: GOTIFY_PRIORITY, GOTIFY_TITLE_TEMPLATE, and GOTIFY_MESSAGE_TEMPLATE.

Assuming that your Email-sending software is running in docker as well, you may use smtp-gotify:2525 as the target SMTP address. No TLS or authentication is required.

About

A small program which listens for SMTP notifications and sends all incoming messages to your Gotify server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.2%
  • Dockerfile 7.8%