]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.11-20250924
authorWietse Z Venema <wietse@porcupine.org>
Wed, 24 Sep 2025 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <ietf-dane@dukhovni.org>
Fri, 26 Sep 2025 06:04:41 +0000 (16:04 +1000)
postfix/HISTORY
postfix/src/global/mail_version.h
postfix/src/tls/tlsrpt_wrapper.c

index bdf2ebc23e22a5225ecebed263ad74be8ba2a202..1aafee60ebe6b0af7862a5edac1e3804da62f08f 100644 (file)
@@ -29633,7 +29633,10 @@ Apologies for any names omitted.
        the stock main.cf file. Problem diagnosed by Eray Aslan.
        File: conf/main.cf.
 
-20250920
+20240924
 
-       Added back a hunk of patch 20250911 that had somehow gone
-       missing. File: smtp/smtp.h.
+       TLSRPT Workaround: when policies[*].policy.policy-type is
+       "no-policy-found", report the TLSRPT policy domain name as
+       the policies[*].policy.policy-domain value. This ignores
+       that TLSA policies must be reported with different policy-domain
+       values than STS policies. File: tls/tlsrpt_wrapper.c.
index a6b120a5f07da70e6f1cfc81a71f75f593d0acc5..18d00303c3c65c9e958292bead5fd6f82a5c6363 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20250920"
+#define MAIL_RELEASE_DATE      "20250924"
 #define MAIL_VERSION_NUMBER    "3.11"
 
 #ifdef SNAPSHOT
index 99f6f0489d490506f74f8147c93eeef3ef27ce78..3feca68bf21274ef20ff0eb9c98c185e89806ea5 100644 (file)
 /*     policies[].policy.policy-string[]. Ignored if the tls_policy_type
 /*     value is TLSRPT_NO_POLICY_FOUND.
 /* .IP tls_policy_domain (may be null)
-/*     policies[].policy.policy-domain.
+/*     policies[].policy.policy-domain. If null, this defaults to the
+/*     TLSRPT policy domain.
 /* .IP mx_host_patterns (may be null)
 /*     policies[].policy.mx-host[]. Ignored if the tls_policy_type
 /*     value is TLSRPT_NO_POLICY_FOUND.
@@ -403,10 +404,12 @@ void    trw_set_tls_policy(TLSRPT_WRAPPER *trw,
                 PSTR_OR_NULL(mx_host_patterns));
 
     trw->tls_policy_type = tls_policy_type;
+    if (tls_policy_domain == 0)
+       tls_policy_domain = trw->rpt_policy_domain;
     MYFREE_IF_SET_AND_COPY(trw->tls_policy_domain, tls_policy_domain);
     if (tls_policy_type == TLSRPT_NO_POLICY_FOUND) {
        ARGV_FREE_IF_SET_AND_CLEAR(trw->tls_policy_strings);
-       ARGV_FREE_IF_SET_AND_CLEAR(trw->tls_policy_strings);
+       ARGV_FREE_IF_SET_AND_CLEAR(trw->mx_host_patterns);
     } else {
        ARGV_FREE_IF_SET_AND_COPY(trw->tls_policy_strings, tls_policy_strings);
        ARGV_FREE_IF_SET_AND_COPY(trw->mx_host_patterns, mx_host_patterns);