• What's new

Mailgun Validations Now Supports Alias and Long-term Disposable Address Identification

Peter Trinder
5 min read
featured

Have you ever found your signups filled with email addresses like username+junkmail@gmail.com?  If so, congratulations – you’ve found an email alias. This has become a fairly common practice with Google and Microsoft email addresses. Users are able to create unlimited alias addresses by appending a plus sign to the end of the local part of their email address. 

What can we do about alias addresses?

Alias addresses are used for a variety of reasons, from testing signups (as you may have done) to circumventing terms of service (if you can only have one account per email address) or to ensure companies don’t share a users email address, and to classify email, especially as junk or spam.

We’re excited to share that our email validation service is now able to identify these alias addresses for you and return the root address. We strongly encourage you to continue to use the email provided by the user, but this information, as is shown below, can be used to track users who attempt to sign up for multiple accounts using a single email address

1{
2    "address": "username+junkmail@gmail.com",
3    "is_disposable_address": false,
4    "is_role_address": false,
5    "reason": [
6        "mailbox_does_not_exist"
7    ],
8    "result": "undeliverable",
9    "risk": "high",
10    "root_address": "username@gmail.com"
11}
12

How does it work?

We classify email addresses as alias addresses if they contain characters that could be removed without affecting the destination of an email. Periods and plus signs are the main offenders here but different providers allow for different characters to be used for this kind of alias address.

Gmail addresses allow users to add periods and plus signs to their addresses without affecting the destination of email. Periods can be placed anywhere in the local part of an address. Plus signs must be placed after the local part but before the @. The user can then write anything they want after the plus sign. The text after the plus sign is often used as a tag, and may be used to identify your company if you’re selling email addresses.

Outlook and Hotmail addresses treat plus signs the same way as Gmail addresses, but periods cannot be added to an address without altering the destination of the email.

The curious case of Yahoo disposable addresses

Users of Yahoo Mail do not have these alias addresses available to them, but they do have an interesting alternative. Yahoo allows users to create disposable email addresses. These are distinct from the above mentioned alias addresses, because they must be manually created, they can be deleted at any time, and they cannot be traced back to the root address. When a user deletes one of these addresses, any mail arriving at the inbox will be bounced.

To create a Yahoo disposable address, users must first define a new “base name”. This name can be anything and does not need to be related to their username. Once a base name is defined, the user may create up to 500 disposable addresses, each using the base name plus a keyword separated by a hyphen.

For example, username@yahoo.com could create a basename of “disposable” then create the keyword “spam” to send/receive mail with the address disposable-spam@yahoo.com. Since we cannot identify the root address, and these addresses are easily detectable, we mark them as disposable addresses with the reason “long_term_disposable”.

1{
2    "address": "username-junkmail@yahoo.com",
3    "is_disposable_address": true,
4    "is_role_address": false,
5    "reason": [
6        "long_term_disposable"
7    ],
8    "result": "unknown",
9    "risk": "high"
10}

To recap...

Alias address identification is available on Foundation, Growth and Scale plans. Give it a try and improve the security of your platform and your email deliverability and reputation. Trust us, it’s worth it.

Last updated on May 05, 2021

  • Related posts
  • Recent posts
  • Top posts
View all

Always be in the know and grab free email resources!

No spam, ever. Only musings and writings from the Mailgun team.

By sending this form, I agree that Mailgun may contact me and process my data in accordance with its Privacy Policy.

sign up
It's easy to get started. And it's free.
See what you can accomplish with the world's best email delivery platform.
Sign up for Free