Symptom: An address passes validation, but the registration email never becomes readable.
Fastest fix: Test syntax, domain routing, controlled receipt, and account ownership as separate outcomes; never label a format pass as a working mailbox.

RFC 5321 sets a maximum of 64 octets for a local-part and 255 octets for a domain. Those limits describe SMTP constraints, not proof that a particular address exists or can receive a message. We recommend recording each stage independently and using a controlled inbox to confirm receipt. If the product must verify control of an address, complete the product’s own verification flow as a separate test.

This guide is for developers building or maintaining their own signup forms, QA engineers checking email validation regressions, and indie developers who need reliable evidence before release. It is not a guide to bulk account creation or blocking whole categories of users.

What does a passing format check actually prove?

A format validator answers a narrow question: does the input fit the syntax that the application has chosen to support? It does not prove that the application accepted the address, that the sending system submitted a message, or that a person can open the destination inbox.

The syntax has standards behind it. RFC 5322 defines the structure of an address, while the application’s validator and supported mail infrastructure determine which valid forms your product accepts in practice. A regular expression can reject an address that the product could otherwise handle, or accept a string that fails later in your own flow.

Use a maintained validation library rather than growing a custom regular expression from a few examples. OWASP recommends matching validation to the system’s actual needs and treating email format validation separately from verification of access. Its input validation guidance and email validation and verification guidance are useful references when reviewing the library and the policy around it.

Test result What it supports What it does not establish
Syntax check passes The input matches the application’s configured address rules That the domain routes email or the mailbox is reachable
Application accepts input The product’s current validation and business rules allow the address That a message was sent or received
Domain lookup returns routing information A DNS lookup found information relevant to mail routing That the specific mailbox exists or is accessible
Controlled inbox displays the message The test message reached an inbox that the test team can inspect That the intended user controls the address
Product verification completes The product’s verification step completed for the test address That the address will remain available indefinitely

This distinction matters when a test says “email valid.” That label can conceal several different checks, each with a different failure point. We suggest making the recorded result explicit: syntax passed, policy accepted, routing observed, message received, or ownership verified.

A useful naming rule for test reports is to reserve “verified” for the event your product actually verifies. If the test only runs a regular expression, call it a syntax test. If it sends a message but never inspects the receiving inbox, call it a send attempt. Clear labels make a failed test actionable instead of sending engineers to investigate the wrong layer.

Why can a syntactically valid address still fail to receive mail?

A form can accept a string that looks right while the later delivery path fails. The point of testing is to locate the boundary, not to infer the cause from a single green check.

Layer under test Example evidence to capture Common interpretation error
Syntax Validator result and normalized input Treating acceptance as mailbox existence
Product policy Rule name and allow-or-reject result Treating a policy block as proof of abuse
DNS and routing Query type, response, and lookup time Treating an MX result as proof of a working inbox
Sending system Queue or SMTP response Treating submission as final delivery
Receiving inbox Message visible in a controlled account Treating receipt as proof of long-term access
Ownership flow Verification action and resulting account state Treating a delivered link as completed verification

The domain lookup is especially easy to overread. RFC 5321 describes SMTP and mail routing. MX records help identify where mail for a domain should be handled; they do not confirm that a specific local-part exists or that the recipient can access it. DNS can provide a routing clue, but the receiving system’s behavior and the actual delivery result remain separate evidence.

There is also a standards-defined case in which a domain explicitly indicates that it does not accept email. RFC 7505 defines the Null MX record. That is a reason to handle the DNS result carefully, not a shortcut for deciding whether a specific person owns an address. Avoid turning one lookup into a mailbox-existence claim.

A sending system can also report that it has accepted a message for processing without proving that the message appeared in a readable inbox. SMTP responses have defined meanings in the protocol; a successful response from one step is evidence about that step, not an end-to-end receipt guarantee. Capture the response alongside the test run, then inspect the controlled destination before concluding that delivery worked.

When a message is missing, check the path in order: did the form accept the input, did the application trigger the send, did the sending system accept the request, did the destination domain have relevant routing, and did the controlled inbox show the message? This order prevents a format bug from being confused with a mail queue problem, or a spam-folder result from being reported as a validator failure.

Can an MX record prove that a mailbox exists?

No. An MX lookup concerns domain-level routing, not the existence or accessibility of an individual mailbox. Even when a domain has mail routing, a receiving system may reject a particular recipient, accept mail for many recipients, or apply behavior that a DNS query cannot reveal.

Use the result as a clue, not a verdict. If the lookup fails, investigate the domain configuration and the lookup method. If it succeeds, continue with a message sent to an inbox that your test team can read. Do not tell customers that an address is “deliverable” based solely on an MX result.

Some domains use catch-all behavior, and some receiving systems avoid revealing whether a particular mailbox exists. That makes recipient probing an unreliable basis for your registration policy. It can also produce false confidence: an SMTP conversation may not establish that a person can sign in to the mailbox, retrieve a message, or complete your product’s verification step.

