Less strict dmarc validation

fixes #666
This commit is contained in:
Girish Ramakrishnan
2020-03-30 19:32:05 -07:00
parent 936f456cec
commit 580da19bc2
+2 -3
View File
@@ -312,9 +312,8 @@ function checkDmarc(domain, callback) {
if (txtRecords.length !== 0) {
dmarc.value = txtRecords[0].join('');
// allow extra fields in dmarc like rua
const actual = txtToDict(dmarc.value), expected = txtToDict(dmarc.expected);
dmarc.status = Object.keys(expected).every(k => expected[k] === actual[k]);
const actual = txtToDict(dmarc.value);
dmarc.status = actual.v === 'DMARC1'; // see box#666
}
callback(null, dmarc);