Advice for unfunctional postfix plugin

A little tip about the postfix plugin.
If you have a Debian Bullseye server, where the postfix plugin does not work, so no mailq graphic is displayed.
Then please check if there is an entry
authorized_mailq_users = nagios, icinga, netdata
in /etc/postfix/

Hi, @DarkDau. Thanks for the info! Consider making a PR with postfix readme update :+1:

So postfix doesn’t care about /etc/group entries.
it decline everybody who is not expliciet declared in

As non native English speaker. What is PR? Problem Report or what?

It is Pull Request.

See Pull requests · netdata/netdata · GitHub

I will not make a Pull request.
I fear that would more confuse than help.

So I describe the issue here more in detail.

On the “old” Debian Buster server everything worked out of the box. mailq works.
(postfix 3.4.14)
On Debian Bullseye not. (postfix 3.5.13)

My attempts to make the mailq visible led to nothing. Until I came to the proven method to run the plugin as netdata user.

The first result was already visible without the plugin

su -s /bin/bash netdata
/usr/sbin/postqueue -p
postqueue: fatal: User netdata(115) is not allowed to view the mail queue
Clear case, I thought netdata is not in the group of postfix.

netdata added, retested as netdata… unsuccessful.

The problem is, with Bullseye the rights for other users are defined by Postfix in the

authorized_mailq_users = nagios, icinga, netdata

So one could make a simple test if netdata is already there:

~#grep authorized_mailq_users /etc/postfix/

it should contain netdata
To fix add netdata in and restart postfix

service postfix restart