Manuel Mely:
> Hi,
> 
> I'm trying to run mailq command from a user account that is jailed. I'm ge
>-tting this permission error:
> 
> u...@host:~$ mailq
> postqueue: fatal: Connect to the Postfix showq service: Permission denied
> 
> I've mounted /var/spool/postfix directory on /home/chrooted/var/spool/post
>-fix   and i'm getting the same error.

You have incorrect file or directory permissions (another possibility
is that the jail does not allow some operation, but that seems
unlikely, given what I understand of how how jails work).

The postqueue command, as well as the entire /var/spool/postfix
directory tree, requires the correct file/directory permissions
(in particular, the showq socket is in a directpory that requires
group access permission by a setgid program).

The correct file/directory permissions are set with "postfix
set-permissions". If you copy things around by hand, then the
permissions are likely to be incorrect.

Needless to say, these permissions need to be correct from the
point of view of the jailed user.

        Wietse

Reply via email to