Re: [exim] using aliase file piped command, can it work?

Top Page
Delete this message
Reply to this message
Author: Bryan Rawlins
Date:  
To: exim-users
Subject: Re: [exim] using aliase file piped command, can it work?
Andy Smith wrote:
> Hi
>
> Im trying to configure RT (request tracker ticket system) with Exim to automatically generate tickets when mail
> is sent to a given email address. The suggested configuration is to create a special entry in the system alias file
> with a piped command to an RT binary that does all the RT clever bits, this looks something like:
>
> rt-general: "|/usr/local/rt3/bin/rt-mailgate --queue general --action correspond --url http://rt3.ukgrid.net/"
>
>
>

I use MySQL for aliases and other things, but it does indeed work with exim.

Here's my router:
mysql_aliases:
        driver = redirect
        allow_fail
        allow_defer
        data            = ${lookup mysql{ SELECT dest FROM aliases \
                        WHERE email='${quote_mysql:$local_part@$domain}'
AND \
                        type="site"}}
        pipe_transport  = pipe


Transport:
pipe:
        driver = pipe
        user = mail
        group = mail


And an example entry in the DB looks like this:
abuse@??? "|php -q <path to php script>"