Today to introduce a makeshift use namely destroyed mailbox system forsaken-mail
. When we do not want to use your real mailbox, or want to bulk registration account of the time, you can easily spend
The system will automatically assign a random mailbox, the page will automatically refresh when a new message, a message that is lost when the page is closed for temporary use
Source
The original author of open source addresses . The source code is written nodejs. Deployment is very simple!
Linux installation and deployment
Require pre-installed on the server git
, nodejs
and other environmental
installation steps
- From
github
theclone
Project:git clone https://github.com/denghongcai/forsaken-mail.git
- Into the project directory, install dependencies
npm install
- Startup project
npm start
- Then by
ip
address + port number3000
will be able to access the page
Boot from Kai
# Pm2 installation tool npm install - G pm2
# start the project pm2 Start bin / the WWW # Set boot (optional) pm2 the Startup pm2 the Save
Nginx domain forwarding
In addition to by IP
accessing the address, you can also customize the mail domain
First, we need to add the following records in DNS
- Add domain:
A
record points to the serverip
address - Add domain:
MX
record points to the serverip
address, priority setting 10
Then use http://域名:3000/
to access the page can be seen. But with port access, obsessive-compulsive disorder always feel uncomfortable, then you need to configure Nginx
transmitted. Here is my profile
server { listen 80; server_name mail.frees.gq ; location / { proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:3000/; } }
nginx -s reload
Bring it into force. So you can use / http: // localhost: 3000 /
to visit. Happily began to play it ~
Precautions
- If prompted
Error: listen EADDRINUSE 0.0.0.0:25
, shut down the server requires priorsentmail
serviceservice sendmail stop # 关闭sendmail服务 chkconfig sendmail off # 关闭sendmail自启动
In addition to the site set up e-mail server, in addition I have also found another free online email Web site: Guerrilla mailbox - a one-time temporary mailbox