Is there a standard domain for testing "throwaway" email?

EmailWeb ApplicationsIntegration Testing

Email Problem Overview


I've noticed that the domain

contoso.com

is often used in documentation when a sample is needed. I always figured this was a dummy domain, used like the telephone prefix "555" to route spam into some kind of telecommunicative void (although contoso.com appears to be a real site).

Is there a domain I can safely use when I have to, say, test a registration form 20 times with a unique email address and I don't care what happens to the message, yet I don't want it going to a real person?

Email Solutions


Solution 1 - Email

You can use example.com. According to the Wikipedia article:

> example.com, example.net, and example.org are second-level domain names reserved by the Internet Engineering Task Force through RFC 2606, Section 3,1 for use in documentation and examples. They are not available for registration. > > By implementing the reservation, the Internet Assigned Numbers Authority (IANA) made available domains to use in manuals and sample software configurations. Thus, documentation writers can be sure to select a domain name without creating naming conflicts if end-users try to use the sample configurations or examples verbatim. > > When an address such as "[email protected]" is used to demonstrate the sign-up process on a website, it indicates to the user they should fill in an actual e-mail address at which they receive mail. "example.com" is used in a generic and vendor-neutral manner. > > These domain names resolve to a server managed by ICANN.

Solution 2 - Email

I started using [email protected] for this purpose, but then I began getting responses back from my outgoing email server saying delivery to that address had been delayed. I don't know about the OP, but I want something that I can send to and completely forget about it.

Now I'm changing over to [email protected] -- I know that it gets delivered to their catchall (so I'm not getting any junk back about delivery errors), and if I like, I can even go check at http://mailinator.com/ to see if the email went through as planned. (But it's not clogging up my inbox if I don't care about it.)

Solution 3 - Email

http://www.faqs.org/rfcs/rfc2606.html has all the standard reserved names. Notably, example.com and the like started resolving a few years ago. Before that they were truly reserved names, not even found in DNS. But they are still useful "fake" domains.

Solution 4 - Email

A simple way of testing email delivery is to use Gmail with the "plus" rule. We use this when registering our shared email account with some services that use unique email addresses as the username. This enables us to use a single inbox for all of the incoming registrations and filter the messages to all go to the same folder.

http://fieldguide.gizmodo.com/how-to-use-the-infinite-number-of-email-addresses-gmail-1609458192

> One trick you may or may not have picked up about Gmail is that you > can add in periods anywhere in the front part of your address and it > makes no difference whatsoever: [email protected] works just the > same as [email protected]. What's more, you can add a plus sign and > any word before the @ sign (e.g. [email protected]) and > messages will still reach you. If these tweaks make no difference, > then why use them? One major reason: filters.

Solution 5 - Email

how about example.com?

It is a valid domain, but reserved by RFC to be used for documentation.

Solution 6 - Email

Frankly, I utilize an email address from my own testing email server for this because part of the testing is to ensure that the form information actually gets to the email address, and since checking it is outside of my normal work-flow, that means I have to actively do so.

Solution 7 - Email

Contoso.com is a dummy domain that can be used for testing.

It's used by Microsoft as an example whenever they need an example company or domain. They're the ones who registered it, and they use it frequently in their examples, so I doubt they care if you use it for testing. They likely ignore anything that goes it seeing as how its posted all over the web and a likely target for spam.

Solution 8 - Email

guerillamail.com for example is blocked by several blacklists (like http://www.block-disposable-email.com). So maybe it's better to use contoso.com.

Gerold

Solution 9 - Email

We are using .local domains for that.

For testing purposes I like to have e-mail addresses that really do not exist and cannot be registered. Even access by IANA like for example.com is a no-go for security reasons. Accidently sent e-mails to [email protected] maybe be delivered to servers controlled by IANA. This maybe an privacy issue for Max Mustermann and so on ...

Do not treat me wrong: This is just for additional security minimizing the risks whereever possible.

Solution 10 - Email

If it's email you want to test, why not use a disposable email address, such as GuerrilaMail? You can send an email to [email protected], or set your own user name, for a limited amount of time.
BTW, Contoso is a Microsoft dummy site they've been using to demo .Net technologies for a couple of years now.

Solution 11 - Email

you could configure your in house MTA to discard all example.com/net/org emails. you can be sure that no one would expect them to be delivered. and that would save your server from using resources and wasting bandwidth.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionharpoView Question on Stackoverflow
Solution 1 - EmailAlex PapadimoulisView Answer on Stackoverflow
Solution 2 - EmailCurtis GibbyView Answer on Stackoverflow
Solution 3 - EmailcatfoodView Answer on Stackoverflow
Solution 4 - EmailJames MobergView Answer on Stackoverflow
Solution 5 - EmailEric PetroeljeView Answer on Stackoverflow
Solution 6 - EmailStephen WrightonView Answer on Stackoverflow
Solution 7 - EmailBrandonView Answer on Stackoverflow
Solution 8 - EmailGeroldView Answer on Stackoverflow
Solution 9 - EmailFabian BarneyView Answer on Stackoverflow
Solution 10 - EmailTraveling Tech GuyView Answer on Stackoverflow
Solution 11 - EmailPaul Van BommelView Answer on Stackoverflow