« Flickr Pic: A boat sank | Main | Ya Leave Town for 2 FRIGGIN' DAYS... »

Sorting your email with GMail

Ever needed to submit a valid email address to register for access to a website or make an online purchase? Ever wondered if in doing so your address wouldn't end up sold to or stolen by some spammer. Ever wondered who your address gets shared with?

I came across a great way of using Google's GMail to create disposable/sortable email addresses that let you duck spam and find out who is sharing your address and with whom.

If you have a GMail address named johndoe@gmail.com you obviously know that email sent to johndoe@gmail.com will reach you. The interesting feature that we're going to use is this: email to johndoe+amazon@gmail.com and johndoe+ebay@gmail.com will also reach you!

Need a valid address with eBay? Just stick "+ebay" immediately after your GMail username. Same for Amazon or your cable company or mailing lists to which you subscribe.

For the sake of this example, let's say you need to sign up for a mailing list that interests you, but you're afraid spammers might get your address. We'll call the list "exoticflowers". Sign up with the list using the address "johndoe+exoticflowers@gmail.com". Email to that address will still come to your "johndoe@gmail.com" address even though the "To:" will include that "+exoticflowers" in it. Don't add ANY spaces: those are not allowed in email addresses.

Okay, here's where it gets useful!

Click on "Settings" at the top of the page and then click on "Filters". Choose "Create a new filter". The ONLY piece you need to fill out in the little form that appears is the "To:" line. Type in "johndoe+exoticflowers@gmail.com" and click "Next Step".

On this screen, click on the little drop-down menu next to "Apply the Label" and choose "New Label". Type in "Exotic Flowers" and hit "okay".

So what have we done? We have created a filter so that every message to "johndoe+exoticflowers@gmail.com" will be labeled with "Exotic Flowers". Instead of showing up in your main mailbox, these will now automatically appear under the label "Exotic Flowers". You'll see a list of labels on you Inbox screen along with how many new messages have come in with that label. Just click on the label name to see the messages.

This does several great things for you. First, if you get lots of mail you can now sort it into categories that are useful to you. Second, if you have trouble getting off a mailing list you can simply filter that address straight to your Trash so that you never have to deal with it. Finally, if you start getting spammed you'll know which company or list let the spammers get you address: those spams will contain the modified address, so they'll end up in the same folder as the company or list that let the spammers (or "affiliated company") get your address.

GMail is an incredible application that will let you do LOTS of cool stuff with your email. This is just one example: search the web and the GMail site for more clever tricks!

If you don't have a GMail account and want one (they're free, but invitation only), just leave a comment for me and I'll send you an invitation (I currently have 100 to give away).

Comments

Seems to work with .Mac as well. Is this a general property of email systems?

The only problem with this is that the companies making up the spam mailing lists will learn very quickly to just strip off the "+name" part of the address before selling your name.

While I use that hack wherever possible, a lot of registration forms will not accept the plus sign as a valid e-mail address.

Would it be so hard for spammers to recognize this trick and truncate anything after + ?

Great Gmail hack. I've been doing this for a while now, but I have noticed that some forms don't allow a '+' in the email address when registering. But for those that do, it's also a good way to track which sites are selling your email address to others.

Man, I love filtering mail and this is great. I've been trying to show others a basic filtering system but this is really killer. Thanks for the info (& invite).

Hey, I'd like a Gmail account. It must be better than hotmail.

This is great advice, for a while... the problem is that spammers are crafty critters, and it's not going to take them long to catch onto this trick. When they do, they'll begin stripping the + and following characters in any email address to gmail.com. Then they'll be able to evade your filter.

Now, why didn't Yahoo!, Google, MSN and the other e-mail biggies figure this out years ago? Seems like almost all of their efforts are geared toward attracting both customers and paying customers instead of providing a little help for the most important problems facing e-mail users. Their attemps to lump all spam mail into one folder are not fail-safe, either. I have found that Hotmail seems to do the best job, but the program itself has a number of unsolveable flaws.

