add email_to_webhook
This commit is contained in:
1 parent
95b737c5fa
commit
cfb1a5c8c3
4 files changed
+95
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
```
|
||||
Reference in new issue
Block a user