Skip to content

Commit 7583843

Browse files
authored
Merge pull request #106 from Gertje823/master
Added Mimecast as mail provider
2 parents 195577f + e770757 commit 7583843

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/mail-config.js

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ const handler = async (url, event, context) => {
5454
if (yahooMx.length > 0) {
5555
mailServices.push({ provider: 'Yahoo', value: yahooMx[0].exchange });
5656
}
57+
// Check MX records for Mimecast
58+
const mimecastMx = mxRecords.filter(record => record.exchange.includes('mimecast.com'));
59+
if (mimecastMx.length > 0) {
60+
mailServices.push({ provider: 'Mimecast', value: mimecastMx[0].exchange });
61+
}
5762

5863
return {
5964
mxRecords,

0 commit comments

Comments
 (0)