# Issue with certbot renew and mail

**URL:** <https://community.letsencrypt.org/t/issue-with-certbot-renew-and-mail/79738>\
**Category:** Help\
**Created:** [December 10, 2018, 8:17pm UTC](https://community.letsencrypt.org/t/issue-with-certbot-renew-and-mail/79738 "2018-12-10T20:17:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mtstedman](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@mtstedman](https://community.letsencrypt.org/u/mtstedman)\
**Post date:** [December 10, 2018, 10:26pm UTC](https://community.letsencrypt.org/t/issue-with-certbot-renew-and-mail/79738/5 "2018-12-10T22:26:48Z")

</div>

@stevenzhu --renew-hook only runs on a successful renewal. If I used post-hook it would reboot nginx every time the command is run, whether it attempts a renewal or not:

> [@Certbot pre and post hooks](https://community.letsencrypt.org/t/certbot-pre-and-post-hooks/53501):
>
> H…

---

_[View the full topic](https://community.letsencrypt.org/t/issue-with-certbot-renew-and-mail/79738)._
