This blog is NOT OFFICIAL website of Kali Linux. We just share Tutorials to learn Cybersecurity.

TempoMail -- Command Line Temporary Email in Linux

Home
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.

Love our articles? Make sure to follow us on Twitter and GitHub, we post article updates there. To join our KaliLinuxInfamily, join our Telegram Group & Whatsapp Channel. We are trying to build a community for Linux and Cybersecurity. For anything we always happy to help everyone on the comment section. As we know our comment section is always open to everyone. We read each and every comment and we always reply.

author-img
Kali Linux

Comments

5 comments
Post a Comment
  • Unknown photo
    UnknownDecember 15, 2020 at 8:49 PM

    Can't we send mail from it in terminal?

    Delete Comment
    • Kali Linux photo
      Kali LinuxDecember 16, 2020 at 7:47 AM

      We can just receive emails on custom mail-ids. This is useful to bypass e-mail verification on various websites.

      Delete Comment
    • romeo014master photo
      romeo014masterDecember 18, 2020 at 11:24 PM

      make install
      if test "no-framework" = "no-framework" ; then \
      /usr/bin/install -c python /usr/local/bin/python3.9; \
      else \
      /usr/bin/install -c -s Mac/pythonw /usr/local/bin/python3.9; \
      fi
      /usr/bin/install: cannot create regular file '/usr/local/bin/python3.9': Permission denied
      make: *** [Makefile:1304: altbininstall] Error 1

      Delete Comment
      • Kali Linux photo
        Kali LinuxDecember 19, 2020 at 9:20 AM

        Are you used 'make install' ? Please tell us the full details. Then we can help you. Did you followed the full article? Which command gives you this error?

        Delete Comment
      • AnonymousFebruary 22, 2023 at 5:29 PM

        thank you for this information

        Delete Comment
        google-playkhamsatmostaqltradent