forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdmarc-failure-table.js
More file actions
57 lines (56 loc) · 1.85 KB
/
dmarc-failure-table.js
File metadata and controls
57 lines (56 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { GraphQLInt, GraphQLObjectType, GraphQLString } from 'graphql'
import { globalIdField } from 'graphql-relay'
export const dmarcFailureTableType = new GraphQLObjectType({
name: 'DmarcFailureTable',
description:
'This table contains the data fields for senders who are in the DMARC failure category.',
fields: () => ({
id: globalIdField('dmarcFail'),
dkimDomains: {
type: GraphQLString,
description: 'Domains used for DKIM validation',
resolve: ({ dkimDomains }) => dkimDomains,
},
dkimSelectors: {
type: GraphQLString,
description: 'Pointer to a DKIM public key record in DNS.',
resolve: ({ dkimSelectors }) => dkimSelectors,
},
disposition: {
type: GraphQLString,
description:
'The DMARC enforcement action that the receiver took, either none, quarantine, or reject.',
resolve: ({ disposition }) => disposition,
},
dnsHost: {
type: GraphQLString,
description: 'Host from reverse DNS of source IP address.',
resolve: ({ dnsHost }) => dnsHost,
},
envelopeFrom: {
type: GraphQLString,
description: 'Domain from SMTP banner message.',
resolve: ({ envelopeFrom }) => envelopeFrom,
},
headerFrom: {
type: GraphQLString,
description: 'The address/domain used in the "From" field.',
resolve: ({ headerFrom }) => headerFrom,
},
sourceIpAddress: {
type: GraphQLString,
description: 'IP address of sending server.',
resolve: ({ sourceIpAddress }) => sourceIpAddress,
},
spfDomains: {
type: GraphQLString,
description: 'Domains used for SPF validation.',
resolve: ({ spfDomains }) => spfDomains,
},
totalMessages: {
type: GraphQLInt,
description: 'Total messages from this sender.',
resolve: ({ totalMessages }) => totalMessages,
},
}),
})