Congratulations on your solution to a major portion of the spam problem! Now, put your talents to work on the other two mail problems. Who knows, you might ease our pain in those areas, too. Best wishes, good luck and take care, Kevin.

P.S. "Merry Christmas to all and to all a good night!"

The only problem is that a lot of software is written by morons and tells you that +s are not allowed in email addresses.

Using anything@yourdomain.com is more fool-proof, yet also more expensive.

Hi, that's very helpful. I always wondered which one of the sites, who always claim that they will never share your email, do sell out my email addy.I get tons of spam, and when it gets excessive i do go to each one and tell them to take me off their list. Sometimes it works, sometimes it doesn't.I don't have a Gmail account, but love to get one after reading your article. Nicely done. Cheers.

Gmail seems to offer more and more exciting features. And sorting email that way sounds completely revolutionary.

I tried the "+" trick. The site I was at wouldn't accept certain characters in the e-mail address - the plus sign was one of the unacceptable characters. The website is http://search.sothebys.com/

I've known about this for a while... but it sucks because half the websites you come across don't let you use the "+" in the email field.

I have been spammed until I'm blue in the face... please help.

The only problem with that is it would be very easy for spammers to create a script to remove anything including and after the "+" sign and before the @ sign and then spam will come directly to your inbox.

I'd love to have a GMail invite if you still have some available. Thanks, Susan

Most decent SMTP servers have a feature like this, most use the "+" character, some ship with this feature disabled by default.

I've used this for several years on other email accounts, but had never tried it with GMail. I've only found it to be somewhat useful, and the reason I say "somewhat" is that many sites aren't written to understand "+" as a valid character in an email address. Many sites store your email address in a database and the process of stuffing your address into the database will change it from:

  john+spam@example.com
To something like the following:
  john0x2bspam@example.com
  john%2bspam@example.com
  john spam@example.com
The last tends to just get recognized as "spam@example.com" on most systems.

One example I can think of is "Photo.net". I had originally registered with "+photonet" in my email address, now I receive email from them at the correct address, but cannot login because either the "+" was changed to something, or eliminated, or their code for recognizing a valid login is different than their code for recognizing a valid email address.

You could complain to the offending site about not handling valid email addresses correctly, they might ignore you. I've had about 75% success getting sites to recognize a .info address as being a valid address and changing their code.

It's good when it works, just be prepared for it to not work when you really want it to work.

-John

good! very interesting thing to know.
In fact I've 2 address and I use only one of them for every "internet use", while keeping the other one private, for friends only..
but the 1st is already full of spam everyday, while the private is going to be no more so private.. :/

I have no gmail account, but I will keep in mind all this when I will have one.

(sorry about my english: I'm italian) :P
:)
yayo

I tried sending an email from my gmail account to a email+something@gmail.com and I never received it. Is this documented anywhere? Or does it not work from within gmail?

In THEORY this is a good idea. Why in theory? Because if I was a harvester of email addresses (I am not presently) It wouldn't be difficult for me to "clean up" all of these GMail addresses. With just a little use of Regular Expressions it's quite easy to remove anything from a gmail.com address that contains a plus sign [+] through to the at sign [@].
In fact, here's how I might do it in VBScript

Dim regEx
Set regEx = New RegExp
regEx.Global = True
regEx.IgnoreCase = True

regEx.Pattern = "/+[^@]*>/g"
strGmail = Trim(regEx.Replace(strGmail,"@"))

Now, not only have I skirted around this method I actually know that I have a legitimate GMail address that I can do whatever I want to.

My suggestion: get your own domain and set up a different email alias whenever you sign up for something (example: exoticflowers@yourdomain.com). You set it to forward to your primary email account which you can also have forwarded to your GMail account. From there, you can then set up a filter/label as in your directions. But the great part is that you can also delete your alias at any time and there's no way that the harvester could know what your *real* email address is.

