[clug] tool to diff postfix configurations

Leigh Finch leigh at leighfinch.net
Thu Mar 12 03:35:19 GMT 2009


Michael James wrote:
> Anyone know a diff-like tool that understands the syntax
>  of the various standard configuration files (especially postfix)?
>
> Something that ignores comments, whitespace, continuation lines,
>  order, default (un-stated) settings, etc** ?
>
> Something that answers the question,
>  "Show me the functional differences between these configurations?"
>
> TIA,
> michaelj
>
>
> ** for fairly involved values of etc.
>
>   
Hi Tia,
I would use:
postconf -n > current.txt
postconf -n  -c other_config_directory > other.txt
diff current.txt other.txt

man postconf

Cheers
Leigh


More information about the linux mailing list