From e77075764e6bdb1a124190ca45fdafb4eb3c38d2 Mon Sep 17 00:00:00 2001 From: Gertje823 <36937387+Gertje823@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:49:38 +0100 Subject: [PATCH] Added Mimecast as mail provider --- api/mail-config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/mail-config.js b/api/mail-config.js index 0f24caba..402fd67b 100644 --- a/api/mail-config.js +++ b/api/mail-config.js @@ -54,6 +54,11 @@ const handler = async (url, event, context) => { if (yahooMx.length > 0) { mailServices.push({ provider: 'Yahoo', value: yahooMx[0].exchange }); } + // Check MX records for Mimecast + const mimecastMx = mxRecords.filter(record => record.exchange.includes('mimecast.com')); + if (mimecastMx.length > 0) { + mailServices.push({ provider: 'Mimecast', value: mimecastMx[0].exchange }); + } return { mxRecords,