By creating literally hundreds of aliases I am able to effectly control any spam problems from sites selling my email address (Best Buy of all places actually did this - but by having bestbuy@... I was able to end the abuse immediately). Couple that with the awesome GMail spam filtering means I never see any more spam.

An example of this is this comment. Attempts to send email to the provided email address will go nowhere.

This actually will work with any email program/service. Adding the +whatever is a part of the SMTP protocol, so even if you're not using GMail it'll work.

you've been digged it seems - great idea but im afraid if they take this feature off i might be SOL

please send me an invite to Gmail. Thank you and good advice.

thanks for the hint and thanks for the gmail invite !!

This is a great and really helpful article. But nto really helpful to fight spam. Why? read on..


Now that we all know this sweet little trick lets think of a scenario. Here I'm a spammer or say a webmaster who sells email lists to spammers. Once I have "@gmail.com" in the email string I will parse it to see if it has "+". If yes remove the text between "+" and "@" including the plus. Stich rest of the string together. Now I have the orignal email address where I can span away to glory :)

Great tip! I will definately be using this in the future :)

Thanks for the tip!

this doesn't appear to work for me... is there something that needs to be done to activate it?

Great tip. It works with a .mac account as well!

thanks for the info. i knew something about the + thing, but didn't really know what i could use it for. now i can automatically label things too using the filter, i never really looked that much into the gmail options, but now i will. and thanks for the great tip on how to see wht companies are spamming us. if they spam us when they say we won't, we can finally file a complaint and get them in trouble with the attorney general.

first, many many email services support this.
second, all the spammers know this. If they get hold of your "+" email address.. they will just strip away the plus part and spam you.

at least google before you post.

This is great in theory, but it would be easy to right a script that strips the "+" everything between the "+" and the "@" to find the real address...

Shrug

Cool tip! I even used it here! ^_^

Does it only work with GMail? I'd use it if it worked with my other addresses. :(

THAT WAS FREAKING AWESOME!!! THANKYOU!!!

Google Family

activj.org
consistencyinaction.com
davemarcotte.com
newtoswinging.com
passmelt.org
sextgp.com
spywaredetect.net
swingingcentral.com
upgrademywife.com
lilt7.com
meipu.net
moto44.net
qlong.com
seapoem.com
1001cards.com
1010win.com
101malls.com
10minresume.com
11alivenews.com
11hour.com
123greettings.com
123tabs.com
1bluemountain.com
1on1tours.com
1stmovieclub.com
2bluemountain.com
39broadway.com
4-wheelers.com
44wallstreet.com
495.com
4wheeldrives.com
5megs.com
7come11casino.com
98kiss.com
9fingers.com
9vailroad.com
aafees.com
aaltavista.com
aautotrader.com
aavis.com
abcnewa.com
aboout.com
abou.com
abpeet.com
absolutelyfreeeroticstories.com
acbnews.com
ackjeeves.com
adamsfilms.com
adamsmarkhotels.com
admunds.com
adultchech.com
adultdonald.com
adultfriendfiender.com
adultfriendfinde.com
adultfrienfinders.com
advancedadapters.com
aenta.com
agapecards.com
agoogle.com
agosar.com
ahotmail.com
aimes.com
air-tran.com
aircanad.com
gooogle.com
3576.net
466453.com
94top.com
adsbygoogle.com
akwan.com
alexiswalker.com
allevil.org
appliedsemantics.com
appsem.com
apsem.com
chillout-uk.com
cobrasearch.com
crotales.com
cyber-lolita.com
cybersayen.com
davenorman.net
divesfl.com
econet-cyber.com
firehunt.com
floralartbyamy.com
foofle.com
gewgle.com
gewgol.com
ggoogle.com
gogle.com
googel.com
googil.com
google-desktop.com
google.biz
google.info
google.net
google.org
googleanalytics.com
googlearth.com
googlebase.com
googlebot.com
googlecache.com
googlecom.com
googledesktop.com
googlee.com
googleearth.com
googlegear.com
googlegear.net
googlegear.org
googemaps.com
googleprint.com
googleproxy.com
googlescholar.com
googlie.com
froogle.com
5899.com
cadeus.com
coldthis.com
deja.com
dejanews.com
each-link.net
feoogle.com
frewgle.com
friigle.com
froogle.info
froogle.org
frooglegear.com
frooglegoogle.com
frooglestore.com
frooglewml.com
frooglr.com
ftoogle.com
hypercubictransmission.com
mkwan.com
my-deja.com
my-dejianews.com
quarkhq.com
hello.com
dontswitch.com
kimphotosoftware.com
lifescapeinc.com
mypicasa.com
picasa.com
picasa.net
picasa2.com
picasasoftware.com
piccasa.net
wwwpicasa.com
wwwpicassa.com
wwwpicassa.net
wwwpiccasa.com
wwwpiccasa.net
wwwpiccassa.com
wwwpiccassa.net
adsbygoogle.com
alloutbigbash.com
alloutbigbash.net
benefitsharmony.com
careyca.com
choulex.com
choulex.net
choulex.org
djtronic.com
djtronic.net
djtronic.org
djxxl.net
friendsbychance.com

