You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
John G G 32b86f0d54 Use python stdlib instead of requests (#1) 4 years ago
Makefile add email_to_webhook 4 years ago readme 4 years ago
email_to_webhook Use python stdlib instead of requests (#1) 4 years ago multi arg command in .forward needs quotes 4 years ago

send emails to root to slack

slack side

First you must go here and create a new slack app and choose a channel and get a webhook URL.

mkdir -p /etc/environment.d
echo '' >


export DEBIAN_FRONTEND=noninteractive
apt update
apt -y install git python3 make postfix daemontools

install helper

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

example usage

apt install -y smartmontools

Now you'll get a slack notification when your disk is going to die, because smartmontools emails root by default when it detects problems.