TempoMail -- Command Line Temporary Email in Linux

During penetration testing many times we need to register on websites and they send a lots of mails. Even sometime we don't want to share our original e-mail id. Then how we can hide ourself from website's eye?

Well, there are tons of temporary or disposable mail services in market that provides us this feature through their websites but we can't say what's running in their backend and we personally hates those annoying ads !!

Here in this article we will discuss about an open-source command line tool that will provide us a disposable e-mail address. We can use it to bypass e-mail verification of any website.
Command line temporary email in linux

This tool is called TempoMail. TempoMail is written in go language by Kavish Gour. First we need to install go language in our Kali Linux system. After installing Go Language we open terminal and clone the GitHub repo by using following command:
git clone github.com/kavishgr/tempomail
The screenshot of the command is following:
Tempomail clonning
 
Then we need to go inside the temomail directory by using cd command:
cd tempomail
Now we need to build this by using following command:
go build .
If the building process is successful then we got a file called tempomail in our directory. As we can see in the following screenshot:
Compailing tempomail

Now we need to move this tempomail file to /usr/local/bin where the software installed locally by using following command:

sudo mv tempomail /usr/local/bin/
The output of the command is shows in the following screenshot:
moving tempomail file

Now we have installed tempomail successfully. We can check it via running following command from anywhere in terminal:

tempomail -h

Here in the following screenshot we can see that our emails will locally saved on /tmp/1secmails/ by default. We can change it by using -path string.

Now we can set our custom mail by using tempomail. To do this we run tempomail command in our terminal:

tempomail
Then it will ask us the "Input Name", here we can put anything to get a mail id with thee name(if available on this time) we have putted 'kalilinux'. As we can see in the following screenshot:
tempomail custom name

After this we got a mail id with this name. Shown in the following screenshot:

custom temp mail id

Now if anyone send mails on this email id we got the mail. Yoo, We got an e-mail. After we got a mail in our inbox it shows like following:

tempomail recived

To open our mailbox we need to open another terminal window and type following command:

ls /tmp/1secmails/

The above command shows a mail in the directory.

tempomail default inbox

Now we can see what's inside the mail using cat (or any text viewer or editor tool). We run the following command to see the mail.

Recived a Mail using tempomail

This is how we can receive an e-mail on our custom temporary mail id running on command line. We found this good at bypass the e-mail verification during penetration testing and avoid spam or unwanted mails on our original mail id.

This is how we can create our custom disposable e-mail address directly from our terminal.

Liked our articles then follow our e-mail subscriptions for free to receive e-mail notification of our latest articles. We also updates our articles on Twitter and GitHub.

For any problem or suggestion comment down in the comment section. We read comments and always reply.

No comments:

Please do not spam here. It is comment box not a spambox. Promotional links are not allowed.

Powered by Blogger.