Email Provider MXIntroduction

Introduction

Classify the email provider — mailbox host, free webmail, or Secure Email Gateway — behind an MX record.

@visulima/email-provider-mx

A tiny, static, hand-curated lookup that turns an MX hostname into the mail provider behind it. It distinguishes mailbox hosts (Google Workspace, Microsoft 365, Zoho, Fastmail, Proton, Yandex), free consumer webmail (Yahoo, iCloud, GMX, Mail.ru, Mail.com, Web.de), and Secure Email Gateways / SEGs (Proofpoint, Mimecast, Barracuda, Cisco, Trend Micro, Sophos, Forcepoint, Symantec/MessageLabs, Cloudflare Area 1).

There are no network calls — it is pure data plus suffix matching. Pair it with your own DNS resolver (dns.resolveMx, a DoH client, etc.) to feed it MX records.

Quick Start

import { classifyMx } from "@visulima/email-provider-mx";

classifyMx("aspmx.l.google.com");
// → { provider: "google", type: "mailbox", display: "Google Workspace" }

classifyMx("mx0a-00000000.pphosted.com");
// → { provider: "proofpoint", type: "seg", display: "Proofpoint" }

classifyMx("mail.example.com");
// → undefined (unknown host)

Use Cases

  • Deliverability Diagnostics - Identify the mailbox host or gateway fronting a domain
  • SEG Detection - Flag domains protected by a Secure Email Gateway
  • Provider Analytics - Segment recipients by mail provider
  • Enrichment - Feed @visulima/email-verifier provider/SEG classification
Support

Contribute to our work and keep us going

Community is the heart of open source. The success of our packages wouldn't be possible without the incredible contributions of users, testers, and developers who collaborate with us every day.Want to get involved? Here are some tips on how you can make a meaningful impact on our open source projects.

Ready to help us out?

Be sure to check out the package's contribution guidelines first. They'll walk you through the process on how to properly submit an issue or pull request to our repositories.

Submit a pull request

Found something to improve? Fork the repo, make your changes, and open a PR. We review every contribution and provide feedback to help you get merged.

Good first issues

Simple issues suited for people new to open source development, and often a good place to start working on a package.
View good first issues