On Tue, Aug 30, 2016 at 02:51:07PM -0300, Ednardo Lobo wrote:
> On 30-08-2016 11:39, Heiko Schlittermann wrote:
> > Did you try it? Setting the transport option group= to the
> > value, the file has right after creation, inherited from the directory.
>
> Do you remember my exim is running without root privileges?
>
> Therefore, exim process don't have permission for this. See you:
>
> - Driver configuration
>
> maildir:
> driver = appendfile
> maildir_format = true
> create_directory = false
> directory = DIR_BOX/$domain/$local_part
> mode = 0660
> group = 65536
>
> - Error reported by QUEUE RUNNER
>
> 2016-08-30 12:12:26 Start queue run: pid=10548
> 2016-08-30 12:12:26 1bekhb-0002jz-5c unable to set gid=65536 or uid=104
> (euid=104): local delivery to ednardo <ednardo@???>
> transport=maildir
AFAIK, non-priveledged user can do chown(2) with group=-1 (special value
meaning file group should not be altered). However, the value -1 is
represented as 65535 (not 65536!) on systems with 16-bit gid_t and
as 4294967295 on systems with 32-bit gid_t. On Linux, for example,
uid_t and gid_t are 32-bit integers. Try those values.
Does Exim accept "group = -1" in driver definition? I did not check.
--
Eugene Berdnikov