This is a small Python class, located in /usr/lib/python3/dist-packages/mailman_webhook/__init.py__
for connecting your rocket.chat instance to a mailman (send e-mail messages from mailman to rocket.chat webhook)
Configuration is located in /etc/mailman3/mailman-webhook.cfg
. The plugin (archiver) must be activated in the main config /etc/mailman3/mailman.cfg
file setting up the class path like this:
[archiver.webhook]
class: mailman_webhook.Archiver
enable: yes
configuration: /etc/mailman3/mailman-webhook.cfg
Plugin logs in the default log file prefixing the messages with Webhook:
Messages should come on:
-
Errors
-
Channel matched
-
Message not forwarded to rocket.chat (because of settings)
# Configuration of the new mailing list -> channel
[list.example_list]
url = "http://rocket.chat/webhook/url/..."