hacks/forward-email-to-slack-webhook
Jeffrey Paul 67fc2168c2 multi arg command in .forward needs quotes 2019-03-27 09:08:58 -07:00
..
Makefile add email_to_webhook 2019-03-27 09:06:23 -07:00
README.md add email_to_webhook 2019-03-27 09:06:23 -07:00
email_to_webhook add email_to_webhook 2019-03-27 09:06:23 -07:00
install.sh multi arg command in .forward needs quotes 2019-03-27 09:08:58 -07:00

README.md

send emails to root to slack

prerequisites

apt update && apt -y install git python3 make postfix

install

mkdir -p /etc/environment.d
git clone https://github.com/sneak/hacks.git /tmp/hacks && \
    cd /tmp/hacks/forward-email-to-slack-webhook && \
    make install

and

mkdir -p /etc/environment.d
echo 'https://hooks.slack.com/services/XXXXXX/XXXXXXX/xxxxxxxxxxxxxxxx' >
    /etc/environment.d/SLACK_WEBHOOK_URL