Say your team ships a new password reset email. QA signs off on staging: the message appears, the link works, the template looks right. Two days after release, support has a queue of tickets. People with Gmail addresses say the email never came. People at a few large companies say it came, but the link was "already used" the first time they clicked it. Nobody changed the code between staging and production, and every test still passes.
So which test email address for developers would have caught this? No single one. A local SMTP catcher suits daily development, your provider's sandbox or a test domain you control suits automated tests, and a real external inbox suits the manual check that mail leaves your production-like setup and reaches a stranger's domain. A temporary inbox such as VookMail covers that last case with no setup, because an address is ready when the page loads. Seed accounts at major mailbox providers then cover the part none of those can see. The rest of this guide is about picking from those options, reading failures once they happen, and the checks that belong in a release.
Why that reset passed on staging
Staging and production are rarely as alike as the deployment diagram suggests, and email exposes the differences more than most features do. A message passes through your application, a queue, a provider, DNS, the recipient's server and the recipient's client. Staging may use a different version of nearly all of those.
Take the first ticket, the Gmail users who got nothing. Suppose staging sends through a provider subdomain that was authenticated months ago, while production sends from a new From domain introduced with the rebrand. Google's sender guidelines require all senders to authenticate with SPF or DKIM, and the Gmail error table lists 5.7.26 for unauthenticated mail. An internal QA mailbox on your own domain might wave the same message through, since your own server may trust your own relay. The test could never have failed.
The second ticket, the "already used" link, has a different cause. Corporate security gateways commonly open links in incoming mail to scan them before the person sees them. If your link redeems the token on a plain GET request, the scanner uses it up, and the employee clicks a dead link. No staging mailbox of yours runs that scanner, unless your own company happens to use one.
These two bugs cannot be seen from the same place. One needs real delivery to a receiving system you do not run. The other needs a change in how the link behaves, which a review would catch more easily than a test. That is the case for layered testing: each kind of address answers one question and stays silent on the others.
| Often differs between staging and production | What it can hide |
|---|---|
Sending domain and From address | Missing or misaligned SPF and DKIM |
| Provider account or sub-account | Sandbox mode, sending limits, a different IP reputation |
| Recipients | Internal domains that trust you, and allowlists that hide bad addresses |
| Click tracking | Rewritten links that break, or a tracking domain with no valid certificate |
| Volume | Queues and rate limits that only bite under load |
| Suppression lists | Production addresses that bounced once and are now silently skipped |
| Base URL settings | Links that point at the wrong host |
Which address answers which question
Here are the options, each with the question it can actually answer.
A local catcher: "what did my app produce?"
An SMTP catcher accepts everything your app sends and displays it in a web page without delivering anything. Mailpit is a popular open-source choice. By default it listens for SMTP on port 1025 and serves its web interface on port 8025, so you point your development settings at localhost:1025 and open http://localhost:8025. Nodemailer's Ethereal is a similar idea with a hosted fake SMTP service. A catcher is fast and private, and it lets you send to any address without any risk of reaching a real person. It also says nothing about DNS, authentication or filtering, because nothing crosses the internet.
A framework's test helper: "did my code ask for the right mail?"
Most frameworks can record outgoing mail in memory during a test run. Laravel has Mail::fake(), Django collects messages in django.core.mail.outbox, and Rails has ActionMailer::Base.deliveries. Use these to assert that a job fires once with the right recipient and token. They are the fastest feedback you can get, and they test even less of the outside world than a catcher does.
A provider's test mode: "does my integration work?"
Providers offer different kinds of help here, and the differences matter. Amazon SES has a mailbox simulator with addresses such as success@simulator.amazonses.com, bounce@simulator.amazonses.com and complaint@simulator.amazonses.com, which produce those outcomes without harming your reputation. A new SES account also starts in a sandbox where it can only send to verified addresses. SendGrid's sandbox mode, set through mail_settings.sandbox_mode.enable, validates your request without delivering. Postmark accepts the token POSTMARK_API_TEST for the same purpose. These are good for API errors and for bounce and complaint webhooks, and they do not show that mail reached anyone. Check your own provider's current documentation, as these features change.
A test domain you own: "does the full flow work, repeatedly?"
For automated end-to-end tests, set up a domain or subdomain you control, with a catch-all mailbox or an inbound webhook, so your test code can read the mail through an API. It takes some effort to set up, but it is private and stable, and it does not depend on anyone else's website. Do not make up addresses at domains you do not own. Someone may own testuser@gmail.com, and they will receive what you send. RFC 2606 reserves example.com and the .test and .example top-level names so that documentation and test data have somewhere safe to point. Those names cannot receive mail, which makes them right for fixtures and useless for delivery tests.
A real external temporary inbox: "would a stranger's domain receive this?"
This is where a temporary inbox earns its place. It is a real mailbox at a domain you do not control and have no allowlist for. Your message has to find the MX record, make an SMTP connection and be accepted. On VookMail, the domains' MX records point to our own mail server, which receives the message and passes it on over HTTPS. A fresh address also means no history: no old messages, no earlier bounce on your suppression list, no filters. That makes it a quick way to reproduce "I signed up with a new address and got nothing". It is also useful for non-developers. A designer or product manager can read what a new user receives without any access to your tools.
Seed accounts at big mailbox providers: "where does it land?"
A delivered message at one domain tells you nothing about the spam folder at another. Keep a small set of real accounts at the providers your users actually use, and check placement before significant template or domain changes. Then watch bounce and complaint numbers after a release. If your mail looks like a spam problem, these accounts are where you will see it first.
| Approach | Crosses the internet | Setup | Automation | Content privacy | Best stage |
|---|---|---|---|---|---|
| Framework test helper | No | None | Excellent | Stays in the process | Unit and feature tests |
| Local SMTP catcher | No | Low | Good | Stays local | Development |
| Provider test mode | Usually not | Low | Good | Stays with the provider | Integration tests |
| Your own test domain | Yes | Medium to high | Good | You control it | CI end-to-end, staging |
| Temporary inbox | Yes | None | Not recommended | Treat as public | Manual QA and pre-release checks |
| Seed accounts | Yes | Medium | Limited | Moderate | Placement checks |
A manual run with a temporary inbox
Here is a repeatable pass through a sign-up flow on staging or a pre-production environment. It should take about ten minutes once you know it.
- Confirm that the environment uses the same provider configuration as production, apart from credentials, and contains only made-up data. If it does not, write that down, because it limits what you can conclude.
- Open VookMail and press New. Type a username that encodes the test, such as
email-signup-03-x7, pick one of the more than 30 domains, and press the arrow. Use the yellow shuffle button if anything in the mail could be sensitive, because anyone who types a descriptive name can open its inbox whenever nobody has it open. - Press Copy and register as a new user with invented profile data.
- Note the time you submitted and the time the message appears. The inbox checks every few seconds, so a gap of minutes points to your queue or provider. Press Refresh if you want to be sure.
- Read the message as a new user would: sender name, subject, preview text, body, button, plain link, footer. VookMail shows detected codes and confirmation links above the message, which is a rough check that your code and link are easy to pick out.
- Look at it with images off. VookMail keeps images off until you allow them and removes hidden tracking pixels. If the message makes no sense in that state, some of your users are seeing the same thing. Do not use this inbox to judge your open tracking, though, since pixels will not fire.
- Press the QR button, scan the address with a test phone and open the same inbox there to tap the real link on a real device, particularly if you use universal links or app links.
- Complete verification and confirm that the account state changes as it should.
- Run the negative cases from the checklist below: reuse the link, wait out the expiry, request a resend.
- Save your evidence: screenshots, timestamps and the address used. Messages are removed after about a day, so a bug report written next week will have nothing to point at.
- Press Delete and remove the test account if your process requires it.
Several addresses can be kept in one browser, so an inviter and an invitee, or the old and new addresses of an email change, can be open at once. If you attach files in your test, remember that VookMail refuses common program files such as .exe and shows a caution on archives, so a rejected attachment there may not be a bug on your side.
Reading a failure
"The email never arrived" describes a symptom in any of about six places, and teams lose hours by starting at the wrong one. Move along the path from your code outward, and stop at the first place you can no longer see the message.
- Did the app try? Search the application log for the send attempt and any exception. Look for a job that was never created, often because a condition or feature flag was false.
- Did the worker run? Check for stuck, failed or retried jobs. A queue worker that was not restarted after a deploy can run old code, and a retry policy can send duplicates.
- Did the provider accept it? Look up the recipient or
Message-IDin your provider's activity log. Accepted, deferred, bounced and dropped are four different stories. - Was it suppressed? If that address bounced or complained before, many providers quietly skip future sends. This often catches testers who reuse an old address.
- What did the receiving server say? Provider logs generally show the SMTP response, and that text is the most useful line in the whole investigation.
- Is DNS right? Check SPF, DKIM and DMARC for the actual sending domain.
- Is it there but hidden? Spam folders, tabs and client filters come last, once a seed account can show you.
What the SMTP reply is telling you
Under RFC 5321, a reply starting with 4 is a temporary failure, and the sender should try again later. A reply starting with 5 is permanent. The enhanced status codes from RFC 3463 add detail after that. An invented log line might look like this, purely as an example of the format:
Example only: to=user@gmail.example status=bounced reply="550 5.7.26 unauthenticated sender"
Read it left to right. The 5 means retries will not help. The 5.7 family concerns security or policy, which sends you to DNS and signing, and away from the recipient's address. The table below gives you a starting point for common patterns.
| What you see | Most likely layer | First place to look |
|---|---|---|
| Nothing in the provider log | App or queue | Application logs and failed jobs |
| Provider says "dropped" or "suppressed" | Provider's suppression list | Remove the test address, or use a new one |
| API returns success, but nothing is ever logged as sent | Sandbox mode still on | Provider settings for that environment |
5.1.1 or similar | Recipient address | Typos, and form validation that altered the address |
5.7.26 at Gmail | Authentication | SPF, DKIM and alignment with the From domain |
4xx deferrals that clear after a while | Receiver slowing you down | Volume, reputation, or a new sending IP |
| Delivered at an external inbox, missing at Gmail | Receiver's policy or filtering | Seed accounts and Google's sender guidelines |
| Arrives, but the link says "already used" | Scanner pre-fetching the link | Redeem tokens on POST, not GET |
| Link leads to a security warning | Click-tracking domain | Certificate on the tracking subdomain |
| Arrives twice | Retry logic | Job idempotency and the timeouts that trigger retries |
| Arrives very late | Queue | Worker capacity, and whether reset mail shares a queue with bulk mail |
That last row is a design point worth an extra sentence. If password resets share a queue with a newsletter send, they wait behind it. Give transactional mail its own queue, and ideally its own subdomain and sending stream, so a marketing problem does not delay a login.
Commands that shorten the search
You can check most of this without leaving your terminal. In these examples, replace the example names with your own.
dig +short MX example.comshows where a domain receives mail. An empty answer needs a closer look, as RFC 5321 lets senders fall back to an address record, while a0 .answer is a null MX under RFC 7505, meaning the domain accepts no mail at all.dig +short TXT example.comshows the SPF record among other text records.dig +short TXT selector._domainkey.example.comshows a DKIM key. Take the real selector from thes=value in the message'sDKIM-Signatureheader.dig +short TXT _dmarc.example.comshows the DMARC policy.openssl s_client -starttls smtp -connect smtp.example.com:587checks that you can reach your relay and shows its certificate. A failure here means a firewall or TLS problem, long before anything about content.swaks --to qa@example.test --from app@example.test --server localhost:1025sends a simple message by hand. It bypasses your app, so you can tell whether a problem belongs to your code or to the route.
For header-level evidence, the most dependable view is a mailbox you control at a major provider. In Gmail, open the message, use the three-dot menu and choose Show original, which lists SPF, DKIM and DMARC results at the top. Keep in mind that one receiver's "pass" does not guarantee another's.
What to check in each flow
"Did it arrive?" is the first question, and usually the least interesting. Each flow has its own ways to go wrong after that.
Password reset
The OWASP Forgot Password Cheat Sheet is the reference to build on here. It asks for a consistent message whether or not an account exists, responses that take a uniform time, tokens that are random, long, stored securely and single-use, and Referrer-Policy: no-referrer on the reset page.
- The request page shows the same message for registered and unregistered addresses, and takes about the same time. An instant reply for unknown addresses leaks as much as the wording would.
- The link works once. Open it a second time and you get a clear explanation with a way to request another.
- Requesting a new reset invalidates older links, or your design says otherwise on purpose.
- Expiry is enforced by the server and has been tested by waiting, or by changing the time in a test environment.
- A successful reset sends a confirmation email, and other sessions are handled according to your policy.
- Opening the link does not change anything by itself. The token is redeemed when the form is submitted.
- The reset page does not send its URL to third-party analytics or error tracking.
- Rate limits apply per account as well as per IP, so nobody can flood a stranger's inbox.
- Addresses with mixed case or plus signs work the same as simple ones.
Sign-up verification
- One sign-up sends one message, including when the job is retried.
- The link or code works once, and the expired-link page offers a way forward.
- A resend either invalidates the previous token or coexists with it as designed, and is rate-limited.
- Unverified accounts have exactly the restrictions you intended.
- Signing up again with a registered address does not tell an anonymous visitor that the account exists, if your product treats that as sensitive. A common pattern is to email the existing owner instead.
- The link points to the correct environment. A staging message that links to production will sooner or later change production data.
Login codes and magic links
- Codes are long enough, expire quickly and have an attempt limit.
- Magic links show a landing page with a button, and redeem on that POST, so a scanner's GET does no harm.
- Opening the link on another device does what your design says, and the user can tell what happened.
- The subject line carries a code only if you have decided that is acceptable, since notifications display it on lock screens.
Email address change
- Confirmation goes to the new address, and nothing changes until it is confirmed.
- A notice goes to the old address, so the real owner can react to an unauthorized change.
- Outstanding reset tokens stop working after the change.
- Two temporary inboxes make this one quick to run by hand.
Invitations, receipts and notifications
- An invitation to a person with no account leads to sign-up with the address prefilled or locked, as designed. An expired or revoked invitation says so.
- An invitation cannot be accepted by a different account unless your design allows that.
- Receipts show correct amounts, currencies, dates and time zones for the user's locale, and attachments have sensible names and open properly.
- Preference changes take effect on the next send.
- Non-essential mail has a working unsubscribe, and account and security mail is clearly separate. Our article on newsletter overload shows how that looks from the reader's side.
- Translated templates exist for each supported language, with correct right-to-left layout where relevant, and no untranslated fragments in the subject.
Reviewing the token code
Testing through an inbox shows behaviour. A short code review catches design flaws no inbox will show you. When you read the code behind reset, verification and magic links, look for these.
- The random source. It should be a cryptographically secure generator, such as
secrets.token_urlsafe(32)in Python,crypto.randomBytes(32)in Node orrandom_bytes(32)in PHP. A timestamp, an incrementing ID or a hash of the email is not acceptable. - Length. Link tokens commonly carry at least 128 bits of randomness. A six-digit code is fine only with tight expiry and an attempt limit.
- Storage. Keep a hash of the token, so that a database leak does not hand out working reset links.
- Comparison. Use a constant-time function such as
hmac.compare_digest,hash_equalsorcrypto.timingSafeEqualwhere you compare secret values directly. - Purpose. A verification token must not work as a reset token, and a token for one account must not work for another.
- Expiry. The server holds the expiry time, so it cannot be changed by editing the link.
- Invalidation. Use of the token, a password change by another route, or an email change should all cancel outstanding tokens.
- Logging. Full URLs with tokens should not reach application logs, analytics events or error trackers. Check your HTTP access logs too.
Headers and authentication
Open the raw source in a catcher to see what your app produced, and in a mailbox you control at a major provider to see what the provider and the network added.
| Header or element | What to verify |
|---|---|
From | The correct brand name, on a domain you own and authenticate |
Reply-To | A monitored mailbox, or omitted on purpose |
Return-Path | The bounce domain, aligned with your domain if you rely on SPF for DMARC |
DKIM-Signature | Present, with a d= domain that aligns with the From domain |
Message-ID | Present and unique, as it is your key for tracing in provider logs |
Content-Type | multipart/alternative with both HTML and plain text parts |
List-Unsubscribe, List-Unsubscribe-Post | Present on bulk and marketing mail, supporting one-click unsubscribe under RFC 8058 |
Auto-Submitted | auto-generated on automated mail, as defined in RFC 3834, to help prevent reply loops |
Some rules to check before you release a new sending domain. An SPF evaluation may not exceed ten DNS lookups (RFC 7208), and going over the limit is an easy way to fail after adding one more vendor to your record. DKIM needs the provider's selector record published and verifying. DMARC needs a record on your From domain, usually starting at p=none with reports turned on and tightened once alignment is confirmed.
Volume changes the rules as well. Google's guidelines treat a sender as bulk at around 5,000 messages to personal Gmail accounts in a day, and bulk senders need SPF, DKIM and DMARC, one-click unsubscribe on promotional mail, and a user-reported spam rate kept below 0.3%, with 0.1% as the recommended target. Other providers have their own rules. Amazon SES, for one, places an account under review at a bounce rate of 5% or a complaint rate of 0.1%. Read current figures from your provider's documentation before planning around them, since they do change.
Address handling and validation
Forms reject valid addresses more often than people realise, and an upstream validation bug can look exactly like a delivery failure. Test yours with these.
| Input | Expected handling | Common bug |
|---|---|---|
user+tag@example.com | Accept | A regular expression rejects the plus sign |
User@Example.COM | Accept, and treat the domain as case-insensitive | Duplicate accounts differing only by case |
o'brien@example.com | Accept | Rejected, or breaks a query or template if not escaped |
first.last@sub.example.co.uk | Accept | Validation assumes a single dot in the domain |
| Leading or trailing spaces | Trim first | "Invalid email" on a correct paste |
| A very long address | Enforce 64 characters for the local part and 254 overall | A short database column silently truncates it |
| Internationalized domains and addresses | Accept or refuse consistently, with a clear message | A crash in encoding or logging |
| A domain with no mail route | Warn or reject | An account that can never verify |
Validate loosely in the form, then let the confirmation email prove the address works. A strict regular expression loses you real users and tells you very little about whether a mailbox exists.
If your product refuses disposable domains in production, your QA process still needs a way through on staging. Options include an allowlist of test domains outside production, a flag that disables the check in test environments, or your own test domain. Do not weaken the production rule to make testing easier. And if you are deciding whether to have that rule at all, our piece on why websites block disposable email sets out the costs and benefits from an owner's perspective.
How it renders
Rendering is where a designer's review helps most, and it needs real messages in real clients.
- The plain text part reads well and includes the full link. "Click the button below" is useless there.
- Dark mode leaves logos visible and keeps contrast. VookMail has a dark mode, which is a start, and the clients your users favour are the real test.
- With images blocked, the call to action is still a real text link or an HTML button.
- Buttons are large enough to tap, and long URLs do not break a phone layout.
- Preview text is written on purpose, with no leftover template wording.
- Headings are semantic, contrast is sufficient, link text is descriptive, and the HTML has a language attribute.
- Missing data does not produce "Hi {first_name}" or "Hi ,".
- The message size stays well under about 102 KB, the point where Gmail is widely reported to clip long messages. Clipping can hide your footer and any unsubscribe link in the body.
Guardrails against accidents
Embarrassing email incidents are mostly configuration mistakes: staging mail reaching real customers, production on a test key, links to localhost. A few settings prevent most of them.
Keep separate credentials per environment, in environment variables or a secret manager. Outside production, use a recipient allowlist so the mailer delivers only to approved test domains and redirects or drops everything else. Build every link from one setting, such as APP_URL, so templates contain no hard-coded hosts. Prefix non-production subjects with something like [STAGING] so a misdirected message is obvious to whoever receives it.
If you copy production data into staging, replace every real address with a synthetic one before any mail worker starts. The order matters, because a worker that starts first can begin working through scheduled mail immediately. And track sandbox mode deliberately for each environment. Launching with production still in sandbox is a classic: the API returns success, the logs look clean, and no mail goes out.
Automated suites should stay on infrastructure you control
A public temporary inbox is the wrong dependency for CI. Scraping someone else's web page is brittle, and your builds would fail for reasons unrelated to your code. It also places your test traffic on a service you do not run. On many services, messages can be read by anyone with the address, so nothing automated should depend on them.
A sensible arrangement looks like this. Framework helpers assert that the right mail is requested. A Mailpit container in your test stack receives the real message, and your test reads it through Mailpit's HTTP API (GET /api/v1/messages), extracts the link and follows it. The provider's test mode exercises webhooks and error handling. A nightly job on your own test domain sends through the real provider and reads the result through an inbound webhook, so you get a daily signal that real delivery still works.
Temporary mail belongs in the human parts of testing: exploratory sessions where you need a fresh identity quickly, a smoke test before release, reproducing a user's report, copy and design reviews, and testing on a phone. For that last one, the QR button or the app from Google Play or Huawei AppGallery gets the inbox onto a test device. Check that links open your app when it is installed and fall back to a working web page when it is not, and that the app notices the verified status without requiring a new login.
A test case that survives a handover
Consistent test cases are easier to repeat each release and to pass between testers. This example has the fields that tend to matter.
| Field | Example |
|---|---|
| Test ID | EMAIL-RESET-03 |
| Flow | Password reset, token reuse |
| Preconditions | Verified test account on staging, with a fresh temporary address |
| Steps | Request a reset, open the link, set a new password, open the same link again |
| Expected result | The second use explains that the link is no longer valid and offers a new request |
| Evidence | Screenshots, Message-ID if available, timestamps, address used |
| Environment | Staging build number and mail configuration |
Putting the test ID in the username, as in email-reset-03-x7, ties each inbox to its case and stops two testers from colliding on one address. The short random suffix makes it less likely that another tester already holds the name.
What not to send to a public inbox
Many temporary inboxes can be read by anyone who knows the address, and even a private one is not end-to-end encrypted, so test accordingly.
- Send only synthetic data: fake names, fake orders, fake addresses. Real customer data does not belong there, and depending on where you operate, sending it could also create a legal problem for you.
- Never send API keys, database credentials, or admin invitations for real systems.
- Delete test accounts regularly, especially privileged ones. An admin test user tied to a temporary inbox is a way in if someone else later holds that address and requests a reset. Since anyone can open a typed VookMail address once nobody has it open, and often at any time elsewhere, this risk persists after the test.
- Never use a temporary address as the owner of a real production account or a third-party service your company relies on.
- Know the retention period. Messages and attachments go after about a day, and the privacy policy has the details.
Testing your own product is one of the clearest legitimate uses of disposable email. Keep it that way: test systems you own or are authorized to test. Do not use temporary inboxes to create accounts on other companies' services against their terms, to collect trials, or to load-test someone else's sign-up form. The terms and conditions cover acceptable use, and the methodology page explains how the service works. VookMail is part of the PAYATE network of free tools.
Before you release
- SPF, DKIM and DMARC verified for the actual production sending domain, with the
Fromdomain aligned. - Production mailer on production credentials, with sandbox mode off, confirmed by a real message.
- Sign-up verification received at a fresh external address, link used once, expiry tested.
- Password reset tested end to end, including identical responses for unknown addresses and the confirmation message.
- Reset and magic-link tokens redeemed on a form submission, so a scanner's GET does not consume them.
- Email change sends to both the new and the old address.
- All links point at the production host over HTTPS, including those rewritten by click tracking.
- Transactional mail separated from bulk mail, at least in its queue.
- HTML and plain text both present and readable, with dark mode and blocked images checked.
- A placement check at seed accounts if the domain or template changed significantly.
- Unsubscribe working on non-essential mail, and translated templates reviewed.
- Evidence attached to the release ticket, and bounce and complaint numbers on a dashboard someone will watch after launch.
Questions developers ask about this
A real inbox accepted my mail. Am I safe at Gmail?
No. Delivery to one domain shows that your message left, found a route and was accepted there. Gmail applies its own authentication rules and filtering, and so does every other large provider. Use seed accounts and Google's Postmaster Tools for that question.
Can I reuse the same test address?
You can within a session, but a fresh address gives you a cleaner test. Old addresses collect suppression entries and old messages, and on a temporary service the inbox is cleared after about a day anyway.
Mail arrives at my catcher but not externally. Where should I start?
A catcher shows that your app produced a message and nothing beyond that, so begin with the provider's activity log. Most of the time the answer is a sandbox setting, a suppression entry, wrong credentials, or an SMTP rejection that names authentication.
How long should a reset link stay valid?
Short enough to limit damage and long enough for slow mail to arrive. Many teams settle on somewhere between 15 minutes and an hour, but it depends on your risk and on how quickly your mail is delivered, and your users' mail may be delayed beyond your control. Whatever you choose, test the expired state and tell people what to do next.
