Generate thousands of email addresses using your own email address

This article is for Gmail Users only. Can’t say about other providers.

Generally, We are skeptical in sharing our email addresses while signing up some random sites on the internet, with the fear of spams and other scam emails.

Gmail offers us a cool feature, 2 features in fact, to secure our email addresses. I’ll be explaining you both the features on how to generate 100’s,maybe 1000’s email ID (or aliases) so that you can use them on the internet, keeping your original email address safe.

Let’s say your email address is: **testemail@gmail.com**

Feature 1

If you are signing on Facebook, you can use your email as:

Cons:

  • The above method might not work on some websites, as they consider email as invalid due to “+” sign.
  • The original email can be guessed by removing the part after the + sign.

Feature 2

This feature is particularly interesting, as it (somewhat) masks your original email address. In your email, insert a dot (period or .) between your email ID. Example, **test.email@gmail.com**

This newly generated mail is now an alias to your email address. Pretty cool, huh ? You can add more dots between the letters to generate more email aliases. Just remember, the longer email ID, the more aliases you can generate.

Comparison (total of 1, 2 and 3 dots):

Shell Script to generate dot separated email aliases

I have created a simple shell script to generate dot separated email address, generating huge list.

Note: The script takes a single argument to generate output

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

t=$1

echo '---- one dot ----'

for (( i = 1; i < ${#t}; ++i )); do
echo "${t:0:i}.${t:i}"
done

echo '---- two dots ----'

for (( i = 1; i < (${#t} - 1); ++i )); do
for (( j = i + 1; j < ${#t}; ++j )); do
echo "${t:0:i}.${t:i:j - i}.${t:j}"
done
done

echo '---- three dots ----'

for (( i = 1; i < (${#t} - 1); ++i )); do
for (( j = i + 1; j < ${#t}; ++j )); do
for (( k = j + 1; k < ${#t}; ++k )); do
echo "${t:0:i}.${t:i:j - i}.${t:j:k - j}.${t:k}"
done
done
done

Output

Generating aliases

Happy Privacy !!!

command linux ubuntu terminal email gmail googlemail privacy script shell shell script