From 1709de93ef7c81759802c6b7b796175483740479 Mon Sep 17 00:00:00 2001 From: Son Date: Thu, 14 Apr 2022 09:28:26 +0200 Subject: [PATCH] add link to the anti phishing page --- app/handler/dmarc.py | 7 +++++-- .../emails/transactional/message-quarantine-dmarc.html | 4 ++-- .../transactional/message-quarantine-dmarc.txt.jinja2 | 5 ++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/handler/dmarc.py b/app/handler/dmarc.py index 75633000..2126065c 100644 --- a/app/handler/dmarc.py +++ b/app/handler/dmarc.py @@ -41,10 +41,13 @@ def apply_dmarc_policy_for_forward_phase( ) changed_msg = add_header( msg, - f"""This email failed anti-phishing checks when it was received by SimpleLogin, be careful with its content.""", + f"""This email failed anti-phishing checks when it was received by SimpleLogin, be careful with its content. +More info on https://simplelogin.io/docs/getting-started/anti-phishing/ + """, f"""

- This email failed anti-phishing checks when it was received by SimpleLogin, be careful with its content. + This email failed anti-phishing checks when it was received by SimpleLogin, be careful with its content. + More info on anti-phishing measure

""", ) diff --git a/templates/emails/transactional/message-quarantine-dmarc.html b/templates/emails/transactional/message-quarantine-dmarc.html index 2953db12..ad96152d 100644 --- a/templates/emails/transactional/message-quarantine-dmarc.html +++ b/templates/emails/transactional/message-quarantine-dmarc.html @@ -8,8 +8,8 @@ {% endcall %} {% call text() %} - An email from {{ from_header }} to {{ alias.email }} is put into Quarantine as it fails DMARC check. - DMARC is an email authentication protocol designed for detecting phishing. + An email from {{ from_header }} to {{ alias.email }} is put into Quarantine as it fails + anti-phishing measure check. {% endcall %} {{ render_button("View the original email", refused_email_url) }} diff --git a/templates/emails/transactional/message-quarantine-dmarc.txt.jinja2 b/templates/emails/transactional/message-quarantine-dmarc.txt.jinja2 index 96b540d9..5b917c1f 100644 --- a/templates/emails/transactional/message-quarantine-dmarc.txt.jinja2 +++ b/templates/emails/transactional/message-quarantine-dmarc.txt.jinja2 @@ -1,8 +1,11 @@ {% extends "base.txt.jinja2" %} {% block content %} - An email from {{ from_header }} to {{ alias.email }} is put into Quarantine as it fails DMARC check. + An email from {{ from_header }} to {{ alias.email }} is put into Quarantine as it fails anti-phishing check. + You can view the email at {{ refused_email_url }}. This email is automatically deleted in 7 days. + + More info about the anti-phishing measure on https://simplelogin.io/docs/getting-started/anti-phishing/ {% endblock %}