mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-12 16:15:21 +00:00
beta: email forwarding
This commit is contained in:
1 parent
961a85dd08
commit
e5d0614435
1 file changed
+8
@@ -140,6 +140,14 @@ for (var subdomain in domains) {
|
||||
if (domainData.record.URL) {
|
||||
records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON));
|
||||
}
|
||||
|
||||
// Handle Email Forwarding
|
||||
if (domainData.email_forwarding) {
|
||||
records.push(MX(subdomainName, 34, "route1.mx.cloudflare.net."));
|
||||
records.push(MX(subdomainName, 62, "route2.mx.cloudflare.net."));
|
||||
records.push(MX(subdomainName, 36, "route3.mx.cloudflare.net."));
|
||||
records.push(TXT(subdomainName, "\"" + "v=spf1 include:_spf.mx.cloudflare.net ~all" + "\""));
|
||||
}
|
||||
}
|
||||
|
||||
var options = {
|
||||
|
||||
Reference in new issue
Block a user