On 16/01/2026 16:18, Wietse Venema via Postfix-users wrote:
Wietse Venema via Postfix-users:
Could you use "postconf -x"?
This feature is available with Postfix 2.10 and later.
And then,
postconf -x proxy_read_maps (as of 20260111, expands 103 parameters)
postconf -x proxy_write_maps (as of 20260111, expands 4 parameters)
give an almost complete view of main.cf settings, while
postxonf -xP '*/*/proxy_read_maps'
postconf -xP '*/*/proxy_write_maps'
do the same for any overrides in master.cf.
That leaves the hard part of recursively parsing unionmap:{...}
pipemap:{...}, and /file/name.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
I'lll take a look at postconf -x
The script I posted should be able to handle the file recursion. I may
have underestimated the complexity of pipemap and unionmap, but with a
straight forward pattern matching as far as I can see it doesn't require
anything special. I wasn't aiming for full interpretation, just finding
things that look like maps in parameter values and recursively in
included files.
If you have an example of a complex one, I'll give it a try.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]