commit 2817edcae0ee214e8767f74be1beeb5dec73e26f from: Martijn van Duren date: Wed Mar 30 15:57:57 2022 UTC osmtpd_ltok_skip_domain has obs-domain, which gives the wrong result. Use the appropriate osmtpd_ltok_skip_sig_d_tag_value commit - bf67701d74325549376e0acb32471f8bf6443a8e commit + 2817edcae0ee214e8767f74be1beeb5dec73e26f blob - 56769359272adef58a3724dacd44d88f83a54531 blob + 0dfd9a295c635a4809894cc834ccf5cd305bc391 --- main.c +++ main.c @@ -709,7 +709,7 @@ dkim_signature_parse_d(struct signature *sig, const ch dkim_signature_state(sig, DKIM_PERMERROR, "Duplicate d tag"); return; } - if (osmtpd_ltok_skip_domain(start, 0) != end || + if (osmtpd_ltok_skip_sig_d_tag_value(start, 0) != end || (size_t)(end - start) >= sizeof(sig->d)) { dkim_signature_state(sig, DKIM_PERMERROR, "Invalid d tag"); return;