# Auto email alerts

**URL:** <https://discourse.crowdsec.net/t/auto-email-alerts/107>\
**Category:** crowdsec\
**Created:** [February 2, 2021, 10:22pm UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107 "2021-02-02T22:22:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cavaughan](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/cavaughan/32/71_2.png) [@cavaughan](https://discourse.crowdsec.net/u/cavaughan)\
**Post date:** [February 2, 2021, 10:22pm UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107/1 "2021-02-02T22:22:04Z")

</div>

Without installing Docker or other web interface, has anyone written a script to send an email in the event of an alert?

---

<div class="post-metadata">

**Author:** ![thibault](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/thibault/32/2_2.png) [@thibault](https://discourse.crowdsec.net/u/thibault)\
**Post date:** [February 3, 2021, 7:24am UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107/2 "2021-02-03T07:24:21Z")

</div>

Hello @cavaughan 🙂

Crowdsec doesn’t provide this out of the box, but I guess it would be quite simple to put together.  
Are you looking for a “send me an email as soon as there is an alert” or “send me a recap every X hours of the alerts I got” ?

(I’m afraid the first one might be noisy, internet being … internet)

---

<div class="post-metadata">

**Author:** ![cavaughan](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/cavaughan/32/71_2.png) [@cavaughan](https://discourse.crowdsec.net/u/cavaughan)\
**Post date:** [February 3, 2021, 4:08pm UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107/3 "2021-02-03T16:08:07Z")

</div>

Either would be fine. If the first is too noisy, then the latter would be fine. It’s only for local systems, so it’s not that big a deal. I would think it’s not that hard and if no one’s written anything I’ll give it a go.

---

<div class="post-metadata">

**Author:** ![thibault](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/thibault/32/2_2.png) [@thibault](https://discourse.crowdsec.net/u/thibault)\
**Post date:** [February 5, 2021, 7:43am UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107/4 "2021-02-05T07:43:51Z")

</div>

I don’t think it’s hard neither, but we don’t have it yet ☹  
If you were to look into it, let us know if you need any help !

---

<div class="post-metadata">

**Author:** ![Sich](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/sich/32/16_2.png) [@Sich](https://discourse.crowdsec.net/u/Sich)\
**Post date:** [February 8, 2021, 7:58am UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107/5 "2021-02-08T07:58:58Z")

</div>

The best way is probably to write your own bouncer, but instead of blocking IP the bouncer will send an email alert.  
You probably want to send a recap and not a mail on each blocked IP, but that is to you to test.

---

<div class="post-metadata">

**Author:** ![adamwms](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@adamwms](https://discourse.crowdsec.net/u/adamwms)\
**Post date:** [February 2, 2022, 10:52am UTC](https://discourse.crowdsec.net/t/auto-email-alerts/107/6 "2022-02-02T10:52:06Z")

</div>

+1 from me and I would be into daily summary reports.

It’s been a year since last update in this thread and I’m wondering if reporting via email has been added since?

If there is nothing officially baked in perhaps one of the users managed to put together something nice and is willing to share?