Works great, until spammers realize that + is so rare in email addresses that they can simply ignore stuff after the + and have the original address back.

This isn't really a good replacement for mailinator or the like.

Please send me an invitation for Gmail.
Thanks!

very very cool tip, will definately use...no need for gmail invite, but thanks!

This sure is a great idea. But many of the sites reject the email-ids with the "+" symbol.

You really shouldn't be posting JohnDoe@gmail.com examples. There could really be a "johndoe". Instead always post example@....com as this is generally kept by the owner of the domain for example stuff like this.

an update... here are loads of invites: http://groups.google.com/group/Gmail-Invites?lnk=li

Thanks for this tip. Have saved this bookmark for when and if I get a Google Mail account.

Just a note: this feature is not specific to gmail. This is a common behaviour of email servers, so you don't need to have gmail to use it. It's been around for years, and I have no idea why it hasn't been noticed that much. (most people have no idea it exists) I've been using it for some time for the same purpose, and I've noticed one little problem with it: Most sites who "validate" your email address by checking the format, expect something@somewhere.com and if you use a + sign in the address they consider it an illegal character and won't let you enter an address such as myname+ebay@gmail.com. So, in many places that you'd like to use your "other" email address, it just won't work, because whoever designed the site did not know that email addresses of this form are valid.

the only potential drawback is that a spammer could run an automated routine to remove anything after the plus sign on gmail addresses

As soon as spammers realize this they will just send directly to 'username' before the + sign instead of sending to 'username+piepie'.

Unfortunantly there are alot of programmers working on ways how to spam more people.

Nice article though.

hey, can u invite me to gmail please? pretty please?
merry chrissie and happy new year neway
hav fun

that's a good thing i've been using for months now. but the thing is, many field constraints don't allow '+' email adresses....

That is such a great suggestion. I never knew you could do this. Thanks for the tip.

How long before Google blocks this feature?

Or is it something that GMail is allowing? I think it would be a great method... but I'd hate to use it for a couple of sites, then have everything bounce because Google "fixed" their system.

That's fricken genius. I've often wondered just who it was that sold me out to the spammers...

Hi !


Wonderful wonderful!


Thank you thank you!

James

Thanks for the tip! Feel free to pass along an invitation. Thanks again.

I use a similar system except I created a dummy account that forwards to my real account because it won't take spammers long to figure this out...

But wait, what will prevent some spammer to get your john+exoticflower@gmail.com email and strip off the "+exoticflower" part? Then you didn't solved anything...

This may have some short term value, but spammers will quickly adjust. It will be easy to scrub email addresses of everything between the "+" and the "@" and harvest your email address while removing the "helpful" information you get from using it.

Interesting, but ultimately "meh".

: )

This doesn't work. I just tried it and the form I was in told me that the email address I entered "insert address"+eztracks@gmail.com was invalid. Does this system just work for mailing lists? Did I do it incorrectly?

