nodemailer
10.6.0 · 15 Nov 2026MIT-040.3M / weekRepositoryHomepagenpmAtom feed
Upgrading nodemailer From 10.3.0 to 10.6.1
6 releases in betweenevery note read
Security
- 10.4.1
A security patch release.
Release by release
- Fixed
dkim: sign List-Unsubscribe-Post by default
- Fixed
fetch: identify cookies by name, domain and path
- Fixed
- New
AbortSignal per send:
sendMail({ ..., signal })on SMTP and pooled SMTP. An abort removes a queued message from the pool, or closes only the connection delivering it, and the send fails with anAbortError(codeEABORT). Other transports honor a signal that is already aborted and otherwise ignore it. Note that an abort late in DATA does not prove the server did not accept the message, so do not treatEABORTas safe to retry blindly. - New
DKIM: the
d=domain is encoded with UTS-46 mapping, the same way as the address headers. - New
Header encoding: plain text that a receiver would decode as an encoded-word without it being a valid one (such as
=?utf-8?Q?a b?=across a space) is now encoded. A valid encoded-word is still passed through, so subjects that are already encoded are not encoded twice. - New
SMTP connection: a supplied socket no longer connects, and TLS no longer starts, after the connection was closed.
- New
- Fixed
dkim: encode the d= domain the same way as the address headers
- Fixed
mime-funcs: encode header text that would be decoded as an invalid encoded word
- New
- Security
A security patch release.
- New
Recipient domains with internationalized characters are mapped the same way
url.domainToASCIIand other UTS-46 validators map them. Previously a few characters could encode to a different domain than the validator approved. Affected since 9.1.0. - New
Address parsing: whitespace or a comment around a dot in a domain is read the way RFC 5322 parsers read it, as part of one domain. Previously the domain ended there and the rest moved into the display name.
- New
Well-known services:
service: 'SpacePost'(smtp.spacepost.dev, port 25976, STARTTLS required). - Fixed
addressparser: read whitespace and comments around a dot of the domain as CFWS
- Fixed
mime-node: hand a domain to the UTS-46 mapper without lowercasing it first
- Security
- New
transporter.close({ force: true })closes busy pooled connections as well as idle ones. The messages they were delivering fail at once with an error instead of being queued again, and messages still waiting in the queue fail as they do on a plainclose(). - New
close()without arguments is unchanged: idle connections close immediately and a connection in the middle of a delivery finishes it first. - New
Let close({ force: true }) end pooled connections that are delivering a message
- New
- Fixed
Apply the otp option in MailComposer too
- Fixed
3 other lines we could not sort, mostly version bumps
- 10.5.0
Anyone who signs with DKIM for a domain written with upper case or mapped non-ASCII characters (an upper case IDN label, or one holding a soft hyphen). The
d=tag named a different domain thanFrom:, so verification and DMARC alignment failed. - 10.5.0
Anyone who wants to cancel or time-limit a single send without closing the transport or pool.
- 10.4.1
Everyone who passes user-supplied recipient addresses to Nodemailer, especially applications that restrict recipients by domain. Both fixes close a gap between the domain a validator reads and the domain in the SMTP envelope.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.