Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

MIME E-mail forwarding script for Slack written in Python

Project Description

MIME E-mail forwarding script for Slack written in Python.

I tested on Python 3.x and Postfix only. Please report test result and sample configuration on other MTAs.




Getting Started

Install from PyPI

# Install email2slack
pip3 install email2slack

# Fetch configuration file from GitHub
cd /usr/local/etc/
curl -O

# Before using, You must edit config file
vim /usr/local/etc/email2slack

In this case, setuptools create script to call email2slack and place it in bin directory automatically. So you should use the script in Setup MTA section.

Install from GitHub repository

git clone
cd email2slack

# Install dependencies
pip3 install -r requirements.txt

# Install email2slack
cp /usr/local/bin/ && chmod +x /usr/local/bin/
cp email2slack /usr/local/etc/

# Before using, You must edit config file
vim /usr/local/etc/email2slack

Setup MTA


vim /etc/postfix/aliases


# notice only, not forward
user: |/usr/local/bin/

# notice and forward e-mail to another user
user: anotheruser, |/usr/local/bin/

# notice and leave e-mail on same user
user: \user, |/usr/local/bin/



Release History

This version
History Node


History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting