Skip to content

Conversation

@techjewel
Copy link

Description

Adding a new template for tosend.com to enable automatic DNS configuration for email sending via Amazon SES. This includes setting up MX for outbound (using a subdomain), SPF include, and DKIM TXT records, with support for region-specific SES endpoints and custom DKIM keys.

Type of change

  • New template
  • Bug fix (non-breaking change which fixes an issue in the template)
  • New feature (non-breaking change which adds functionality to the template)
  • Breaking change (fix or feature that would cause existing template behavior to be not backward compatible)

How Has This Been Tested?

  • Schema validated using JSON Schema template.schema
  • Template functionality checked using Online Editor
  • Template is checked using template linter
  • Template file name follows the pattern <providerId>.<serviceId>.json
  • resource URL provided with logoUrl is actually served by a webserver

Example variable values

domain: jewe.im
spfDomain: send
region: us-east-1
domainKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnW/sr9Na0EPjT8nZ1eoh0QIPLeoF+A/kXZtNDGONgN0KdOSu09iDE0CsiCs4cyOLnn5O5v5ZgC/sbpKeePKDRER/b35M0OtDRfRT3uBVL4CLgEzJx/GDMOczovK54kF49DSAAwbxBubXjoNOljlhcuzYKB5SD70MjQG0zIdveTmzANOij3U/k0Q8Y+9j9FSuMUajKhfhkS4X7cUIR8lDP6ngTIzen/pQz5POAjsD3sNvSB3nJNFqQDCzN/I/rwvSyIRlhkGuICIamUMyBCNOLEPQ1miuTDPBhDQtyZBcPumCWLOJPagWhrKYrPSHVDtZuA/W96YwX4NacditFrYy/wIDAQAB

This produces the following records (verified in online editor and linter):

  • MX @ send → 10 feedback-smtp.us-east-1.amazonses.com (TTL 3600)
  • TXT @ send → "v=spf1 include:amazonses.com ~all" (TTL 6000)
  • TXT tosend._domainkey → "p=..." (full public key, quoted, TTL 3600)
"testData": {
    "tosend.com.mail.json": {
      "variables": {
        "domain": "jewe.im",
        "spfDomain": "send",
        "region": "us-east-1",
        "domainKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnW/sr9Na0EPjT8nZ1eoh0QIPLeoF+A/kXZtNDGONgN0KdOSu09iDE0CsiCs4cyOLnn5O5v5ZgC/sbpKeePKDRER/b35M0OtDRfRT3uBVL4CLgEzJx/GDMOczovK54kF49DSAAwbxBubXjoNOljlhcuzYKB5SD70MjQG0zIdveTmzANOij3U/k0Q8Y+9j9FSuMUajKhfhkS4X7cUIR8lDP6ngTIzen/pQz5POAjsD3sNvSB3nJNFqQDCzN/I/rwvSyIRlhkGuICIamUMyBCNOLEPQ1miuTDPBhDQtyZBcPumCWLOJPagWhrKYrPSHVDtZuA/W96YwX4NacditFrYy/wIDAQAB"
      },
      "results": [
        {
          "type": "MX",
          "name": "send",
          "ttl": 3600,
          "data": "10 feedback-smtp.us-east-1.amazonses.com"
        },
        {
          "type": "TXT",
          "name": "send",
          "ttl": 6000,
          "data": "\"v=spf1 include:amazonses.com ~all\""
        },
        {
          "type": "TXT",
          "name": "tosend._domainkey",
          "ttl": 3600,
          "data": "\"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnW/sr9Na0EPjT8nZ1eoh0QIPLeoF+A/kXZtNDGONgN0KdOSu09iDE0CsiCs4cyOLnn5O5v5ZgC/sbpKeePKDRER/b35M0OtDRfRT3uBVL4CLgEzJx/GDMOczovK54kF49DSAAwbxBubXjoNOljlhcuzYKB5SD70MjQG0zIdveTmzANOij3U/k0Q8Y+9j9FSuMUajKhfhkS4X7cUIR8lDP6ngTIzen/pQz5POAjsD3sNvSB3nJNFqQDCzN/I/rwvSyIRlhkGuICIamUMyBCNOLEPQ1miuTDPBhDQtyZBcPumCWLOJPagWhrKYrPSHVDtZuA/W96YwX4NacditFrYy/wIDAQAB\""
        }
      ]
    }
  }

@github-actions
Copy link

Linter OK:

Linter result for tosend.com.mail.json

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.

1 participant