Skip to content

Commit

Permalink
Merge pull request #106 from Gertje823/master
Browse files Browse the repository at this point in the history
Added Mimecast as mail provider
  • Loading branch information
Lissy93 authored Mar 9, 2024
2 parents 195577f + e770757 commit 7583843
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 7583843

Please sign in to comment.