thperret / m2mb

Mail to Slack/Mattermost webhook bridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

m2mb - A mail to Slack/Mattermost webhook bridge

M2MB is a smtp server that doesn't send mails (!) but transfer the message to a Slack/Mattermost instance through a webhook.

By default, m2mb will send all mails to the default configured channel. You can configure another default channel in the command line (see --help) or configure per-mail rules using sieve filters (see documentation).

Requirements

You need python 3.6 to use this program. If you can't install python 3.6 on your system, there is a Docker image available on Docker Hub

Installing

On your system

$ git clone https://github.com/thperret/M2MB
$ pip install --process-dependency-links .

With docker

$ docker pull thperret/m2mb

Running

On your system

$ m2mbd localhost 8225 http://mattermost_instance/hooks/randomid

With docker

$ docker run -e WEBHOOK_URL=http://mattermost-instance/hooks/randomid -p 8225:25 thperret/m2mb

For advanced use, see documentation.

About

Mail to Slack/Mattermost webhook bridge

License:Other


Languages

Language:Python 96.1%Language:Shell 3.9%