Skip to content

Commit

Permalink
Added Mimecast as mail provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Gertje823 committed Mar 9, 2024
1 parent 195577f commit e770757
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/mail-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e770757

Please sign in to comment.