major version up Postfix 3.11.
Postfix 3.7 already reached its end-of-life on 06 Mar 2026. Let's upgrade to the latest stable version.
Here is the diff of the default configuration by postconf -d. Significant changes are :
- smtpd_forbid_bare_newline : no -> normalize
- smtpd_forbid_unauth_pipelining : no -> yes
-
tls_medium_cipherlist :
!SEED:!IDEA:!3DES:!RC2:!RC4:!RC5:!kDH:!kECDH:!aDSS:!MD5are added.
See below for the full list.
$ diff -u ~/postconf-3.7.20.default.txt ~/postconf-3.11.5.default.txt |grep '^[\+\-]'
-address_verify_map = btree:$data_directory/verify_cache
+address_verify_map = $default_cache_db_type:$data_directory/verify_cache
-alias_database = hash:/etc/aliases
-alias_maps = hash:/etc/aliases, nis:mail.aliases
+alias_database = $default_database_type:/etc/aliases
+alias_maps = $default_database_type:/etc/aliases, nis:mail.aliases
+allow_srv_lookup_fallback = no
+default_cache_db_type = btree
+force_mime_input_conversion = no
+full_name_encoding_charset = utf-8
-import_environment = MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C POSTLOG_SERVICE POSTLOG_HOSTNAME
+ignore_srv_lookup_error = no
+import_environment = MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C POSTLOG_SERVICE POSTLOG_HOSTNAME XDG_RUNTIME_DIR
+lmtp_log_tls_feature_status = yes
+lmtp_requiretls_policy = opportunistic
+lmtp_sasl_password_result_delimiter = :
+lmtp_tls_enable_rpk = no
+lmtp_tls_enforce_sts_mx_patterns = yes
+lmtp_tlsrpt_enable = no
+lmtp_tlsrpt_skip_reused_handshakes = no
+lmtp_tlsrpt_socket_name =
-mail_release_date = 20260218
+mail_release_date = 20260706
-mail_version = 3.7.20
+mail_version = 3.11.5
+maillog_file_permissions = 0600
+non_bdb_custom_mapping =
+non_bdb_migration_allow_root_prefixes = /etc /usr/local/etc
+non_bdb_migration_allow_user_prefixes = $data_directory /var/lib/mailman /var/lib/mailman3
+non_bdb_migration_level = disable
+non_bdb_migration_log_redirect = yes
+non_bdb_migration_service_name = nbdb_reindex
+non_empty_end_of_header_action = fix_quietly
-postscreen_cache_map = btree:$data_directory/postscreen_cache
+postscreen_cache_map = $default_cache_db_type:$data_directory/postscreen_cache
-process_id = 184503
+process_id = 2973645
-proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $alias_maps $smtpd_client_restrictions $smtpd_helo_restrictions $smtpd_sender_restrictions $smtpd_relay_restrictions $smtpd_recipient_restrictions $address_verify_sender_dependent_default_transport_maps $address_verify_sender_dependent_relayhost_maps $address_verify_transport_maps $fallback_transport_maps $lmtp_discard_lhlo_keyword_address_maps $lmtp_pix_workaround_maps $lmtp_sasl_password_maps $lmtp_tls_policy_maps $mailbox_command_maps $mailbox_transport_maps $postscreen_discard_ehlo_keyword_address_maps $rbl_reply_maps $sender_dependent_default_transport_maps $sender_dependent_relayhost_maps $smtp_discard_ehlo_keyword_address_maps $smtp_pix_workaround_maps $smtp_sasl_password_maps $smtp_tls_policy_maps $smtpd_discard_ehlo_keyword_address_maps $smtpd_milter_maps $virtual_gid_maps $virtual_uid_maps $local_login_sender_maps $postscreen_reject_footer_maps $smtpd_reject_footer_maps $tls_server_sni_maps $tlsproxy_client_policy_maps $default_delivery_status_filter $lmtp_delivery_status_filter $lmtp_dns_reply_filter $lmtp_reply_filter $local_delivery_status_filter $pipe_delivery_status_filter $postscreen_command_filter $smtp_delivery_status_filter $smtp_dns_reply_filter $smtp_reply_filter $smtpd_command_filter $smtpd_dns_reply_filter $virtual_delivery_status_filter $body_checks $header_checks $lmtp_body_checks $lmtp_header_checks $lmtp_mime_header_checks $lmtp_nested_header_checks $milter_header_checks $mime_header_checks $nested_header_checks $smtp_body_checks $smtp_header_checks $smtp_mime_header_checks $smtp_nested_header_checks
+proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $alias_maps $smtpd_client_restrictions $smtpd_helo_restrictions $smtpd_sender_restrictions $smtpd_relay_restrictions $smtpd_recipient_restrictions $address_verify_sender_dependent_default_transport_maps $address_verify_sender_dependent_relayhost_maps $address_verify_transport_maps $fallback_transport_maps $lmtp_discard_lhlo_keyword_address_maps $lmtp_pix_workaround_maps $lmtp_sasl_password_maps $lmtp_tls_policy_maps $mailbox_command_maps $mailbox_transport_maps $postscreen_discard_ehlo_keyword_address_maps $rbl_reply_maps $sender_dependent_default_transport_maps $sender_dependent_relayhost_maps $smtp_discard_ehlo_keyword_address_maps $smtp_pix_workaround_maps $smtp_sasl_password_maps $smtp_tls_policy_maps $smtpd_discard_ehlo_keyword_address_maps $smtpd_milter_maps $virtual_gid_maps $virtual_uid_maps $local_login_sender_maps $postscreen_reject_footer_maps $smtpd_reject_footer_maps $tls_server_sni_maps $tlsproxy_client_policy_maps $default_delivery_status_filter $lmtp_delivery_status_filter $lmtp_dns_reply_filter $lmtp_reply_filter $local_delivery_status_filter $pipe_delivery_status_filter $postscreen_command_filter $smtp_delivery_status_filter $smtp_dns_reply_filter $smtp_reply_filter $smtpd_command_filter $smtpd_dns_reply_filter $virtual_delivery_status_filter $body_checks $header_checks $lmtp_body_checks $lmtp_header_checks $lmtp_mime_header_checks $lmtp_nested_header_checks $milter_header_checks $mime_header_checks $nested_header_checks $smtp_body_checks $smtp_header_checks $smtp_mime_header_checks $smtp_nested_header_checks $smtpd_reject_filter_maps $debug_peer_list $smtpd_etrn_restrictions $fast_flush_domains $authorized_flush_users $lmtp_connection_cache_destinations $local_header_rewrite_clients $masquerade_exceptions $postscreen_access_list $postscreen_allowlist_interfaces $postscreen_forbidden_commands $qmqpd_authorized_clients $authorized_mailq_users $smtp_connection_cache_destinations $smtpd_log_access_permit_actions $smtpd_forbidden_commands $smtpd_client_event_limit_exceptions $smtpd_sasl_exceptions_networks $smtpd_sasl_mechanism_filter $smtp_requiretls_policy $smtp_sasl_mechanism_filter $authorized_submit_users $smtpd_authorized_verp_clients $smtpd_authorized_xclient_hosts $smtpd_authorized_xforward_hosts
+relocated_prefix_enable = yes
+requiretls_enable = yes
+requiretls_esmtp_header = yes
+requiretls_redact_dsn = yes
-service_name =
+service_name = amnesiac
+smtp_log_tls_feature_status = yes
+smtp_requiretls_policy = inline:{{${domain_to_ascii{$mydomain}}=opportunistic}, {.${domain_to_ascii{$mydomain}}=opportunistic}, {localhost=opportunistic}}, cidr:{{0.0.0.0/0 opportunistic}, {::/0 opportunistic}}, enforce
+smtp_sasl_password_result_delimiter = :
+smtp_tls_enable_rpk = no
+smtp_tls_enforce_sts_mx_patterns = yes
-smtp_tls_security_level =
+smtp_tls_security_level = ${{$compatibility_level} <level {3.11} ? {} : {may}}
+smtp_tlsrpt_enable = no
+smtp_tlsrpt_skip_reused_handshakes = no
+smtp_tlsrpt_socket_name =
+smtpd_client_ipv4_prefix_length = 32
+smtpd_client_ipv6_prefix_length = 84
-smtpd_forbid_bare_newline = no
+smtpd_forbid_bare_newline = normalize
-smtpd_forbid_unauth_pipelining = no
+smtpd_forbid_unauth_pipelining = yes
+smtpd_hide_client_session = no
+smtpd_reject_filter_maps =
+smtpd_tls_enable_rpk = no
+socketmap_max_reply_size = 100000
-tls_eecdh_auto_curves = X25519 X448 prime256v1 secp521r1 secp384r1
+tls_eecdh_auto_curves = ?X25519MLKEM768:DEFAULT
-tls_export_cipherlist = aNULL:-aNULL:HIGH:MEDIUM:LOW:EXPORT:+RC4:@STRENGTH
+tls_export_cipherlist =
-tls_high_cipherlist = aNULL:-aNULL:HIGH:@STRENGTH
-tls_legacy_public_key_fingerprints = no
-tls_low_cipherlist = aNULL:-aNULL:HIGH:MEDIUM:LOW:+RC4:@STRENGTH
-tls_medium_cipherlist = aNULL:-aNULL:HIGH:MEDIUM:+RC4:@STRENGTH
-tls_null_cipherlist = eNULL:!aNULL
+tls_ffdhe_auto_groups =
+tls_high_cipherlist = aNULL:-aNULL:HIGH:!SEED:!IDEA:!3DES:!RC2:!RC4:!RC5:!kDH:!kECDH:!aDSS:!MD5:@STRENGTH
+tls_low_cipherlist =
+tls_medium_cipherlist = aNULL:-aNULL:HIGH:MEDIUM:!SEED:!IDEA:!3DES:!RC2:!RC4:!RC5:!kDH:!kECDH:!aDSS:!MD5:+RC4:@STRENGTH
+tls_null_cipherlist = eNULL:!kDH:!kECDH:!aDSS:!MD5:!aNULL
+tls_required_enable = yes
+tlsproxy_tls_enable_rpk = $smtpd_tls_enable_rpk
+use_srv_lookup =