how to change file permissions in postfix ?

Posted by Zdanozdan on Stack Overflow See other posts from Stack Overflow or by Zdanozdan
Published on 2009-10-11T17:48:17Z Indexed on 2010/03/08 3:02 UTC
Read the original article Hit count: 308

Filed under:
|

Hi,

In the postfix main.cf I have configured service to invoke external php script.

smtp      inet  n       -       -       -       -       smtpd -o content_filter=myservice:www-data


myservice    unix  -       n       n       -       1      pipe
flags=Rq user=me null_sender=
argv=/home/me/my_script.php

so far so good, my_script.php is executed. It creates the file my_file.txt in home dir. However I can only manage

-rw------- 1 me   www-data     16 2009-10-11 19:35 my_file.txt

How do I add 'r' permissions for www-data group ?

© Stack Overflow or respective owner

Related posts about postfix

Related posts about email