Re: [exim] normalized config format?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Heiko Schlittermann
Date:  
À: exim-users
Sujet: Re: [exim] normalized config format?
Felipe Gasper <felipe@???> (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}}}}


--
Heiko