# Adding user nutmon to sudoers.d for sendmail

**URL:** <https://community.ipfire.org/t/adding-user-nutmon-to-sudoers-d-for-sendmail/15626>\
**Category:** Add-Ons\
**Created:** [28 March 2026 08:37 UTC](https://community.ipfire.org/t/adding-user-nutmon-to-sudoers-d-for-sendmail/15626 "2026-03-28T08:37:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![firewire](https://community.ipfire.org/user_avatar/community.ipfire.org/firewire/32/8332_2.png) [@firewire](https://community.ipfire.org/u/firewire)\
**Post date:** [28 March 2026 08:37 UTC](https://community.ipfire.org/t/adding-user-nutmon-to-sudoers-d-for-sendmail/15626/1 "2026-03-28T08:37:13Z")

</div>

Hi there, in order to run NUT in unprivileged mode (as user `nutmon`) but still receiving mail messages in case of the UPS’s state changing, I’ve added the following config in `/etc/sudoers.d/nutmon`

```auto
nutmon ALL=(ALL) NOPASSWD: /usr/sbin/sendmail

```

Is that okay so far, respectivly, is that change better than running nut as root?

---

<div class="post-metadata">

**Author:** ![ms](https://community.ipfire.org/user_avatar/community.ipfire.org/ms/32/9344_2.png) [@ms](https://community.ipfire.org/u/ms)\
**Post date:** [28 March 2026 11:40 UTC](https://community.ipfire.org/t/adding-user-nutmon-to-sudoers-d-for-sendmail/15626/2 "2026-03-28T11:40:35Z")

</div>

I think you might just have to add the nutmon user to the mail group in order to send emails. Or it should work already out of the box. sendmail does not have to run as root.

---

<div class="post-metadata">

**Author:** ![firewire](https://community.ipfire.org/user_avatar/community.ipfire.org/firewire/32/8332_2.png) [@firewire](https://community.ipfire.org/u/firewire)\
**Post date:** [28 March 2026 13:59 UTC](https://community.ipfire.org/t/adding-user-nutmon-to-sudoers-d-for-sendmail/15626/3 "2026-03-28T13:59:55Z")

</div>

Oh yes, thank you ❤ That worked 🙂
