thunderbird_accounts.mail.dkim
Functions
|
Builds dkim CNAME dns records for a given domain name. |
|
Builds hosted DKIM TXT record names for a given domain name. |
|
Builds dkim TXT dns records for a given domain name. |
|
Deletes hosted DKIM TXT records for a given domain name. |
|
Builds a dkim TXT dns record with the given dkim signatures. |
|
Returns a normalized dkim record name. |
|
Publishes hosted DKIM TXT records. |
Classes
|
Cloudflare DNS Client Handles basic DNS operations against Cloudflare's API. |
- class thunderbird_accounts.mail.dkim.CloudflareDNSClient(api_token: str | None = None, zone_id: str | None = None, ttl: int | None = None, client=None)[source]
Bases:
objectCloudflare DNS Client Handles basic DNS operations against Cloudflare’s API.
Note: If you do not have the settings: HOSTED_DKIM_CLOUDFLARE_ZONE_ID or HOSTED_DKIM_CLOUDFLARE_API_TOKEN set then you must past zone_id and/or api_token respectively.
- thunderbird_accounts.mail.dkim.hosted_dkim_record_name(selector: str, domain_name: str, hosted_domain: str | None = None) str[source]
Returns a normalized dkim record name. If hosted domain is not specified it falls back on
settings.HOSTED_DKIM_DOMAIN
- thunderbird_accounts.mail.dkim.build_customer_dkim_cname_records(domain_name: str, hosted_domain: str | None = None) list[dict[str, str]][source]
Builds dkim CNAME dns records for a given domain name. If hosted domain is not specified it falls back on
settings.HOSTED_DKIM_DOMAIN
- thunderbird_accounts.mail.dkim.build_hosted_dkim_txt_record_names(domain_name: str, hosted_domain: str | None = None) list[str][source]
Builds hosted DKIM TXT record names for a given domain name. If hosted domain is not specified it falls back on
settings.HOSTED_DKIM_DOMAIN
- thunderbird_accounts.mail.dkim.build_hosted_dkim_txt_records(domain_name: str, dkim_dns_records: list[dict]) list[dict[str, str]][source]
Builds dkim TXT dns records for a given domain name. If hosted domain is not specified it falls back on
settings.HOSTED_DKIM_DOMAIN
- thunderbird_accounts.mail.dkim.dkim_signatures_to_dns_records(domain_name: str, signatures: list[dict]) list[dict[str, str]][source]
Builds a dkim TXT dns record with the given dkim signatures.
- Raises:
RuntimeError – On an invalid public key or dkim signature