# Monitoring email delivery

**URL:** <https://forum.yunohost.org/t/monitoring-email-delivery/43346>\
**Category:** Discuss\
**Tags:** english\
**Created:** [November 11, 2026, 10:45am UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346 "2026-11-11T10:45:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![plord](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plord/32/14074_2.png) [@plord](https://forum.yunohost.org/u/plord)\
**Post date:** [November 11, 2026, 10:45am UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/1 "2026-11-11T10:45:44Z")

</div>

### Discuss

Hi All,

How do folks monitor email delivery with yunohost ? With so many rejected emails, especially on home/small server that might be untrusted, an important aspect.

In the past I’ve used tools like pflogsumm ([Postfix Pflogsumm Log Entry Summary @ Calomel.org](https://calomel.org/pflogsumm.html)) but thats not (currently) installed with yunohost.

I do make use of the dmarc reports but that doesn’t include, say, delivery failures.

Thanks,

Pete

---

<div class="post-metadata">

**Author:** ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)\
**Post date:** [November 11, 2026, 12:41pm UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/2 "2026-11-11T12:41:46Z")

</div>

On my side, i just run `grep "dsn=5" /var/log/mail.log` and check the diagnosis alert about too much mail in the queue.

I discuss yesterday about omailgw allowing to follow with gui this kind of things, but it’s to create mail gateway not sure we could adapt this into yunohost.

I guess we could use `reaction` to trigger some actions based on checking this log. [reaction is the new tool we plan to used to replace fail2ban](https://github.com/YunoHost/yunohost/pull/2151).

* * *

I hope this answer was helpful. Please keep in mind that most of YunoHost’s development is done by volunteers, including this answer. Some of them earn less than the minimum wage in their country. If you can afford it, please consider [donating to the 2026 fundraising campaign](https://yunohost.org/donate.html) to help us keep this project going without putting anyone at risk.

---

<div class="post-metadata">

**Author:** ![plord](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plord/32/14074_2.png) [@plord](https://forum.yunohost.org/u/plord)\
**Post date:** [November 11, 2026, 1:39pm UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/3 "2026-11-11T13:39:23Z")

</div>

Thanks for your response.

I did find after I posted [Statistics mail server by Pflogsumm - Postfix](https://forum.yunohost.org/t/statistics-mail-server-by-pflogsumm-postfix/3768) … old, but still seems to be the common approach.

For me stats are interesting, but you really need an alert if emails arn’t being delivered (rejected, queued etc) … maybe something for diagnostics ? Even looking for long mailq is pretty useful (or simple grep’s as you say).

I did spot [Lightmeter / ControlCenter · GitLab](https://gitlab.com/lightmeter/controlcenter) … a good match to yunohost but deprecated.

For now I’ll probably just install pflogsumm.

Thanks again,  
Pete

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [November 11, 2026, 4:58pm UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/4 "2026-11-11T16:58:53Z")

</div>

I am using this script [Linux-scripts/yunohost/mail-report at main · DeMiro5001/Linux-scripts · GitHub](https://github.com/DeMiro5001/Linux-scripts/blob/main/yunohost/mail-report)  
I have it on all my servers (placed in /etc/cron.daily)  
It’s mainly to check the pattern bots are using to try authenticate on my server. I get daily report.

---

<div class="post-metadata">

**Author:** ![plord](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plord/32/14074_2.png) [@plord](https://forum.yunohost.org/u/plord)\
**Post date:** [November 12, 2026, 8:01am UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/5 "2026-11-12T08:01:51Z")

</div>

Oh, just discovered [GitHub - kumina/postfix\_exporter: A Prometheus exporter for Postfix. · GitHub](https://github.com/kumina/postfix_exporter) / [https://github.com/Hsn723/postfix\_exporter](https://github.com/Hsn723/postfix_exporter)

```auto
sudo apt-get install prometheus-postfix-exporter
curl -L -O https://github.com/Hsn723/postfix_exporter/releases/download/v0.21.2/postfix_exporter_systemd_0.21.2_linux_amd64.tar.gz
tar -xvzf postfix_exporter_systemd_0.21.2_linux_amd64.tar.gz
sudo systemctl stop prometheus-postfix-exporter.service
sudo dpkg-divert --add --rename --divert /usr/bin/prometheus-postfix-exporter.distrib /usr/bin/prometheus-postfix-exporter
dpkg-divert --list | grep postfix
sudo install -o root -g root -m 0755 postfix_exporter /usr/bin/prometheus-postfix-exporter
sudo systemctl start prometheus-postfix-exporter.service

curl -s http://localhost:9154/metrics

```

I’ll try that out over a few days

---

<div class="post-metadata">

**Author:** ![sarahwhite](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sarahwhite](https://forum.yunohost.org/u/sarahwhite)\
**Post date:** [November 12, 2026, 5:41pm UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/6 "2026-11-12T17:41:32Z")

</div>

postfix\_exporter is a good fit if you already run Prometheus/Alertmanager; the useful part is alerting on queue size growth and deferred/bounced counts rather than dashboards. Set a threshold for messages stuck in the active/deferred queue and a separate alert for a sustained rise in bounces, otherwise you only notice when a user complains. It won’t explain why an individual message was rejected, so keep ljf’s grep dsn=5 for the details.

---

<div class="post-metadata">

**Author:** ![plord](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plord/32/14074_2.png) [@plord](https://forum.yunohost.org/u/plord)\
**Post date:** [November 13, 2026, 10:29am UTC](https://forum.yunohost.org/t/monitoring-email-delivery/43346/7 "2026-11-13T10:29:38Z")

</div>

Actually I’m using home assistant to monitor a few /metrics endpoints. I just want an alert (signal message in my case) when something needs looking at.
