enkidu6/trashmail
Open Source, standalone React & Node.js trashmail server for disposable email generator and viewer.
488
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.
You can access the demo of TrashMail at https://www.mytrashmail.uk
The source code for TrashMail is available on GitHub: https://github.com/Enkidu-6/TrashMail
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
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.
docker pull enkidu6/trashmail