Skip to content

Instantly share code, notes, and snippets.

@tennox
Last active March 20, 2024 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tennox/f2836fb57e2ac3b54c0c044b7777eb35 to your computer and use it in GitHub Desktop.
Save tennox/f2836fb57e2ac3b54c0c044b7777eb35 to your computer and use it in GitHub Desktop.
Migadu DNSControl setup
// Adapt all occurrences of `EXAMPLE.org` and `REPLACEME` with the correct values
D("EXAMPLE.org", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
// other records - e.g.
//A("@", "1.2.3.4"),
////////////
// MIGADU //
////////////
TXT("@", "hosted-email-verify=REPLACEME"),
MX("@", 10, "aspmx1.migadu.com."),
MX("@", 20, "aspmx2.migadu.com."),
// (optional) for subdomain addressing
MX("*", 10, "aspmx1.migadu.com."),
MX("*", 20, "aspmx2.migadu.com."),
// DKIM+ARC
CNAME("key1._domainkey", "key1.EXAMPLE.org._domainkey.migadu.com."),
CNAME("key2._domainkey", "key2.EXAMPLE.org._domainkey.migadu.com."),
CNAME("key3._domainkey", "key3.EXAMPLE.org._domainkey.migadu.com."),
// SPF
TXT("@", "v=spf1 include:spf.migadu.com -all"),
// DMARC
TXT("_dmarc", "v=DMARC1; p=quarantine;"),
// autoconfig
CNAME("autoconfig", "autoconfig.migadu.com."),
// Outlook discovery
SRV("_autodiscover._tcp", 0, 1, 443, "autodiscover.migadu.com."),
// Generic discovery
SRV("_submissions._tcp", 0, 1, 465, "smtp.migadu.com."),
SRV("_imaps._tcp", 0, 1, 993, "imap.migadu.com."),
SRV("_pop3s._tcp", 0, 1, 995, "pop.migadu.com."),
);
@tennox
Copy link
Author

tennox commented Mar 20, 2024

For usage with DNSControl 😉 😎

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