Very cool. This is almost enough to make me want to start using GMail.

Good trick!

If I may, there's alo the wonderful service called "Jetable" ("throwable", in French) at http://www.jetable.org/en/index (in English)

It allows you to create a unique alias @jetable.net/org/com, valid for only one hour, one day, one week or one month, which will forward anything received to your regular address.

Just enter your regular e-mail address in the first field, the lifespan of the alias, and tada.
After the selected length of time, the alias will simply top existing.

You can create a Gmail account yourself if you have a cell phone. They send a confirmation to your cell phone via SMS and you can set up your own account that way.

The invites still work, of course, but the service is no longer invite-only.

I use this but for notes to myself only. Thanks for extras. Backtracking here (in Russian:).

thats ok dude but the application is not upto the mark. i mean look wise. n feature wise...it will require time to evolve. even i have 100 invitations with me but i dont use those.

Of course it's only a matter of time before spammers catch wind of this and run a

sed -e -i 's/+.*@gmail.com/@gmail.com/'
on their email lists.

Great post. I'd love to be able to try that, especially since I'm always looking for new ways to stick it to spammers.

One question, are you aware of any limitations that would prevent it from working with other free email accounts like Hotmail or Yahoo?

Thanks,
Michael

Won't people just start stripping everything after a "+" when sending spam?

spammers are assholes but not idiots. they'll apply an expression soon enough, if they haven't already, to identify gmail account names with '+'. then they'll truncate the + and everything that follows until the '@' so that the real address is used:
a+trap@gmail.com --> a@gmail.com

I left a comment about this topic yesterday - can you explain why you didn't post it?

Great idea, but let's say my email ID is johndoe@gmail.com. I use johndoe+ebay@gmail.com and that works because ebay is honest.

Let us say I then use johndoe+spammer@gmail.com and then all spammer has to do is strip away +spammer and start spamming johndoe@gmail.com and my gmail account is toast (or spam :-) )

Any workarounds someone can suggest?

Most excellent. Thanks for the tip!

Two problems with this approach:

1) Spammers are starting to get savvy to this. The smarter ones will chop the +.

2) I've seen some particularly dumb sites whose email address validation code disbelieves that + is an allowed character.

While I think this is fairly useful in the short run, if you are really serious about disposable email addresses there are plenty of services out there that fully address the issue. One commenter has already mentioned "jetable", above; I use SpamGourmet and have had wonderful success with it. These are just two services out there - totally free and powerful (I've just read up on jetable and personally think that SpamGourmet is much more powerful).

I really can't recommend SpamGourmet enough. Whenever I want a disposable address (filling in a contest form at a trade show, etc.) I just make one up that conforms to a few rules, safe in the knowledge that only a few emails will be forwarded to me before it expires (and knowing that I can reset/increase/expire early the address).

You also get the choice to use the .spamgourmet.com domain or the less obvious .xoxy.net.

In short: I love it, use it, and am in no way affiliated with it.

Cheers.


Well, if you're worried about them stripping out the + then just turn things the other way round. Give all your friends a special +friends address and anything without a + gets binned/marked as spam etc.

Simple.

SpamGourmet solves any of the problems mentioned above.

I use it for all websites I register at, unless I absolutely trust them.

It's as simple or simpler than using the plus method, and a lot safer.

  • you need the MTA to give you the plussed string from the envelope as the To: header doesn't necessarily have anything to do with what address the message is sent to
  • if you're worried about spammers stripping out the plussed string then use a non-empty string always and treat an empty string as spam
  • if you're worried about spammers inserting random plussed strings then filter all unknown strings (requires keeping a record)
  • see the nonplussed spambouncer for an implementation

i would love to become an invitation to gmail :)

Yahoo has a similar future - disposable addresses and they do not use "+", but "-"

Plese give an invitation to GMail...thanks and merry christmas for everyone

