Re: [exim] The appendfile transport: UID and GID of the deli…

Góra strony
Delete this message
Reply to this message
Autor: Ednardo Lobo
Data:  
Dla: exim-users
Temat: Re: [exim] The appendfile transport: UID and GID of the delivery message file
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
<ednardo@???> transport=maildir
2016-08-30 16:08:28 1beoNK-0003qs-PB failed to read delivery status for
ednardo@??? 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