Re: Re[2]: [Exim] System filter and $local_part

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jochen Erwied
CC: Exim Users
Subject: Re: Re[2]: [Exim] System filter and $local_part
On Fri, 7 Jul 2000, Jochen Erwied wrote:

> > If you want to run a per-address filter, you can do so. Section 44.3
> > covers exactly this case.
>
> I did try this example. (adding reply_transport= and user=)
>
> But when I do so, Exim tries to deliver mail to '>joe@???'
> (note the angle bracket). I actually don't know where it gets this from.


The angle bracket means that the "delivery" was actually a call to an
autoreply transport to create a new message to that address.

> Here's the setup producing this strange result:
>
> gtnfilter:
>   driver = forwardfile
>   file = /root/exim/gtnfilter
>   domains = mbs.gtn.com
>   filter
>   no_check_local_user
>   no_verify
>   user = root                       # else mail from filter
>   reply_transport = address_reply   # won't work

>
> after this director comes userforward.
> gtnfilter contains this:
>
> # Exim filter
> mail to ${local_part}@???
>      reply_to joe@???
>      from postmaster@???
>      subject "MBS.GTN.COM"
>      once /root/exim/gtnwarn
>      once_repeat 7d
>      expand file /root/exim/gtn.txt


I would expect that to mail to ${local_part}@???. Was the
local part "joe"?

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.