Skip to content

elliotpryde/terraform-aws-protonmail-domain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-protonmail-domain

This module provides a simple way to set up a ProtonMail custom domain using an AWS Route53 hosted zone.

For this to work, your registered domain must be configured to use the AWS hosted zone's name servers to respond to DNS queries for your domain.

Example usage

module "protonmail-domain" {
  source  = "app.terraform.io/elliotpryde/protonmail-domain/aws"
  version = "1.0.0"

  zone_id = aws_route53_zone.my-zone.zone_id
  verification_data = "protonmail-verification=<verification-string>"
  dkim_records = [
    {
      hostname = "protonmail._domainkey",
      data = "protonmail.domainkey.d4zotdvax2nt4447zdfl5bkm6uc3lozcidvlw5jdxq3hhurmq3u5q.domains.proton.ch."
    },
    {
      hostname = "protonmail2._domainkey",
      data = "protonmail2.domainkey.d4zotdvax2nt4447zdfl5bkm6uc3lozcidvlw5jdxq3hhurmq3u5q.domains.proton.ch."
    },
    {
      hostname = "protonmail3._domainkey",
      data = "protonmail3.domainkey.d4zotdvax2nt4447zdfl5bkm6uc3lozcidvlw5jdxq3hhurmq3u5q.domains.proton.ch."
    }
  ]
  dmarc_policy = "quarantine"
  additional_dmarc_flags = [
    "pct=100",
    "rua=mailto:[email protected]"
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages