[prev in list] [next in list] [prev in thread] [next in thread]
List: exim-users
Subject: Re: [exim] normalized config format?
From: Felipe Gasper via Exim-users <exim-users () exim ! org>
Date: 2021-04-06 16:00:47
Message-ID: 60A14773-4708-4865-9BCF-31A9892BB8EA () felipegasper ! com
[Download RAW message or body]
> On Apr 5, 2021, at 5:43 PM, Heiko Schlittermann via Exim-users \
> <exim-users@exim.org> wrote:
> Felipe Gasper <felipe@felipegasper.com> (Mo 05 Apr 2021 22:46:31 CEST):
> >
> >
> > On another note, I've noted via the same parse that this in exim.conf:
> >
> > -----
> > router_home_directory = \
> > ${extract{5}{::}{${lookup{${lookup{$domain_data}lsearch{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}
> >
> > -----
> >
> > … gets parsed to this:
> >
> > -------
> > router_home_directory = ${extract{5}{::}{${lookup \
> > passwd{${lookup{$domain_data}lsearch{/etc/userdomains}{$value}}}{$value}}}}
> >
> > -------
> >
> > ^^ Note the conversion of the first "lookup" to a "lookup passwd".
>
> Sure that you didn't confuse something.
>
> Input /tmp/exim4.conf
>
> begin routers
> test:
> driver = redirect
> file = .forward
> router_home_directory = \
> ${extract{5}{::}{${lookup{${lookup{$domain_data}lsearch{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}
>
>
> Output of `exim -C /tmp/exim4.conf -bP config`:
>
> # Exim Configuration (4.94-37-g062b77ca8)
> # 1 "/tmp/exim4.conf"
>
> begin routers
>
> test:
> driver = redirect
> file = .forward
> router_home_directory = \
> ${extract{5}{::}{${lookup{${lookup{$domain_data}lsearch{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}
>
Right you are … we have an internal magic-rewriter thingie that I only just \
discovered.
Yay.
Thank you!
cheers,
-Felipe
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic