only check the p key for dkim

this less-strict DKIM check allows users to set a stronger DKIM key
This commit is contained in:
Girish Ramakrishnan
2020-04-17 12:37:57 -07:00
parent 1e097abe86
commit 33acccbaaa
2 changed files with 3 additions and 1 deletions

View File

@@ -208,7 +208,8 @@ function checkDkim(mailDomain, callback) {
if (txtRecords.length !== 0) {
dkim.value = txtRecords[0].join('');
dkim.status = (dkim.value === dkim.expected);
const actual = txtToDict(dkim.value);
dkim.status = actual.p === dkimKey;
}
callback(null, dkim);