All Projects → r0hi7 → Trashemail

r0hi7 / Trashemail

Licence: apache-2.0
A hosted disposable email telegram bot; Extremely privacy friendly; Proudly hosted for community.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Trashemail

Portainer
Making Docker and Kubernetes management easy.
Stars: ✭ 20,434 (+4908.33%)
Mutual labels:  hacktoberfest, docker-image, docker-compose
Container
HedgeDoc container image resources
Stars: ✭ 149 (-63.48%)
Mutual labels:  hacktoberfest, docker-image, docker-compose
Kotlin Telegram Bot
🤖 A wrapper for the Telegram Bot API written in Kotlin
Stars: ✭ 337 (-17.4%)
Mutual labels:  telegram-bot, hacktoberfest, telegram
Telegram
✈️ Telegram Notifications Channel for Laravel
Stars: ✭ 450 (+10.29%)
Mutual labels:  telegram-bot, hacktoberfest, telegram
Telegram Spring Boot Starter
Telegram Bot API Spring Boot Starter
Stars: ✭ 79 (-80.64%)
Mutual labels:  telegram-bot, spring, telegram
Tlg joincaptchabot
Telegram Bot to verify if users that join a group, are humans. The Bot send an image captcha for each new user, and kick any of them that can't solve the captcha in a specified time.
Stars: ✭ 226 (-44.61%)
Mutual labels:  telegram-bot, hacktoberfest, telegram
Docker Postfix
Simple SMTP server / postfix null relay host for your Docker and Kubernetes containers. Based on Alpine Linux.
Stars: ✭ 163 (-60.05%)
Mutual labels:  smtp, docker-image, docker-compose
Mtproto
Full-native go implementation of Telegram API
Stars: ✭ 566 (+38.73%)
Mutual labels:  telegram-bot, hacktoberfest, telegram
Drone Telegram
Drone plugin for sending Telegram notifications
Stars: ✭ 67 (-83.58%)
Mutual labels:  telegram-bot, telegram, docker-image
Sentry Telegram
Plugin for Sentry which allows sending notification via Telegram messenger.
Stars: ✭ 168 (-58.82%)
Mutual labels:  telegram-bot, hacktoberfest, telegram
Groupbutler
This bot can help you in managing your group with rules, anti-flood, description, custom triggers, and much more!
Stars: ✭ 399 (-2.21%)
Mutual labels:  telegram-bot, hacktoberfest, telegram
Airform
Functional HTML forms for Front-End Developers.
Stars: ✭ 307 (-24.75%)
Mutual labels:  hacktoberfest, smtp
Telegram
Telegram Bot API Wrapper for Scala
Stars: ✭ 310 (-24.02%)
Mutual labels:  telegram-bot, telegram
Telegram Action
GitHub Action that sends a Telegram message.
Stars: ✭ 318 (-22.06%)
Mutual labels:  telegram-bot, telegram
Laravel Social Auto Posting
🌈Laravel social auto posting
Stars: ✭ 306 (-25%)
Mutual labels:  telegram-bot, telegram
Swirl
A web UI for Docker, focused on swarm cluster.
Stars: ✭ 332 (-18.63%)
Mutual labels:  docker-image, docker-compose
Shieldy
@shieldy_bot Telegram bot repository
Stars: ✭ 351 (-13.97%)
Mutual labels:  telegram-bot, telegram
Webhook2telegram
🤖 A simple bot to translate JSON HTTP requests into Telegram push messages
Stars: ✭ 357 (-12.5%)
Mutual labels:  telegram-bot, telegram
Dockercheatsheet
🐋 Docker Cheat Sheet 🐋
Stars: ✭ 3,301 (+709.07%)
Mutual labels:  docker-image, docker-compose
Docker Inbound Agent
Docker image for a Jenkins agent which can connect to Jenkins using TCP or Websocket protocols
Stars: ✭ 342 (-16.18%)
Mutual labels:  hacktoberfest, docker-image

Build StatusBot Gitter GitHub language count GitHub code size in bytes GitHub issues GitHub closed pull requests Twitter Follow GitHub followers

tl;dr

TrashEmail is hosted Telegram bot that can save your private email address by offering disposable email address. It can create, manage, disposable email address and link them with your telegram bot chat.

  • Where is the bot? - @trashemail_bot
  • How can I create dispoable mail id? - Decide a username & ask the bot 😄
  • How many email ids can I own at a time? - Right now, the count is 8.
  • How can I access my emails? - If there is an email for you, it will come to telegram 😄 Easy right.
  • Do I need to setup and remember any password? - No Sir, that's the trick.
  • Why am I maintaining and hosting this? - This is my first such tool for community 😄 I wanted to give something back to community. If you like the idea and wanted to contribute then you can BuyMeACoffee
  • How many users are currently using it? - The information about active registered users and latest version of this service can be found here: https://trashemail.in

Trashemail Dashboard

How can I use this hosted service:

  • Its super easy, just see the demo below.

Video on How to use it

What is Disposable Temporary E-mail? And How am I different?

Forget about spam, advertising mailings, hacking and attacking robots. Keep your real mailbox clean and secure.Trashemail provides temporary(or permanent), secure, anonymous, free, disposable email address. Want to get one ? its here : @trashemail_bot

Disposable email - is a service that allows to receive email at a temporary(Here in case, the temporary factor is upto you) address that self-destructed after a certain time elapses. It is also known by names like : tempmail, 10minutemail, throwaway email, fake-mail or trash-mail. Many forums, Wi-Fi owners, websites and blogs ask visitors to register before they can view content, post comments or download something.

Trashemail is not most advanced throwaway email service but a reliable service that helps you avoid spam, stay safe and get emails delivered directly to your @trashemail_bot Telegram bot. And in case you are getting too many such mails, just delete the email Id :) with one click(oops command, since this is telegram bot).

There are websites that offers such sort of functionalities (like https://temp-mail.org/en/ etc) but the certain issues with such platforms:

  1. Your information is safe or not you can't audit.
  2. The domain keeps changing as soon as they are identified as temp-mail domains.
  3. Everytime you have to visit site to get one, you can't keep the same temporary mail for long.
  4. And, their business model which makes you see lot of ads in website.

Considering all of this, I decided to make a open source project out of my hobby and thought of offering it as a service to others :) How my service is better than theirs:

  1. The entire source code is open for audit, I am not interested in your data at all.
  2. Right now I own a domain trashemail.in and you will get emailIds from this domain only. (Easy for you to remember).
  3. The temporary time for your emailId to be alive is on you, not on the server, you can keep it permanently as well, or as long as I am able to maintain the @trashemail_bot.
  4. This project is out of passion, so I don't have motive of earning anything, so No Ads.(I am serious, I hate them too, like you)
  5. I am always open to suggestion, feedback & Issues to work on.

Let's talk about the Source.

TrashEmail is Java spring-boot microservice that anyone can build locally currently with few setting to tune in and then have the entire setup running locally. All you need to own is mail server(SMTP and IMAP), telegram bot token and mvn locally to build it. Few requirements with the mailserver:

  1. SMTP host should allow Alias creation.
  2. IMAP server should support IDLE.

I have to update the config slightly, and will do it quickly. :)

All you need to do is clone the source, build and run, and just tell telegram that you are listening here.

git clone https://github.com/r0hi7/Trashemail.git
cd Trashemail

# Copy EmailsToTelegramServiceConfig-sample.yml and
# TrashEmailServiceConfig-sample.yml files
# according to your environemnt
# Let's say you want to deploy it for dev env
# Then copy these files like

cp EmailsToTelegramServiceConfig-sample.yml EmailsToTelegramServiceConfig-dev.yml
cp TrashEmailServiceConfig-sample.yml TrashEmailServiceConfig-dev.yml

