From bfd20b13302ab42f5ea1fab4c4bdc630048d7176 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 20 Sep 2016 09:06:40 -0700 Subject: [PATCH] fix dmarc --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 85b152d..d095749 100644 --- a/cloudron.js +++ b/cloudron.js @@ -544,7 +544,7 @@ Cloudron.prototype.checkDMARC = function (callback) { if (records.length !== 1 || records[0].length !== 1) return callback(new Error('Got ' + JSON.stringify(records) + ' TXT records. Expecting 1 length 2d array')); // node removes the quotes or maybe this is why a 2d-array? - if (records[0][0].search(/^v=DMARC1; p=none; pct=100; rua=mailto:.*; ruf=.*$/) !== 0) return callback(new Error('Bad DMARC record. ' + records[0][0])); + if (records[0][0].search(/^v=DMARC1; p=reject; pct=100$/) !== 0) return callback(new Error('Bad DMARC record. ' + records[0][0])); callback(null, records); });