Laura Smith via Postfix-users:
> 
> 
> 
> > They should instead read output from "postqueue -j" which provides
> > information in JSON format. JSON support was added in Postfix 3.1
> > (i.e. in 2015).
> > 
> 
> What are the minimum permissions required for postqueue ?

The postqueue command is executeable for everyone.

> postqueue run as an unprivileged user returns :
> - no output
> - 0 exit code

$ postqueue; echo $?
postqueue: fatal: usage: postqueue -f | postqueue -i queueid | postqueue -j | 
postqueue -p | postqueue -s site
69

With an empty mail queue:

$ postqueue -p; echo $?
Mail queue is empty
0

$ postqueue -j; echo $?
0

$ postqueue -f; echo $?
0

And so on.

> Both of which probably need fixing in a future update ?  If its
> meant to be run as a user with some sort of privilege it should
> be erroring out (or at least returning != 0 exit) ?

This is fixed with careful RTFM.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to