mail: add ipv6 rdns check
This commit is contained in:
@@ -138,11 +138,11 @@ describe('Mail API', function () {
|
||||
expect(response.body.dns.mx.expected).to.eql(`10 ${mailFqdn}.`);
|
||||
expect(response.body.dns.mx.status).to.eql(false);
|
||||
|
||||
expect(response.body.dns.ptr).to.be.an('object');
|
||||
expect(response.body.dns.ptr.type).to.eql('PTR');
|
||||
expect(response.body.dns.ptr4).to.be.an('object');
|
||||
expect(response.body.dns.ptr4.type).to.eql('PTR');
|
||||
// expect(response.body.ptr.value).to.eql(null); this will be anything random
|
||||
expect(response.body.dns.ptr.expected).to.eql(mailFqdn);
|
||||
expect(response.body.dns.ptr.status).to.eql(false);
|
||||
expect(response.body.dns.ptr4.expected).to.eql(mailFqdn);
|
||||
expect(response.body.dns.ptr4.status).to.eql(false);
|
||||
});
|
||||
|
||||
it('succeeds with "undefined" spf, dkim, dmarc, mx, ptr records', async function () {
|
||||
@@ -178,9 +178,9 @@ describe('Mail API', function () {
|
||||
expect(response.body.dns.mx.expected).to.eql(`10 ${mailFqdn}.`);
|
||||
expect(response.body.dns.mx.value).to.eql(null);
|
||||
|
||||
expect(response.body.dns.ptr).to.be.an('object');
|
||||
expect(response.body.dns.ptr.expected).to.eql(mailFqdn);
|
||||
expect(response.body.dns.ptr.status).to.eql(false);
|
||||
expect(response.body.dns.ptr4).to.be.an('object');
|
||||
expect(response.body.dns.ptr4.expected).to.eql(mailFqdn);
|
||||
expect(response.body.dns.ptr4.status).to.eql(false);
|
||||
// expect(response.body.ptr.value).to.eql(null); this will be anything random
|
||||
});
|
||||
|
||||
@@ -217,9 +217,9 @@ describe('Mail API', function () {
|
||||
expect(response.body.dns.mx.expected).to.eql(`10 ${mailFqdn}.`);
|
||||
expect(response.body.dns.mx.value).to.eql(`20 ${mailFqdn}. 10 some.other.server.`);
|
||||
|
||||
expect(response.body.dns.ptr).to.be.an('object');
|
||||
expect(response.body.dns.ptr.expected).to.eql(mailFqdn);
|
||||
expect(response.body.dns.ptr.status).to.eql(false);
|
||||
expect(response.body.dns.ptr4).to.be.an('object');
|
||||
expect(response.body.dns.ptr4.expected).to.eql(mailFqdn);
|
||||
expect(response.body.dns.ptr4.status).to.eql(false);
|
||||
// expect(response.body.ptr.value).to.eql(null); this will be anything random
|
||||
|
||||
expect(response.body.relay).to.be.an('object');
|
||||
|
||||
Reference in New Issue
Block a user