For regression testing, keep routing and receipt as different assertions. A routing test can record the DNS observation. A receipt test must inspect a controlled inbox. An ownership test must then exercise the product’s verification action and check the resulting account state. Each test has a specific purpose, so a failure points to a more useful investigation.

How should we test false rejections?

A validation library is not a substitute for a test set that reflects your product. Build examples around the forms your mail system claims to support, then include boundaries and intentionally invalid inputs. Keep the expected result and the reason beside each sample so reviewers can distinguish a syntax rule from a product-specific policy.

Case group Test input design Expected assertion
Supported ordinary address A normal address used only in the test environment Accepted by syntax and application policy
Boundary syntax An address form supported by the chosen library and mail stack Result matches documented product support
Malformed input Missing separator, empty required component, or invalid structure Rejected by the intended validation layer
Policy-restricted domain A domain blocked by an explicit project rule Rejection names that policy, not a syntax error
Controlled test inbox An address the team can access for the run Message is readable and linked to the test
Ownership not completed A message arrives, but the verification action is not performed Account remains unverified according to product rules

Do not assume that every uncommon-looking address is invalid. Compare the validator’s behavior with its documentation and the address syntax in the relevant standards. Then check whether your own sending and account systems can support the accepted form. If the product deliberately supports a narrower set, document that as a compatibility decision rather than describing all excluded forms as malformed.

When the form rejects an address, record the exact rejection layer. “Invalid email” is too vague if the true reason is a domain policy, a field-length constraint, or a mismatch between the validator and the mail system. The user-facing message can remain concise, while logs and QA results retain the rule identifier and input context needed to reproduce the result.

Domain rules deserve separate scrutiny. A project may choose to restrict certain domains for a defined product reason, but a match against a list is not proof of abuse. Test the policy against your own signup requirements and measure the false-rejection cases. If users with legitimate addresses are blocked, the issue is policy fit, not necessarily email syntax.

For test data, use addresses under your control and avoid putting real customer or coworker information into development and preview environments. Keep the test environment isolated from production actions, and make sure test messages cannot trigger real customer workflows. We also recommend documenting who can read test inboxes and how the team handles message contents. For the privacy side of the setup, review Temp2U’s privacy notice before choosing whether the service fits your team’s handling requirements.

A regression workflow we can repeat

  • [ ] Write down the validator library, version, and supported address rules used by the application.
  • [ ] Build a test set containing supported ordinary inputs, documented boundary forms, malformed inputs, and addresses rejected by explicit product policy.
  • [ ] Assert the result at the syntax layer before testing application-level acceptance.
  • [ ] Record policy rejections separately, including the rule that caused each rejection.
  • [ ] In an isolated environment, submit a registration request using an inbox the test team can access.
  • [ ] Capture whether the application triggered the send and any response returned by the sending path.
  • [ ] Inspect the controlled inbox and record whether the expected message is readable.
  • [ ] Complete the product’s verification action and assert the resulting account state.
  • [ ] Re-run the cases after changing the validator, sending configuration, or domain policy.
  • [ ] Keep test messages and addresses out of production customer records.

This sequence produces evidence that is useful for debugging. If syntax passes but the application rejects the address, inspect policy and integration behavior. If the application accepts it but no send is triggered, investigate the registration flow. If sending is accepted but no message is readable, follow the delivery path. If the message arrives but the account remains unverified, inspect the verification action and state transition.

Keep the result labels tied to the evidence

A compact test report can use separate fields rather than one pass/fail value:

Field Example value
Syntax result Passed under the configured validator
Product policy Accepted, or rejected with a named rule
Routing observation Lookup result recorded; not treated as mailbox proof
Receipt result Message visible or not visible in the controlled inbox
Ownership result Verification completed or pending
Account state Verified, unverified, or blocked by a documented rule

That format helps QA identify regressions without making claims the test did not establish. It also helps product teams review their error messages: users should not be told that their mailbox does not exist when the application only knows that a policy rule blocked the domain.

For a deeper review of address choices in a signup flow, see our guide to choosing an email address for registration. Keep the registration policy tied to a clear product requirement, and use tests to expose the cost of rejecting legitimate addresses rather than assuming stricter validation is automatically safer.

If your test needs evidence that a message actually arrived, use a controlled receiving address and inspect the message; that evidence complements format checks but does not replace them or prove account ownership by itself. Temp2U may be one option for a controlled test inbox, but check the current service page for the capabilities and limits that apply to your workflow. For important accounts, use a long-term address you control and can recover. For a test run that only needs a message inspected, review Temp2U as one part of the receiving setup—not as a substitute for validation rules or account security controls.

Further reading

Disposable email, receive verification codes, keep your real address private, and let it expire when you're done.

Choose the right email boundary based on how long you'll actually use it: a one-time inbox or a long-term forwarding alias.

Create a disposable emailCreate a forwarding alias