Re: [exim] exim command to dump config after macro expansion

Top Pagina
Delete this message
Reply to this message
Auteur: Heiko Schlittermann
Datum:  
Aan: exim-users
CC: Tim Watts
Onderwerp: Re: [exim] exim command to dump config after macro expansion
Hi,

I did some work… what about

    exim -C ./conf -bP config


to spit out something like

    # 1 "./conf"
    FOO = foobar.com
    DOMAINS = foobar.com:example.com
    CONF = /home/heiko/docker/exim/src
    # 6 "./conf"
    # 1 "/home/heiko/docker/exim/src/conf.inc"
    primary_hostname = $tod_full
    # 6 "./conf"
    dns_dnssec_ok = 1
    hide mysql_servers = <hidden>
    begin routers
        test:
            driver = dnslookup
            dnssec_require_domains = */A
            transport = smtp
            no_more
    begin transports
        smtp:
            driver = smtp


The corresponding config was

    FOO = foobar.com
    DOMAINS = FOO:example.com
    CONF = /home/heiko/docker/exim/src


    .ifdef FOO
    .include CONF/conf.inc
    .endif


    dns_dnssec_ok = 1
    hide mysql_servers = localhost/abc/xyz


    begin routers
        test:
            driver = dnslookup
            # test
            dnssec_require_domains \
                = DOMAINS
            transport = smtp
            no_more



    begin transports
        smtp:
            driver = smtp


Currently the 'hide' is not completly honoured, but I'd say if the -bP config is
limited to the admin user, we're save, aren't we? (a macro may contain a
string that is later used in a hidden option…)

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -