Set up temporary mailbox

 

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, nodejsand other environmental

installation steps

  • From githubthe cloneProject:git clone https://github.com/denghongcai/forsaken-mail.git
  • Into the project directory, install dependenciesnpm install
  • Startup projectnpm start
  • Then by ipaddress + port number 3000will 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 IPaccessing the address, you can also customize the mail domain

First, we need to add the following records in DNS

  • Add domain: Arecord points to the server ipaddress
  • Add domain: MXrecord points to the server ipaddress, 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 Nginxtransmitted. 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 reloadBring 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 prior sentmailservice
    service 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

Guess you like

Origin www.cnblogs.com/D-arling/p/11665140.html