This is a nice trick, and shows how powerful Gmail really is. But most web sites use standard regular expressions formats to validate email fields, and hence don't allow usage of the + symbol for email. Spammers also are good at catching up with new antispam techniques. My own personal tried-and-trusted way for combating spam is use disposable email addresses via services such as mailinator.com . Mailinator is pretty much dependable & neat, but if you want more storage time periods for your mails, check out mytrashmail.com .

For the twelve thousand billion of you reiterating over and over (and over and over and over) about the spammers stripping the "+whatever"... just make a freaking email account that has a plus sign in the valid part, e.g. one+two@gmail.com. Then, when you put your +spammerssuck part on there, when they strip the +s, they strip the first valid + as well, et voila! No more valid email address.

Of course, that doesn't solve the problem of the idiots who can't write a form that will take =s in email addresses, but you can't have everything.

spamgourmet rocks

I have used it for years and it works so well.

I trust no website with my mail address.

Practice good email hygiene and you wont be sorry

I use plus addressing for my "web transaction" account. I use it with procmail to make it effective:

Mail to nospam+amazon@domain.tld goes to the amazon folder and mail to "nospam@domain.tld" goes to /dev/null

Doesn't help with gmail, exactly, but mail without labels in my inbox usually gets reported as spam...

Great tip !

BTW www.mytrashmail.com provdes free throw away email addresses

didn't know Gmail was so cool, apart from their AJAX

I would like to have one gmail account invitation

Merry Christmas~

My solution is sneakemail. Solves the smart spammer issue and the cost issue.

I liked it so much I bought the paid service, but used it happily for a couple years for free first.

If anyone wants a gmail invite email me at audrey.lopez at gmail

do you still have Invitations for Google Mail? thank you. J

g mail seems to be way better than any other email could you add me on

i tried it on myself twice and it didn't seem to work.

There are more disposable emails at
http://email.about.com/cs/dispaddrrevs/tp/disposable.htm

It's also good for website testing purposes - you don't need to create x number of dummy addresses: just use yourgmail+test[number]@gmail.com etcetc Works a treat.

yes i will use it, and use it ask sending email to people.

glad someone made the post on disposable addresses. Being a longtime user of Yahoo! Plus, they've had their AddressGuard feature for quite awhile and it works well. Yahoo! combats the above concerns by letting you create a "basename." johndoe@yahoo.com has a set of disposable addresses named as such: maryjane06-comments@yahoo.com


I, too, have been cautious about giving out my gmail address with the '+' trick due to the exact reasons many of you state above.


Is there any reason why one couldn't sign up for maryjane06@gmail.com and fwd selective emails (maryjane06+comments@gmail.com) (using a filter on "comments") to your main addreess?


I don't know if this is in line with Google Mail's policy (so can't condone this practice) but I'm sure to give this a shot right now!


thanks for the inspiration! :)

Cool trick. For sites like amazon/ebay/etc. I just keep an extra (ok, so I have 4 extra) gmail address where I don't care about spam, but the + will be a handy addition. Most of 'em I use to bait Nigerian 419 scammers as a hobby, but I keep one gmail expressly for times when I can't use bugmenot.

My main gmail is always up, and I check the others only when I need to. The only semi-annoyance is that you can only be logged into one at a time.

In any case, thanks for the trick, it will be useful for sorting multiple scammers from the same address too!

It's astounding how many of your readers post the same comment as twenty other people before them! Apparently, no one reads the comments.

So, why am I bothering to continue? :-)

If anyone would like to read a free ebook about the nuts and bolts of setting up and using domain-specific addresses using your own domain, there's a link to one in the nav bar at http://www.leegrey.com/hmm.

Hey it is not working for me. I tried to send a mail to myself by appeneding +test to my username (ie) myusername+test@gmail.com but i am not receiving that mail. Any help pls

want to have an email address in gmail.com and it is requested to allow me.
waiting for your kind response
mirajuddin dhsa khost

Can you invite me, please?

Thank you very much:)

Can you invite me please

You da Man!! Awesome hack! I would love a GMail invite, if you've got some left.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)