From 398912c8b23f1294d558579daa794ccd1f488181 Mon Sep 17 00:00:00 2001 From: Uwe Kamper Date: Mon, 12 Feb 2024 15:57:52 +0100 Subject: [PATCH] actually save the tlsrpt results to database #881 --- checks/tasks/mail.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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