Skip to content

Instantly share code, notes, and snippets.

@lewcpe
lewcpe / mail2slack.py
Created February 4, 2016 08:36
Forward a mail from monit to slack
#!/usr/bin/env python
#! -*- coding:utf-8 -*-
"""
Mail to Slack
==========
A Simple SMTP server that will forward messages to Slack. It provides a simple
authentication mechanism via reciever's domain. This utility is designed for
monit monitoring.
"""
import email
### Keybase proof
I hereby claim:
* I am lewcpe on github.
* I am lewcpe (https://keybase.io/lewcpe) on keybase.
* I have a public key whose fingerprint is 8FA0 E06B 34B8 7FBE EA8B 6269 4A61 7A10 2700 6D3D
To claim this, I am signing this object: