Re: [exim] aliases file include syntax

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: d.jones
CC: Exim Users Mailing List
Temat: Re: [exim] aliases file include syntax
On Mon, 23 May 2005, Peter Bowyer wrote:
> On 23/05/05, Donovan Jones <d.jones@???> wrote:
> >
> > Is it possible to include an alias file where the included file includes
> > the local part not just the alias addresses?
>
> I don't think so, but you could have a second router which references
> the second file, and 'passes' if the file isn't there. Not quite as
> flexible, but it might do what you want.


Alternatively, you can change the system aliases router so that it looks
up the local part in two files:

  data = ${lookup  {$local_part} lsearch {SYSTEM_ALIASES_FILE} \
             {$value} \
             {${lookup {$local_part} lsearch {OTHER_ALIASES_FILE} \
                  {$value} \
                  {} }} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}