All apps · 0 apps
mail2slack
Docker app from corgan's Repository
Overview
Scans a IMAP Inbox and post every Mail to a Slack Channel
Readme
View on GitHubmail2slack
Python Script wich scans a IMAP Inbox and post every Mail to a Slack Channel Needs Python > 3.6
Setup python:
git clone https://github.com/corgan2222/mail2slack
cd mail2slack
cp mail2slack.conf.sample mail2slack.conf
nano mail2slack.conf
pip3 install -r requirements.txt
python mail2slack.py
run with PM3
just run
pm2 start ecosystem.config.js
Or run with docker-compose:
- create a folder
- download docker-compose.yml
- change the settings in the docker-compose.yml
- run
mkdir mail2slack
curl -o docker-compose.yml https://raw.githubusercontent.com/corgan2222/mail2slack/master/docker-compose.yml.sample
nano docker-compose.yml
docker-compose up -d
Or run with docker-run:
- dont forget to change the settings!
docker run -d --restart unless-stopped --name mail2slack \
-e SLACK_END_POINT="https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxx" \
-e SLACK_SLACK_SENDER="Mailparser" \
-e SLACK_ICON_URL="https://raw.githubusercontent.com/corgan2222/mail2slack/master/docs/logo.png" \
-e SLACK_SLACK_FALLBACK="FALLBACK_MESSAGE" \
-e SLACK_CHANNEL="xxxx" \
-e SLACK_TOKEN="xoxp-xxxxxxxx-xxxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" \
-e MAIL_MAILSERVER="mail.server.com" \
-e MAIL_MAIL_LOGIN="mail@server.com" \
-e MAIL_MAIL_PW="xxxyyyyy" \
-e MAIL_FOLDER="Inbox" \
-e MAIL_AUTHOR_LINK="https://github.com/corgan2222/mail2slack" \
-e MAIL_TITLE_LINK="https://github.com/corgan2222/mail2slack" \
-e MAIL_FOOTER="xxx@yyyy.com" \
-e MAIL_FOOTER_ICON="https://raw.githubusercontent.com/corgan2222/mail2slack/master/docs/logo.png" \
-e GENERAL_LOG_LEVEL="INFO" \
stefanknaak/mail2slack:latest
Install Mail2slack on Unraid in a few clicks.
Find Mail2slack in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Open the Apps tab on your Unraid server Search Community Apps for Mail2slack Review the template variables and paths Click Install
Categories
Download Statistics
551
Total Downloads
Related apps
Explore more like this
Explore allLinks
Details
Repository
stefanknaak/mail2slack:latestLast Updated2024-03-15
First Seen2024-03-17
Runtime arguments
- Network
bridge- Shell
sh- Privileged
- false
- Extra Params
--restart unless-stopped