Re: [Exim] equivilent of lsearch* on mysql/pgsql lookups?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Peter Galbavy
CC: Jason J. Horton, exim-users
Betreff: Re: [Exim] equivilent of lsearch* on mysql/pgsql lookups?
On Wed, 7 Jun 2000, Peter Galbavy wrote:

> > Maybe I should clarify my question. I use lsearch* so I can have
> "catchall"
> > entries
> > in my alias files, like so:
> > tom: tommy@???
> > jim: james@???
> > *: catchall@???
> >
> > if an email address doesnt match tom, tommy, jim or james, it gets sent to
> > the catchall address. Was wondering if there was a way to replicate this
> with
> > using pgsql queries. I know I can do something simular to what you have,
> but
> > that doesnt allow for a (for lack of a better term) wildcard match.
>
> Ah, missed that. What you then want (I think) is another director, later
> that does a select on '*' or whatever you have chosen as a wildcard, and if
> it exists in that domain, and you have got that far down the list of
> directors, the use that address...



OR: check out the "queries" option.


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