Re: permission denied while using pipe in master.cf Jordi Moles wrote:
> Hi,
>
> the shellscript part was a different attempt to make it work, as the 
> perl code always says "0 messages", when it's not true. I thought it 
> was something about permissions, and the shellscript part just 
> confirmed that. Alls the perl vars, including $mailbox contain the 
> right value.

Please provide informations instead of literature. I am happy that 
everything contains the right value for you, but this brings us nowhere. 
so I'll repeat myself.

- print the value of $mailbox (to logs or whatever) so that you see what 
it is.
- ls -la /mnt/gluster/$mailbox/ ... etc
.

and _show_ the results. and while I am in,

- what system are you running? is selinux/apparamor/... enabled?


>
> I've tried different owners for the .pl file and all kind of 
> permissions, including suid, and perl always says 0 and shell always 
> says permission denied.
>
> What about permissions? is vmail user ok for the filter? what 
> combination of permissions i have to set up to make it work?

There are many different setups out there. if the whole mailstore 
belongs to vmail, then under a standard unix, vmail can do everything in 
the mailstore.


