Dan Mahoney: > I've wondered this for a while, and have even suggested the day > job implement this in our own software. > > This feels like a reasonable place to ask. Is there a way, given > a new warning about compatibility_level (say you've been running > with 3_5, and you're now running 3_6), to see what changes to your > config are effectively made by enabling that level? (effectively, > to show a defaults-diff, or any commands whose behavior may not > have the same meaning under a previous version)?
Yes. The old and new defaults are available in postconf output. Not pretty but it is there. Wietse $ postconf -d | grep compatibility_level append_dot_mydomain = ${{$compatibility_level} <level {1} ? {yes} : {no}} compatibility_level = 0 lmtp_tls_fingerprint_digest = ${{$compatibility_level} <level {3.6} ? {md5} : {sha256}} mynetworks_style = ${{$compatibility_level} <level {2} ? {subnet} : {host}} relay_domains = ${{$compatibility_level} <level {2} ? {$mydestination} : {}} respectful_logging = ${{$compatibility_level} <level {3.6} ? {no} : {yes}} smtp_tls_fingerprint_digest = ${{$compatibility_level} <level {3.6} ? {md5} : {sha256}} smtpd_relay_before_recipient_restrictions = ${{$compatibility_level} <level {3.6} ? {no} : {yes}} smtpd_relay_restrictions = ${{$compatibility_level} <level {1} ? {} : {permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination}} smtpd_tls_fingerprint_digest = ${{$compatibility_level} <level {3.6} ? {md5} : {sha256}} smtputf8_enable = ${{$compatibility_level} <level {1} ? {no} : {yes}}