Re: [Exim] system filter pipe -- how?

Top Page
Delete this message
Reply to this message
Author: Nigel Wade
Date:  
To: Rory Campbell-Lange
CC: Exim Users
Subject: Re: [Exim] system filter pipe -- how?
Rory Campbell-Lange wrote:
> I'm having trouble understanding how the system filter pipe command
> works. I use pipes in other filter and also pipe transports -- I can't
> work out how to make this work though! (No example in the docs that I
> could find).
>
> # main
> system_filter = /etc/exim4/sysfilter
> system_filter_user = 8
> system_filter_group = 8
> system_filter_pipe_transport = system_pipe_transport
>
> # transport
> system_pipe_transport:
>         driver = pipe
>         command = /root/bin/exim4_postgres_insert.pl
>         ignore_status
>         return_fail_output = false
>         return_output = false

>
> # filter file pipe line
> pipe "<cmd> arg1 arg2"
>
> Rory
>
> p.s. Any cool way of sending header info to the database using a
> persistent connection to postgres 7.4.x?
>




The system_filter_pipe_transport defines which transport is to be used when
a pipe command appears in the system filter. The command to be used is
specified in the system filter e.g.

unseen noerror pipe "/etc/exim/sophos_update"

in the system_filter will pipe the message to the command
"/etc/exim/sophos_update" in the system_filter_pipe_transport.


At least, that's my understanding of how it works...

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555