Re: [Exim] rewrite configuration problems

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Rene Küttner
Fecha:  
A: Thomas Kinghorn
Cc: exim-users
Asunto: Re: [Exim] rewrite configuration problems
--
On Thu, Jan 23, 2003 at 09:46:16AM +0200, Thomas Kinghorn wrote:
> How would I modify the string for that search?
>
> Any ideas would be a great help and the
> docs are a little over ny head as I am an Exim newbie.
>
> Regards,
>
> Tom Kinghorn
>


hi,

this will maybe do the trick: (untested)

*@dsearch;/usr/exim/alias-file/        ${lookup{$1}lsearch{/usr/exim/alias-file/$domain}\
                                        {$value}fail}@$domain frFs


if it does not, please tell me.

note: you need dsearch lookup compiled in your exim binary (it is not
included by default)

regards again ;-)

>
>
>
> -----Original Message-----
> From: Rene Küttner [mailto:rkuettner@netkom-sachsen.de]
> Sent: 23 January 2003 09:03
> To: Thomas Kinghorn
> Subject: Re: [Exim] rewrite configuration problems
>
>
> On Thu, Jan 23, 2003 at 07:37:39AM +0200, Thomas Kinghorn wrote:
> > Good morning.
> >
> > I have picked up an issue in the paniclog.
> >
> > I have set up an address rewriting rule, as per below:
> >
> > begin rewrite
> > *@* ${lookup{$0}partial-lsearch{/usr/exim/alias-file/$domain}{$value}fail}
> > hT
> >
> > However it is trying to rewrite all addresses.
> >
> > <paniclog snip>
> > 2003-01-23 07:36:16 18ba2B-0000W4-00 Expansion of
> > ${lookup{$0}partial-lsearch{/usr/exim/alias-file/$domain}{$value}fail}
> > failed while rewriting: failed to open /usr/exim/alias-file/sporttime.info
> > for linear search: No such file or directory
> > 2003-01-23 07:36:18 18ba2E-0000W4-00 Expansion of
> > ${lookup{$0}partial-lsearch{/usr/exim/alias-file/$domain}{$value}fail}
> > failed while rewriting: failed to open /usr/exim/alias-file/citec.net for
> > linear search: No such file or directory
> > 2003-01-23 07:36:18 18ba2E-0000W4-00 Expansion of
> > ${lookup{$0}partial-lsearch{/usr/exim/alias-file/$domain}{$value}fail}
> > failed while rewriting: failed to open /usr/exim/alias-file/compuserve.com
> > for linear search: No such file or directory
> > 2003-01-23 07:36:20 18ba2F-0000W4-00 Expansion of
> > ${lookup{$0}partial-lsearch{/usr/exim/alias-file/$domain}{$value}fail}
> > failed while rewriting: failed to open
> > /usr/exim/alias-file/SendGreatOffers.com for linear search: No such file
> or
> > directory
> > 2003-01-23 07:36:20 18ba2F-0000W4-00 Expansion of
> > ${lookup{$0}partial-lsearch{/usr/exim/alias-file/$domain}{$value}fail}
> > failed while rewriting: failed to open /usr/exim/alias-file/citec.net for
> > linear search: No such file or directory
> >
> > Please advise on how I can fix this.
> >
> > Regards,
> >
> > Tom Kinghorn
> >
> >
> > --
> >
> > ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##
> >
>
> Hi,
>
> Exim does exact what i expect for your configuration.
>
> *@* applys to all domains (and local parts respectively)
>
> but you probably want to lookup your domains in the source pattern
>
> regards
>


--

Rene Küttner                    NetKom GmbH, Administration
rkuettner@???     Gewerbepark Mockritz, 04720 Döbeln


--
[ Content of type application/pgp-signature deleted ]
--