28.02.24, 19:09 +0100, John Levine via Postfix-users:

> Here's another question that might be answered in the documentation
> but I can't find it.  If I have a file delivery like this in
> the /etc/aliases file
> 
> foo: /a/b/somefile
> 
> what userid writes to the file?  postfix? nobody?
> 
> I realize that for user mailboxes it's the user, but
> in this case, there's no user, just the file.  TIA.
man 5 aliases:

>        /file/name
>               Mail  is  appended  to  /file/name. For details on how a
>               file is written see the sections "EXTERNAL  FILE  DELIV‐
>               ERY"  and  "DELIVERY  RIGHTS" in the local(8) documenta‐
>               tion.  Delivery is not limited to  regular  files.   For
>               example,  to  dispose  of  unwanted  mail, deflect it to
>               /dev/null.

man 8 local:

> DELIVERY RIGHTS
>        Deliveries to external files and  external  commands  are  made
>        with  the  rights of the receiving user on whose behalf the de‐
>        livery is made.  In the absence of a user context, the local(8)
>        daemon uses the owner rights of the  :include:  file  or  alias
>        database.   When those files are owned by the superuser, deliv‐
>        ery is made with the rights specified  with  the  default_privs
>        configuration parameter.

-- 
Regards
  mks

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to