Sign inSign up

reddexx1989/smtp2gotify

By reddexx1989

•Updated almost 2 years ago

Image
0

1.3K

reddexx1989/smtp2gotify repository overview

SMTP to Gotify (a fork from https://github.com/scott-8/smtp-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:

CLI:

docker run \
    --name smtp-gotify \
    -e GOTIFY_URL=<SERVER_URL> \
    -e GOTIFY_TOKEN=<APP_TOKEN1> \
    -p 2525:2525 \
    reddexx1989/smtp2gotify

Compose:

version: '3.9'
services:
    smtp2gotify:
        image: reddexx1989/smtp2gotify
        ports:
            - '2525:2525'
        environment:
            - GOTIFY_TOKEN=<APP_TOKEN1>
            - GOTIFY_URL=<SERVER_URL>
        container_name: 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.

Tag summary

Content type

Image

Digest

sha256:41de0c7d6…

Size

7.8 MB

Last updated

almost 2 years ago

docker pull reddexx1989/smtp2gotify