On Tue, Oct 26, 2021 at 08:50:38PM -0400, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:
> On Tue, Oct 26, 2021 at 08:41:20PM -0400, Viktor Dukhovni wrote: > > > With `bash` inline /dev/fd/ files: > > > > $ diff -U0 <(postconf -x -o compatibility_level=2) <(postconf -x -o > > compatibility_level=3.6) > > A handly abstraction to a couple function definitions would be: > > compatconf() { > postconf -x -o "compatibility_level=$1" | > egrep -v '^process_id =' > } > compatdiff() { > diff -U0 <(compatconf "$1") <(compatconf "$2") | > sed -ne 's/^@.*//; /^$/,$p' > } > > Which then gives: > > $ compatdiff 2 3.6 > > -compatibility_level = 2 > +compatibility_level = 3.6 > > -lmtp_tls_fingerprint_digest = md5 > +lmtp_tls_fingerprint_digest = sha256 > > -smtp_tls_fingerprint_digest = md5 > +smtp_tls_fingerprint_digest = sha256 > > -smtpd_relay_before_recipient_restrictions = no > +smtpd_relay_before_recipient_restrictions = yes > > -smtpd_tls_fingerprint_digest = md5 > +smtpd_tls_fingerprint_digest = sha256 > > -tlsproxy_client_fingerprint_digest = md5 > +tlsproxy_client_fingerprint_digest = sha256 > > -tlsproxy_tls_fingerprint_digest = md5 > +tlsproxy_tls_fingerprint_digest = sha256 > > -- > Viktor. Very nice.