Re: [Exim] Problem with transport_filter

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Lichi Cosmin
Date:  
À: exim-users
Sujet: Re: [Exim] Problem with transport_filter
> local_delivery:
> driver = append_file
> file = var/mail/$local_part
> .... (delivery date, envelope add)
> transport_filter = /usr/local/test
>
> where test is a simple program that
> reads the input and write it to output.
>
> When I send a mail from root to one user
> it\'s not working...
> The error message is:
> \"Broken pipe: error while writing to /var/mail/user\"
> But my program \"test\" is not executed (it writes
> a debug message in a file, when is executed).
> When I send a mail from root to root is working
> without any problem.



> Almost certainly a permissions problem. Use exim -d to see what is going
> on - it will tell you what user it is running things as. My guess is
> that it is running the delivery (and hence the transport filter) as a
> user that doesn't have permission to write to the file.


    I run exim with -d, and the things are the same...
exim is runnig the delivery as the user who receive
the mail, so it has permission to write to the file.
Problem is that exim return  a error when it has to
delivery mail to a non-root user.
 The program "test" have 777 mode, so any user
can run it.