Haraka 3.5.1 fixes silent outbound email loss on SMTP recipient replies
News

News. Haraka 3.5.1 fixed an outbound delivery defect that allowed queued email to disappear before its body was transmitted, without a bounce. Haraka is a community-maintained open-source SMTP server. Its outbound engine previously counted only 250 replies as successful at the recipient stage. When a destination returned 251 or 252 for every recipient in a transaction, the message could be discarded instead of being transferred.
The official release was publicly released on December 6, 2026 at 02:47:48 UTC, according to GitHub's release API. Publication to npm followed at 02:49:58 UTC. The update also corrected delivery counts for mixed 250 and 251 replies and recipient attribution on LMTP routes. Operators of Haraka outbound relays should check deployed versions and validate the complete delivery path after upgrading.
What changed in outbound recipient handling
The maintainers' delivery fix changed how Haraka recorded successful RCPT replies. Previously, a recipient entered the accepted-recipient list only when its reply matched 250. Positive replies with other codes did not enter that list. If every recipient received 251 or 252, Haraka had no recorded accepted recipients and discarded the queue file before sending DATA.
Version 3.5.1 treated replies beginning with 2 as acceptance for the recipient command. That kept those recipients in the transaction so message transfer could continue. The reference to 252 concerns the peer behavior covered by this defect and its tests. It does not establish a requirement to return 252 to RCPT, and the release did not change SMTP rules.
|
|
|
|---|---|---|
All 251 or 252 | Silent queue loss | Recipients retained |
Mixed 250 and 251 | Incorrect counts | Accepted list corrected |
LMTP mixed replies | Wrong attribution | Recipient mapping corrected |
Recipient reply patterns addressed by the outbound fix.
Mixed replies mattered even when a transaction continued. Omitting a recipient accepted with 251 produced an incorrect delivery count. With LMTP, it also disrupted the mapping between accepted recipients and their final replies after the body. The correction addressed recipient bookkeeping as well as the all-recipient loss case.
Recipient acceptance is only one delivery stage
A successful RCPT reply concerns an envelope recipient. At that point, the receiving system has not yet accepted the message body. The final reply after DATA is a separate outcome. For SMTP, a positive final reply means the receiving server has accepted responsibility for the message for the accepted recipients.
Inbox placement requires separate evidence. A successful handoff does not establish which folder contains the message or whether the recipient can see it. I keep these stages separate when reviewing a missing-message report, because a recipient-stage success and a completed message transfer answer different operational questions.
Recipient acceptance
RCPT identifies an accepted envelope recipient. Haraka must retain that recipient before it can complete the message transfer.
A positive reply here does not confirm that the body was sent.
Final outcome
Check the reply after the complete body. SMTP reports a transaction outcome; LMTP reports an outcome for each accepted recipient.
Use recipient traces or mailbox confirmation to establish receipt and placement.
An absent bounce cannot establish delivery. This defect was a concrete example: the local queue entry could disappear without either a body transfer or a failure notification. A dashboard showing no queued messages therefore needs supporting transaction evidence before an operator treats the work as completed.
Who should review their deployment
The relevant audience is operators using Haraka's outbound engine, particularly installations with non-250 positive recipient replies or LMTP routes. Receiving mail through Haraka alone does not establish that a deployment used the affected outbound path. Review the route actually taken by the messages under investigation.
The exact first affected version, real-world message volume and provider scope remain unverified. No historical recovery has been established. The release date identifies when this fix became available; it does not establish when an installation first became exposed or how many messages it lost. There is no deadline attached to this release.
For an incident review, distinguish a confirmed match from a general complaint about missing mail. A complaint needs correlation with the deployed build and the destination's replies. Do not assign a provider or a date range to this defect solely because users reported missing messages without bounces.
For a locally patched build, verify whether the recipient-handling change is present rather than inferring exposure from its version label alone. Record the build evidence with the route review. The release number is a useful starting point, but it does not describe local modifications.
Check the version and validate the real route
I start with the running deployment rather than the version recorded in a source repository. Check each outbound instance, including workers handling LMTP routes. Upgrade to a supported Haraka version containing the fix, and confirm that the active processes use that version. A changed package file alone is insufficient evidence.
Then send an ordinary authorized test message through the production route being checked, to a mailbox whose receipt you can confirm. Use an identifiable subject and retain its Message-ID. The goal is to follow normal delivery, without deliberately recreating unusual recipient replies or changing the destination's behavior.
- Submission. Record the application's submission result and connect it to the relay's queue identifier.
- Queue. Follow the message through the outbound queue and identify the destination used.
- Final reply. Confirm body transmission and the final SMTP outcome, or each recipient's LMTP outcome.
- Recipient trace. Confirm receipt at the destination and check the mailbox when inbox delivery is the requirement.
A successful test validates that route at the time of testing. It does not prove that historical messages arrived, or validate other outbound instances automatically. Keep the evidence tied to the particular message and route so the result remains useful when comparing it with earlier submissions.
Capture timestamps with their time zone and retain the complete final reply alongside the queue identifier. If the recipient system assigns another identifier, record that relationship too. For an LMTP route, keep each final result attached to its recipient address rather than reducing the transaction to one success count.
Reconcile missing messages before resending
An upgrade addresses future handling; it does not recover a discarded body. Review retained submission records alongside queue events, final SMTP or LMTP results and recipient traces. Connect records using the identifiers available at each hop, allowing for queue identifiers that change across relays.
For multi-recipient messages, reconcile each recipient separately. This matters especially for LMTP because the defect included incorrect attribution of final replies. Preserve uncertainty when records are incomplete. A missing queue entry is not enough to classify a recipient as delivered or to approve a resend.
Where the receiving side confirms receipt, exclude that recipient from a missing-message resend. Where evidence remains incomplete, document the gap and agree on the next action with the message owner. Preserve available records before routine retention removes them, so later decisions remain traceable to the original transaction.
Keep resends controlled
Before any resend, establish which recipients lack confirmed receipt and review the duplication risk. Retain the original submission evidence and record the resend decision. Do not replay an entire submission set solely because it contains no bounces.
Authentication checks remain separate
SPF, DKIM and DMARC evaluate authorization and message identity. They do not prove that Haraka transmitted a body or that a recipient received it. A passing authentication result cannot replace transfer evidence, and changing authentication DNS records does not correct this outbound recipient-handling defect.
Keep authentication findings attached to the message they describe. Results for another message or destination cannot fill a gap in the affected transaction's transfer history.
Suped's email tester can inspect authentication on a test message it receives. That result concerns delivery to the test destination, so validate the affected recipient route separately. A domain health check examines DNS authentication configuration; it cannot establish the outcome of a historical SMTP transaction.
Close the incident with delivery evidence
Keep the deployment change and the historical message review as separate work items. Confirm that the fixed version is running, retain an end-to-end test result for the relevant route, and document unresolved recipient outcomes. Approve controlled resends only after reconciliation, with an explicit record of which recipients require another copy.
Frequency asked questions
No. The silent-loss case involved transactions where every recipient received 251 or 252. Mixed 250 and 251 replies also affected counts and LMTP attribution. The real-world scope remains unverified.
No. It concerns recipient acceptance before body transfer. Check the final reply after DATA, then use recipient evidence to establish receipt or inbox placement.
Historical recovery has not been established. Reconcile retained records and recipient traces before deciding whether a controlled resend is appropriate.
No. This was an outbound transfer defect. Deploy a supported version containing the fix and validate delivery. Review authentication separately when its results show a problem.

