Skip to content

Dmarc dkim verification - #2802

Open
oliver-gordon wants to merge 6 commits into
masterfrom
dmarc_dkim_verification
Open

Dmarc dkim verification#2802
oliver-gordon wants to merge 6 commits into
masterfrom
dmarc_dkim_verification

Conversation

@oliver-gordon

Copy link
Copy Markdown
Collaborator

Introduce validation checks for dmarc and dkim, use the same issue counter as mx record checks to trigger notifications. This allows us to avoid new columns and a migration. Two new email templates for user notifications

Comment thread tasks/check_custom_domains.py Outdated
Comment on lines +128 to +130
if custom_domain.is_sl_subdomain:
dkim_ok = True
dmarc_ok = True

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id move this to the top and if it's is_sl_subdomain return like the custom_domain.user.disabled. There are some domains with whacky states and I'd avoid messing with those for now.

Comment thread tasks/check_custom_domains.py Outdated
dmarc_ok = validator.validate_dmarc_records(custom_domain).success

domain_dns_url = f"{config.URL}/dashboard/domains/{custom_domain.id}/dns"
provider = "Proton" if user.has_used_alias_from_partner() else "SimpleLogin"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we should check whether the domain has created via partner, as a user can have domains added via Pass or via SL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants