On 30-08-2016 15:28, Evgeniy Berdnikov wrote:
 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.

I tried:

maildir:
     driver = appendfile
     maildir_format = true
     create_directory = false
     directory = DIR_BOX/$domain/$local_part
     mode = 0660
     uid = -1
     group = -1

Result:

2016-08-30 16:08:28 1beoNK-0003qs-PB unable to set gid=4294967295 or uid=4294967295 (euid=0): local delivery to ednardo <[email protected]> transport=maildir 2016-08-30 16:08:28 1beoNK-0003qs-PB failed to read delivery status for [email protected] from delivery subprocess 2016-08-30 16:08:29 1beoNK-0003qs-PB appendfile transport process returned non-zero status 0x0100: exit code 1

It seems exim keep trying modify uid and gid of the created file. Why?


--
    Ednardo Lobo

    www.lobo.eti.br

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to