Re: [Exim] Problem with transport_filter

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Cosmin Lichi
CC: exim-users
Subject: Re: [Exim] Problem with transport_filter
On 3 Jul 2003, Cosmin Lichi wrote:

> 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.
> Can anybody tell me what is the problem please?


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.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book