# Now modify the respective copied files with your configs
# Similarly, it can be deployed be "qa", "prod" environments
# Finally, run the script build-and-run.sh with env as an argument

bash build-and-run.sh dev

# If you dont want to deploy it in docker-compose, then
# Use Makefile directly
# It will create targets for EmailsToTelegramService and TrashEmailService respectively

make dev

Dev configs may look like this: EmailsToTelegramServiceConfig-dev.yml

# Email Server IMAP and SMTP configuration
# SMTP server should support Alias creation and deletion
# IMAP server should support IDLE

trashemail:
  host: trash-email-service
  port: 9090
  path: /getChatId/

imap-client-service:
  telegram:
    url: https://api.telegram.org/bot
    bot-token: xxxxxxxxxxxxxxxxxxxxxx
    size: 4096
  imap:
    host: trashemail.in
    port: 993
    email: [email protected]
    password: changeme
  emails:
    hostPath: http://127.0.0.1:8000/
    downloadPath: /opt/EmailsToTelegramService/mails/

# main will specify springboot application to
# no start any tomcat server, which is not even
# required for emailservice.
spring:
  application:
    name: EmailsToTelegramService
  main:
    web-application-type: none

TrashEmailServiceConfig-dev.yml

# Tomcat server settings
server:
  port: 9090

#Email server configuration for SMTP alias creation
email-server:
  hosts:
    - trashemail.in
    - thromail.com
    - humblemail.com
  admin-email: [email protected]
  admin-password: sample
  add-url: https://trashemail.in/admin/mail/aliases/add
  remove-url: https://trashemail.in/admin/mail/aliases/remove
  target-alias: [email protected]


# Sample config for connecting with mysql-docker
spring:
  datasource:
    url: jdbc:mysql://mysql:3306/trashemail
    username: root
    password: changeme
    driver-class-name: com.mysql.jdbc.Driver
  jpa:
    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
    hibernate:
      ddl-auto: update
    show-sql: true
  application:
    name: Trashemail



# Trashemail app server settings
trashemail:
  max-emails-per-user: 4

# Logger settings
logging:
  level:
    io:
      github:
        trashemail: debug
  1. This code will spin up the service at localhost:9090/telegram/new-message endpoint.
  2. Now will have to expose this service to internet, and there are options like : ngrok, dataplicity, localtunnel etc.
    • Start ngrokwith http on port 9090
    • Get the ngrok https url
  3. DB is taken care by mysql
  4. Get a bot for you from, Telegram Bot Father
  5. The last step is important, tell telegram that where you are listening :). Set up the webhook, this webhook will tell telegram where to send the bot incoming requests
    curl -F "url=https://<YOUR_DOMAIN>/telegram/new-message" https://api.telegram.org/bot<BOT_TOKEN>/setWebhook
    
  6. And you are done.

How It Works

  1. For this bot to work, you need existing SMTP, IMAP setup.
    1. SMTP with Alias creation
    2. IMAP with IDLE enabled
  2. As user, requests for creation,
  3. It fools the user, that it created an email Id rather it creates an alias to exiting ID.
    1. Why Alais, as IMAP needs to poll right, for incoming mails? This is how it is engineered.
  4. Runs a background async service to poll IMAP server.
  5. As soon as mail is fetched, the target is identified and telegram message is sent.

I have tried to engineer this service to be reliable, in case if you find any issues with the reliability(or with anything else), please feel free to drop in a PR. I would be happy to review and merge.

Sponsors

  1. Two domains thromail.com & humblemail.com are proudly donated by zlipa.com. Zlipa offers domains names for startups, bootstrapper etc with 10X lesser market price. Exciting right? Just checkout once.

  2. If you like the idea, then buy me a coffee, I will get caffine in my blood and to spend extra nights to make this product secure, up and running 😄

Buy Me A Coffee

  1. Or you can drop in a ⭐️, this motivates me.

Credits

TelegramAllTheThings

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].