enkidu6/trashmail

By enkidu6

Updated 3 months ago

Open Source, standalone React & Node.js trashmail server for disposable email generator and viewer.

Image
Databases & Storage
Message Queues
Web Servers

488

TrashMail - Disposable Email Service

TrashMail is a web application for generating disposable/temporary email addresses and viewing emails sent to those addresses.

This Docker Hub repository contains the Docker image for TrashMail, which includes both the frontend and backend components.

Demo

You can access the demo of TrashMail at https://www.mytrashmail.uk

GitHub Repository

The source code for TrashMail is available on GitHub: https://github.com/Enkidu-6/TrashMail⁠

Usage:

Pull the image:

docker pull enkidu6/trashmail:latest

Run it:

sudo docker run -d -p 4000:4000 -p 25:25 \
  -v /path/to/attachments:/Trashmail/mailserver/attachments \
  -e REACT_APP_API_URL= \
  -e REACT_APP_DOMAINS='["example.com", "example.org"]' \
  --name trashmail \
  enkidu6/trashmail:latest

Docker Compose method:

services:
  trashmail:
    image: enkidu6/trashmail:latest
    container_name: trashmail
    hostname: example.com

    volumes:
      - ./attachments:/Trashmail/mailserver/attachments

    ports:
      - "25:25"
      - "4000:4000"

    environment:
      REACT_APP_DOMAINS: '["example.com", "example2.com", "example.org"]'

    restart: unless-stopped

The site can then be accessed by visiting http://localhost:4000

You'll need to set An MX record for each of your domains and for production purposes, you may want to use a proxy server like nginx to forward port 80 and 443 to http://localhost:4000

For more information, visit the GitHub repository https://github.com/Enkidu-6/TrashMail. You can modify the source, change the look of the web site and more. Then build your own image based on your specific needs.

Acknowledgment

https://github.com/hppanpaliya/React-TrashMail

Docker Pull Command

docker pull enkidu6/trashmail