diff --git a/checks/tasks/mail.py b/checks/tasks/mail.py index bea027c7a..6a508f22a 100644 --- a/checks/tasks/mail.py +++ b/checks/tasks/mail.py @@ -232,8 +232,14 @@ def callback(results, addr, category): tlsrpt_available = result.get("available") tlsrpt_record = result.get("record") tlsrpt_score = result.get("score") - # TODO: Pass results to mtauth and subtests - print("This is the callback for TLS-RPT.") + + # Pass results to mtauth and subtests + mtauth.tlsrpt_available = tlsrpt_available + mtauth.tlsrpt_record = tlsrpt_record + mtauth.tlsrpt_score = tlsrpt_score + if spf_available: + subtests["tlsprt"].result_good(tlsrpt_record) + if skip_dkim_for_non_sending_domain(mtauth): mtauth.dkim_score = scoring.MAIL_AUTH_DKIM_PASS