[ SPF ]

SPF HELO evaluation and messages with an empty reverse path

Test the identity used by bounce and notification traffic, including the HELO-derived SPF identity when MAIL FROM is empty.

By the EmailAuth research team

[ Key points ]

  • Null reverse-path SPF uses postmaster plus the HELO identity.
  • HELO checks and visible From are distinct identity questions.
  • Test actual egress addresses and authorized notification routes.
On this page

A mail server can send a legitimate message with an empty SMTP reverse path, written as MAIL FROM:<>. Delivery-status notifications use a null reverse path under RFC 5321 §4.5.5 to avoid creating endless bounce loops. Empty reverse path does not mean there is no SPF evaluation to consider: RFC 7208 §2.4 defines a MAIL FROM identity using the local-part postmaster and the HELO domain in this case.

Administrators who test only ordinary user mail can therefore miss a separate authentication path used by the server itself.

Distinguish HELO from the visible sender

HELO or EHLO introduces the SMTP client to the receiving server. Its domain is separate from the message's visible From header and can differ from a non-empty MAIL FROM domain. A host might introduce itself as relay.example.com while transmitting user mail with an envelope sender at example.com.

RFC 7208 §2.3 recommends checking HELO separately and recommends doing so first when both identities are checked. The MAIL FROM rules depend on whether the HELO check was performed and reached a definitive policy result. Do not assume every receiver will emit two independent SPF results for every message.

For the HELO check described in the RFC, the supplied value must be a valid multi-label domain name. A malformed value or address literal cannot be treated as if it were an ordinary queryable hostname. Correct the sending server's configuration through its supported controls rather than inventing DNS entries for malformed identities.

Publish for the hostname that is actually used

Capture a controlled SMTP transaction or trusted receiver log to establish the HELO value. Then query SPF TXT at that exact hostname. The SPF policy at example.com does not automatically apply to relay.example.com.

For a server with stable, explicitly controlled egress addresses, a narrow policy can describe those addresses. For hosted sending infrastructure, follow the provider's supported configuration and ownership boundaries. Do not publish a guessed record on a hostname you do not control, or assume that a hostname's A record is necessarily the SMTP egress address.

Include IPv6 in the review. An MTA can present the same HELO over different address families, and a policy that covers only its IPv4 source may produce different outcomes over IPv6.

Exercise normal and empty-envelope traffic separately

Illustrative test plan, using documentation-only addresses:

  1. A server connects from 192.0.2.10 and introduces itself as relay.example.com.
  2. The hostname publishes v=spf1 ip4:192.0.2.10 -all.
  3. For a message with MAIL FROM:<>, SPF derives postmaster@relay.example.com as the MAIL FROM identity. That source is authorised by the hostname policy.
  4. Repeat using a different, unauthorised test IP. With the same hostname policy, the unmatched source reaches fail.

These are expected evaluator outcomes, not results from a live system. Use controlled, authorised recipients for real notification tests. Do not provoke bounces toward arbitrary external addresses merely to observe behaviour.

Record the identity as well as the verdict

Retain the session's connecting IP, HELO value, reverse path and receiver-generated result. A generic “SPF pass” without an identity is insufficient for troubleshooting. A successful ordinary user message does not prove that null reverse-path mail exercised the same domain.

When a test fails, decide whether the problem is the announced hostname, DNS publication, egress inventory or an unexpected route. Changing the employee domain's SPF policy will not repair a hostname policy that was never queried.

Make server-generated mail part of change control

Add notification tests to MTA upgrades, relay migrations and IPv6 enablement. Preserve the previous identity configuration and approved recovery path. Close the change only when ordinary mail and the server-generated flows relevant to your organisation have been assessed. This prevents a healthy user-mail test from concealing broken operational notifications.

Use the evidence for a decision

Keep ordinary MAIL FROM and null-path notification rows separate. For a null path and HELO=relay.example.com, the constructed sender is postmaster@relay.example.com; the test IP must be evaluated against that domain’s policy. An ordinary user-message pass for example.com does not establish that result. Use authorized recipients and controlled notifications; no bounce test or server change was executed.

[ Takeaway ]

Null reverse-path SPF uses postmaster plus the HELO identity. HELO checks and visible From are distinct identity questions. Test actual egress addresses and authorized notification routes.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Capture the SMTP inputs.

The connecting IP, HELO and reverse path explain which policy should have applied.

Next steps

  1. Test a null reverse-path scenario.
  2. Review hostname policy and both IP families.

CISO / SecOps

Require identity-specific evidence.

A generic pass label can conceal which domain was authenticated.

Next steps

  1. Require trusted receiver evidence.
  2. Avoid tests that create unsolicited bounce traffic.

Founder / Non-technical

Include operational notifications.

User mail is only one part of the service. Bounce and system notification paths deserve explicit test coverage.

Next steps

  1. Name the owner of server-generated mail.
  2. Include these flows in migrations.

[ FAQs ]

Frequently asked questions

Why can MAIL FROM be empty?

Notifications such as delivery-status messages commonly use a null reverse path to avoid bounce loops.

RFC 5321 §4.5.5

Is empty MAIL FROM the same as a missing From header?

No. The SMTP reverse path and the message’s visible From header are different fields.

RFC 5321 §2.3.1

How does SPF handle the null reverse path?

RFC 7208 constructs the MAIL FROM identity from postmaster and the HELO domain.

RFC 7208 §2.4

Does the root SPF record cover the HELO hostname?

Not automatically. Query and configure the exact hostname used in the SMTP session.

RFC 7208 §4.4

Will receivers always show both HELO and MAIL FROM results?

No. Receiver processing and recorded results vary. Identify which identity each observed result actually describes.

RFC 7208 §2.3 RFC 7208 §2.4

Can I infer egress IP from the hostname’s A record?

Not safely. Routing, NAT or hosted infrastructure can make the actual connecting IP different.

Should I test IPv6 too?

Yes, if the MTA can send over IPv6. Review the corresponding source addresses and policy coverage.

RFC 7208 §5.6

How can I test without creating backscatter?

Use controlled recipients and approved notification scenarios. Avoid generating failures toward unrelated external addresses.

[ Sources ]

Sources

  1. RFC 7208

    Sections §2.3 · §2.4 · §4.4 · §5.6 · §10.1.3

  2. RFC 5321

    Sections §2.3.1 · §4.1.1.1 · §4.5.5

  3. RFC 8601

    Sections §1.2 · §7.1

[ Glossary ]

Glossary

SPF
Authorization evaluation for a connecting IP and the relevant SMTP identity.

RFC 7208 §2.4

HELO identity
SMTP client identity introduced with HELO or EHLO; SPF can check it when it is a valid multi-label domain name.

RFC 7208 §2.3

Null reverse path
An empty SMTP reverse path used for certain notifications to avoid notification loops.

RFC 5321 §4.5.5

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base