Re: [Exim] Re-write Question

Top Page
Delete this message
Reply to this message
Author: Al Fisher
Date:  
To: Philip Hazel, Kai Henningsen
CC: exim-users
Subject: Re: [Exim] Re-write Question
Philip Hazel wrote:

> That won't work. There's no connection that ensures the result of the
> regex you used for domains will be available for use in new_address. You
> might after all have used regexs for other things as well. You need
>
> new_address = ${if

match{$domain}{^(.)\\.mydomain.com\$}{$1@???}fail}
>
> and if you do that, then you can miss out the "domains" setting.
>



.. Thanks Philip & Kai. Your answers have shown me the error of my ways and
gone some way to increasing my understanding of exim.

Nigel Metheringham wrote:

> This shows an unfortunately mindset probably caused by too much
> exposure to sendmail.


.. yes I suppose it does. And worse still, it's true!


Cheers

Al