diff options
-rw-r--r-- | dnsconfig.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dnsconfig.js b/dnsconfig.js index acc2196..dd426c3 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -31,14 +31,18 @@ function fly(name) { /** * @param {string} domain * @param {string} verification + * @param {string[]} extras */ -function iCloudMail(domain, verification) { +function iCloudMail(domain, verification, extras) { + if (extras == null) { + extras = [] + } return [ MX('@', 10, 'mx01.mail.icloud.com.'), MX('@', 10, 'mx02.mail.icloud.com.'), TXT('@', 'apple-domain=' + verification), SPF_BUILDER({ - parts: ['v=spf1', 'redirect=icloud.com'], + parts: ['v=spf1'].concat(extras).concat('include:icloud.com', '-all'), }), CNAME('sig1._domainkey', 'sig1.dkim.' + domain + '.at.icloudmailadmin.com.'), ] @@ -134,7 +138,7 @@ D( SSHFP('linde', 4, 2, '72f576b32b5c2d16312574182b028671fa39c8bab03d802fae04eb7f649d2570'), CNAME('*.linde', 'linde'), - iCloudMail('alanpearce.eu', 'anzQe301nq7grixH'), + iCloudMail('alanpearce.eu', 'anzQe301nq7grixH', ['a:linde.alanpearce.eu']), DMARC_BUILDER({ policy: 'reject', percent: 100, |