Re: rewriting rules....

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Chris Thompson
Date:  
À: Nigel Cass
CC: exim-users
Sujet: Re: rewriting rules....
Nigel Cass writes:
>
> I'm currently evaluating exim explicitly because of it's address
> rewriting facilities.
>
> What I need to know is :
>
> Is each rule completely stand alone ??
>
> Or is it possible to specify rules that are only evaluated if the
> previous rule was evaluated and ended in a rewrite of whatever kind.


Normally the rewriting rules are applied in turn, in the order they occur
in the configuration file. Not in 1.62, but in the current testing release
and therefore to be presumed likely to be in 1.70, is a "q" flag that will
cause rewriting for a particular header to stop immediately if that rule
has been applied. That is approximately the opposite of what you are asking
for...

> the problem is that I will have several rules with the same 1st part
> but each would be doing a lookup from a different dbm file after I
> have first stripped out the *.humber.ac.uk to just humber.ac.uk.


How exactly does this differ from the example in doc/spec.txt ? i.e.

  *@*.hitch.book.fict  $1@???
  *@hitch.book.fict    ${lookup{$1}dbm{/etc/realnames}\
                       {$value}fail}@??? bcfrF


Is it that the dbm lookup needs to depend on the host part stripped off
the front of "humber.ac.uk", as well as the local part?

Chris Thompson               Cambridge University Computing Service,
Email: cet1@???    New Museums Site, Cambridge CB2 3QG,
Phone: +44 1223 334715       United Kingdom.