Re: [Exim] piping problem

Top Page
Delete this message
Reply to this message
Author: Kirill Miazine
Date:  
To: Marc Perkel
CC: exim-users
Subject: Re: [Exim] piping problem
* Marc Perkel <marc@???> [20011210 07:45]:
> This pipe isn't working for some reason. Other pipe programs seem to
> work. It's being run from the /etc/aliases file.
>
> test1234: "| /bin/cat >> /var/mail/test1234"
>
> The results are:
>
> This message was created automatically by mail delivery software (Exim).
>
> A message that you sent could not be delivered to one or more of its
> recipients. This is a permanent error. The following address(es) failed:
>
>   pipe to | /bin/cat >> /var/mail/test1234
>     generated by test1234@???
>     Child process of address_pipe transport returned 1 from command:
>     /bin/cat

>
> What am I doing wrong?


Because '>>' is typical shell-stuff. Cat looks for file named '>>' and
fails to find it and exits with 1. Pipes started by Exim are not run by
the shell unless you tell Exim to do so. RTFM for more.

--
Kirill