postfix-tlspol 1.11.0: 当一个 MX 目标没有 A/AAAA 时, DANE 策略查找失败,导致客户端 TLS 配置出现问题
After updating/running mailcow with postfix-tlspol 1.11.0, outgoing mail to some recipient domains is deferred with: socketmap:inet:postfix-tlspol:8642:QUERYwithTLSRPT socketmap server temporary error smtp_tls_policy_maps, next-hop destination "…": policy table lookup error TLS policy lookup …: client TLS configuration problem The corresponding postfix-tlspol logs show: DNS error during DANE lookup error="DNS error during MX address lookup" Evaluating policy failed temporarily The issue seems to occur when the recipient domain publishes multiple MX records and at least one MX target has no A or AAAA address, even though another valid MX with a better preference exists and is fully resolvable. Three reproducible examples: 1. vipel.ind.br MX: 5 mail.vipel.ind.br. 999 ms44749518.msv1.invalid. mail.vipel.ind.br resolves correctly: 189.42.0.5 ms44749518.msv1.invalid has no A/AAAA. postfix-tlspol repeatedly reports: DNS error during DANE lookup domain=vipel.ind.br error="DNS error during MX address lookup" The policy evaluation then fails temporarily and Postfix defers the message with DSN 4.7.5. 2. bertco.com.br The domain has normal working Google Workspace MX records: 1 aspmx.l.google.com. 5 alt1.aspmx.l.google.com. 5 alt2.aspmx.l.google.com. 10 alt3.aspmx.l.google.com. 10 alt4.aspmx.l.google.com. All those hosts resolve correctly. However, it also publishes: 15 etuobsol4rmswlobummm6h6lw7nodmv6hypjira6uo4ab3jvowwq.mx-verification.google.com. That verification MX has no A/AAAA. postfix-tlspol reports the same: DNS error during DANE lookup error="DNS error during MX address lookup" Postfix then returns: client TLS configuration problem 3. forbo-siegling.com.br MX: 0 forbosiegling-com-br01c.mail.protection.outlook.com. 10 mail.forbo-siegling.com.br. The Exchange Online MX resolves correctly to IPv4 and IPv6 addresses. mail.forbo-siegling.com.br has no A or AAAA. Again postfix-tlspol reports: DNS error during DANE lookup error="DNS error …"
内容来源: mailcow/mailcow-dockerized