Skip to content

Commit 04f1cdc

Browse files
committed
tlsrpt: export mx list as mx_host_pattern attributes as well
1 parent f5b48d7 commit 04f1cdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

postfix_mta_sts_resolver/responder.py

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ async def process_request(self, raw_req):
229229
resp += " servername=hostname"
230230
if zone_cfg.tlsrpt:
231231
resp += " policy_type=sts policy_domain=" + domain
232+
resp += " " + " ".join("mx_host_pattern=" + mx for mx in cached.pol_body['mx'])
232233
return netstring.encode(resp.encode('utf-8'))
233234
else:
234235
return netstring.encode(b'NOTFOUND ')

0 commit comments

Comments
 (0)