# smtp-address-parser

> Parse an SMTP (RFC-5321) address

Latest version **1.1.0** (published 2024-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install smtp-address-parser
pnpm add smtp-address-parser
yarn add smtp-address-parser
bun add smtp-address-parser
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2024-06-26 |
| First published | 2021-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 1 |
| Unpacked size | 76.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Gene Hightower |
| Keywords | RFC-5321, address, email, envelope, rfc2821, rfc5321, rfc821 |

## Links

- npm: https://www.npmjs.com/package/smtp-address-parser
- Repository: https://github.com/gene-hightower/smtp-address-parser
- Homepage: https://github.com/gene-hightower/smtp-address-parser#readme
- Issues: https://github.com/gene-hightower/smtp-address-parser/issues
- npm.io page: https://npm.io/package/smtp-address-parser

## Dependencies (1)

- [nearley](https://npm.io/package/nearley.md) ^2.20.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2024-06-26
- 1.0.10 — 2022-01-28
- 1.0.8 — 2021-11-23
- 1.0.7 — 2021-09-29
- 1.0.6 — 2021-09-01
- 1.0.4 — 2021-08-02
- 1.0.3 — 2021-03-19
- 1.0.2 — 2021-03-13
- 1.0.1 — 2021-03-13
- 1.0.0 — 2021-03-13

## README

# smtp-address-parser

Parse an SMTP (RFC-5321) address.

[![https://nodei.co/npm/smtp-address-parser.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/smtp-address-parser.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/smtp-address-parser)

## Some notes

** Changes in version 1.1.0: **

** Domains are now checked beyond RFC-5321 syntax only **

Domain names must be fully qualified; that is with at least two labels. The top-level domain must have at least two octets.

** Length limitations are now checked **

Total length limit of an address is 986 octets; based on a 1,000 octet SMTP line length.

See <https://tools.ietf.org/html/rfc1035> section 2.3.4. Size limits:

Domain names are limited to 255 octets, when encoded with a length byte before each label, and including the top-level zero length label. So, the effctive limit with interstitial dots is 253 octets.

Labels within a domain name are limited to 63 octets.

The above are limits of the DNS protocol, not any particular implementation.

RFC-5321 section 4.5.3.1. “Size Limits and Minimums” still says:

“To the maximum extent possible, implementation techniques that impose
no limits on the length of these objects should be used.”

---
_Source: https://npm.io/package/smtp-address-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
