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

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-users
Temat: Re: [exim] The appendfile transport: UID and GID of the delivery message file
Ednardo Lobo <ednardo@???> (Di 30 Aug 2016 21:43:33 CEST):

> 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: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?


Because it's designed that way. You may try using Linux Capabilities
(CAP_CHOWN), as a work around.

And I do not see any reason, why -1 shouldn't work.
According to the comments in appendfile.c the transport w/o setuid is
(or was) expected. Probably needs further investigation.

    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -