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:[EMAIL PROTECTED]'
AND \
type="site"}}
pipe_transport = pipe
Transport:
pipe:
driver = pipe
user = mail
group = mail
And an example entry in the DB looks like this:
[EMAIL PROTECTED] "|php -q <path to php script>"
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/