In an SMTP conversation the sender announces the envelope sender with MAIL FROM:<address>. Occasionally the address between the brackets is empty: MAIL FROM:<>. This is the null sender, formally the null reverse-path, and it is not an error or a trick. It is the standard way to say "this message is an automatic notification, do not answer it with another automatic notification". Delivery status notifications, bounce messages, many out-of-office replies and some receipts use it, and the whole system of bounce handling depends on it to avoid infinite loops. Mishandling it causes real problems: servers that reject all null-sender mail lose their bounces, servers that accept everything become sources of backscatter, and applications that reply to bounces start mail loops. This guide explains the rules and the practices that follow. It builds on VERP bounces, reading mail logs and open relay checks.
What the standard says
RFC 5321 defines the null reverse-path and requires servers to accept it for bounces. A message with the null sender must never itself generate a bounce, and automatic responders should not reply to it. That rule breaks the loop that would otherwise happen when a bounce to a nonexistent address produces a bounce of the bounce, and so on. On the wire it looks like this:
C: EHLO mta.example.com
S: 250-mx.receiver.example
C: MAIL FROM:<>
S: 250 2.1.0 Ok
C: RCPT TO:<[email protected]>
S: 250 2.1.5 Ok
C: DATA
...
Return-Path: <>
Auto-Submitted: auto-repliedThe visible Return-Path header at the final destination also shows <>. The message body of a bounce typically follows the Delivery Status Notification format with a human-readable part, a machine-readable status part and sometimes the original headers or message.
Who uses the null sender
| Sender of null-sender mail | Example | Should it be answered? |
|---|---|---|
| MTA bounce / DSN | "Undelivered Mail Returned to Sender" | No |
| Delay warnings | "Your message is still queued" | No |
| Vacation or out-of-office replies (properly built) | Auto-reply with Auto-Submitted: auto-replied | No |
| Mailing list software bounces or probes | Subscription confirmation responses and probes | Handled by the list system |
| Read receipts (MDN) | Message disposition notification | No |
| Applications that send "do not reply" notices | Some systems use the null sender deliberately | Do not answer automatically |
SPF, DMARC and the null sender
SPF checks the domain in the envelope sender. With an empty sender there is no domain, so SPF defines a fallback: the check is performed on the HELO or EHLO name instead, as postmaster@ that name. This is why your sending hosts should present a HELO name that has its own valid SPF record, even if your domain SPF is perfect. For DMARC the From header domain matters, and bounces typically have a From such as MAILER-DAEMON@ the generating host, so DMARC evaluation concerns that host's domain. See SPF syntax and DMARC alignment.
- Publish SPF for each mail server HELO name (a simple
v=spf1 a -allstyle record is often enough for a host name that only sends from its own address). - Make sure the HELO name matches the PTR record of the sending IP in the usual way. See reverse DNS.
- Sign bounces with DKIM from your own domain where the platform supports it, so receivers can verify them.
- Do not rely on SPF alone for bounces: they are often delivered through chains where SPF is evaluated against the previous hop.
Backscatter: the main danger
Backscatter is a bounce sent to an innocent person whose address was forged as the sender of spam. It happens when a server accepts a message during the SMTP session and later, after finding that it cannot deliver it, generates a bounce to the claimed sender. The forged sender receives mail about something they never sent, and the bouncing server gets blocklisted for abuse. To avoid creating backscatter:
- Reject at SMTP time. Check recipients (RCPT TO) against your user list before accepting the message. A 550 response during the session is a reply to the connecting server, not a new message to a third party.
- Do not accept first and bounce later for invalid recipients, spam or virus detections. Refuse at the gateway instead.
- Be careful with catch-all and forwarding rules that deliver on to hosts that may refuse the message later.
- Use recipient verification at the edge and keep the verification data (valid addresses) synchronised with the real mail servers.
- If you must bounce, bounce only to authenticated senders or when SPF and DKIM suggest the sender is genuine.
- Limit the content of bounces so they do not include the full spam payload.
Accepting bounces safely
The reverse problem is receiving fake bounces. If your system sends mail with a plain return-path and receives thousands of bounces for messages you never sent, your domain was forged. Two common defences protect inbound bounces:
| Technique | How it helps |
|---|---|
| VERP (variable envelope return path) | Each message gets a unique return address like bounce+id@domain, so only bounces carrying a valid ID are processed. See VERP |
| BATV / signed return paths | Return-path contains a signature that the receiver verifies when a bounce comes back |
| Message-ID or header matching | The bounce body includes the original headers; match them to sent messages |
| Dedicated bounce domain | Keeps bounce traffic separate and easy to authenticate. See custom return-path domains |
Avoiding mail loops
Loops form when two automatic systems keep replying to each other. Typical causes are an auto-responder that answers a bounce, a forwarding rule between two mailboxes that point at each other, and a ticket system that replies to its own notifications. Protect your systems with these rules:
- Never send automatic replies to the null sender or to messages with
Auto-Submittednot equal to "no". - Add
Auto-Submitted: auto-generatedto your own automated notices, and usePrecedence: bulkorX-Auto-Response-Suppresswhere relevant. - Count hops: a message with an excessive number of Received headers should be rejected by the server.
- Limit auto-replies to one per sender per day.
- Keep forwarding rules simple and test them for cycles. See forwarding.
Server policy for null-sender mail
| Policy | Verdict |
|---|---|
| Reject all mail from the null sender | Wrong. You will lose valid bounces and may violate the standard |
| Accept from the null sender without checks | Risky. Accept but verify that the recipient exists and the bounce makes sense |
| Limit null-sender mail to one recipient per message | Sensible. Real bounces go to one address |
| Require valid HELO and reverse DNS for null-sender senders | Sensible. Raises the cost of forged bounces |
| Apply the same spam filtering as other mail | Sensible. Bounces can carry spam too |
| Rate-limit null-sender mail per IP | Useful protection against bounce floods |
Debugging
- Find the log lines with
from=<>and identify the sending host and recipient. - Check whether the recipient ID matches a message you sent (VERP address, Message-ID in the body).
- Read the DSN status code and remote text. See reply codes.
- If you see floods to an address you never use, your domain was forged: tighten SPF, DKIM and DMARC and consider a dedicated bounce domain.
- If your own system bounces spam, move recipient checks to SMTP time.
The null sender is a small convention with large consequences. Accept it, validate what arrives on it, never generate it as a reply to itself and reject invalid recipients during the session, and your bounce handling stays reliable without becoming a source of backscatter.
Check your sending domain Make sure your records support clean bounce handling.
References and further reading
Frequently asked questions
What does MAIL FROM:<> mean?
An empty envelope sender, used for bounces and automatic notices that must not themselves be answered automatically.
Should I block the null sender?
No. That would block valid bounces. Accept it but validate recipients and apply normal filtering.
How does SPF work with a null sender?
SPF checks the HELO or EHLO name instead of the empty sender domain, so publish SPF for your server host names.
What is backscatter?
Bounces sent to innocent people whose addresses were forged, caused by servers that accept mail and bounce it later.
How do I avoid mail loops?
Never auto-reply to the null sender or to auto-generated mail, and mark your own notices as auto-generated.