Re: AW: AW: [Exim] Problem with lookup

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Thomas Fini Hansen
Dátum:  
Címzett: exim-users
Tárgy: Re: AW: AW: [Exim] Problem with lookup
On Sat, Sep 27, 2003 at 05:30:25PM +0100, Philip Hazel wrote:
> On Fri, 26 Sep 2003, Michael Prohm wrote:
> > okay, than have I understand it correctly, but my problem now is, that he take the
> > ":file" as a part of the lookupkey:
> >
> > key="localpart@domain:file" partial=-1 affix=NULL starflags=2
>
> But that's what you specified!
>
> > > > > > require_files         = "/etc/exim/${lookup \
> > > > > >                          {${local_part}@${domain}:file} dbm*@ \
> > > > > >                          {/etc/exim/autoresp.db} {$value} {_} }"

>
> Why is :file there? I assumed that you needed it in your Exim 3 config.
> It would have been part of the key then as well. Just remove it.


In the original mail it was mentioned that the file had entries like:

localpart@domain: from="Realname" file="filename"

And I was looking at the original wondering where the extract where,
but assumed that lookup did some magic. I think this does what he
wants (not tested):

require_files         = "/etc/exim/${extract {file}{${lookup \
                         {${local_part}@${domain}} dbm*@ \
                         {/etc/exim/autoresp.db}
             {$value}}}{$value}{_}}"


--
Thomas
beast@???