Ralf Hildebrandt via Postfix-users:
> I recently set up a new mailserver as replacement for the aging
> hardware. I compiled postfix-3.12-20260720 from scratch using my build
> script (with ldap support etc.) and now I'm seeing this warning when issuing 
> a "postfix check":
> 
> /usr/sbin/postconf: warning: ldap:/etc/postfix/laborberlin.com.cf: unused 
> parameter: result_attribute=mail
> /usr/sbin/postconf: warning: ldap:/etc/postfix/laborberlin.com.cf: unused 
> parameter: search_base=dc=laborberlin,dc=intern

Does not reproduce here, with postfix-3.12-20260720 from scratch:

    # postconf mail_version
    mail_version = 3.12-20260720

    # cat /etc/postfix/laborberlin.com.cf
    result_attribute=mail
    search_base=dc=laborberlin,dc=intern

    # postconf >/dev/null
    (no warnings)

    # postfix check
    (no warnings)

It does warn when I add a bogus setting.

    # echo foo = bar >> /etc/postfix/laborberlin.com.cf

    # postconf >/dev/null
    postconf: warning: ldap:/etc/postfix/laborberlin.com.cf: unused parameter: 
foo=bar

    # postfix check
    /usr/sbin/postconf: warning: ldap:/etc/postfix/laborberlin.com.cf: unused 
parameter: foo=bar

During the build, the postconf command generates lists with database
configuration parameters, for example, src/postconf/pcf_ldap_suffixes.h

If that file is empty, then something has been improved at your system. This is
the postconf Makefile rule:

    pcf_ldap_suffixes.h: ../global/dict_ldap.c 
            sh extract_cfg.sh -d ../global/dict_ldap.c > $@

What happens when you run

    sh extract_cfg.sh -d ../global/dict_ldap.c

in the src/postconf directory? On my system the output
begins with:

    "bind",
    "bind_dn",
    "bind_pw",
    "cache",
    "cache_expiry",
    "cache_size",
    "chase_referrals",
    "debuglevel",
    "dereference",
    "domain",

There should be 38 lines of output.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to