mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-09-02 22:17:39 +00:00
beta: email forwarding
This commit is contained in:
@@ -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