Skip to content

Commit b7d8f71

Browse files
authored
fix: adds custom domain email support
Signed-off-by: nitish <[email protected]>
1 parent 8876de7 commit b7d8f71

File tree

8 files changed

+2778
-2574
lines changed

8 files changed

+2778
-2574
lines changed

.secrets.baseline

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "package-lock.json|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2023-05-31T06:45:21Z",
6+
"generated_at": "2023-08-02T09:54:43Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -102,15 +102,15 @@
102102
"hashed_secret": "52ff58378da9dd5f3352434d0d26c680750acf56",
103103
"is_secret": false,
104104
"is_verified": false,
105-
"line_number": 654,
105+
"line_number": 656,
106106
"type": "Secret Keyword",
107107
"verified_result": null
108108
},
109109
{
110110
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
111111
"is_secret": false,
112112
"is_verified": false,
113-
"line_number": 1174,
113+
"line_number": 1200,
114114
"type": "Secret Keyword",
115115
"verified_result": null
116116
}
@@ -120,21 +120,21 @@
120120
"hashed_secret": "0cc20f91828bed53ddb6294968b7f9abd631a3ba",
121121
"is_secret": false,
122122
"is_verified": false,
123-
"line_number": 1146,
123+
"line_number": 1178,
124124
"type": "Secret Keyword",
125125
"verified_result": null
126126
},
127127
{
128128
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
129129
"is_secret": false,
130130
"is_verified": false,
131-
"line_number": 1196,
131+
"line_number": 1228,
132132
"type": "Secret Keyword",
133133
"verified_result": null
134134
}
135135
]
136136
},
137-
"version": "0.13.1+ibm.47.dss",
137+
"version": "0.13.1+ibm.60.dss",
138138
"word_list": {
139139
"file": null,
140140
"hash": null

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ SDK Methods to consume
107107
- [Get Destination](#get-destination)
108108
- [Update Destination](#update-destination)
109109
- [Delete Destination](#delete-destination)
110+
- [Custom Domain_Name_verification](#custom-domain-name-verification)
110111
- [Push Destination APIs](#push-destination-apis)
111112
- [Create Destination tag subscription](#create-destination-tag-subscription)
112113
- [List Destination tag subscription](#list-destination-tag-subscription)
@@ -456,6 +457,31 @@ eventNotificationsService
456457
});
457458
```
458459

460+
### Custom Domain Name Verification
461+
462+
After creation of the custom email destination with your domain name, make sure its validated for the right ownership.
463+
This can be done with SPF and DKIM verification.
464+
* Sender Policy Framework (SPF), which is used to authenticate the sender of an email. SPF specifies the mail servers that are allowed to send email for your domain.
465+
* DomainKeys Identified Mail (DKIM), which allows an organization to take responsibility for transmitting a message by signing it. DKIM allows
466+
the receiver to check the email that claimed to have come from a specific domain, is authorized by the owner of that domain.
467+
468+
```js
469+
const updateSpfVerifyDestinationParams = {
470+
instanceId : <instance-id>,
471+
id : <destination-id>,
472+
type: <verification-type>,
473+
};
474+
475+
let res;
476+
try {
477+
res = await eventNotificationsService.updateVerifyDestination(
478+
updateSpfVerifyDestinationParams
479+
);
480+
console.log(JSON.stringify(res.result, null, 2));
481+
} catch (err) {
482+
console.warn(err);
483+
}
484+
```
459485
## Push Destination APIs
460486

461487
### Create Destination tag subscription

0 commit comments

Comments
 (0)