Forsaken Mail
Forsaken Mail

When we register some websites, we do n’t want to register with our own mailbox, because we do n’t want to receive those spam promotion advertisements. At this time, we need a convenient and quick click-to-use mailbox, similar to the famous 10-minute temporary mailbox website. When 10 minutes arrives, if the user does not click to renew, the mailbox will self-destruct

Material preparation

A CentOS 6 (or CentOS 7) Linux server
SSH Program (SSH or PuTTY)

Installation steps

1. Install NPM

#Debian/Ubuntu system
curl -sL | bash -
apt-get install -y nodejs git screen
#Centos system
curl -sL | bash -
yum install nodejs git screen -y

2. Install Forsaken Mail

git clone
cd forsaken-mail
#Install Forsaken Mail
npm install
#Run Forsaken Mail
screen - S forsakenmail
npm start

Finally, press Ctrl+A, press the Dkey to return to the main interface, and then open http// you can see the Forsaken Mail mailbox interface, and if you can not open interface, you may also need to open firewall ports, generally, the case in CentOSmost occur on the system, said here at CentOSthe opening operation.

#Centos . 6 System
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
service iptables save
service iptables restart
#CentOS . 7 System
firewall-cmd --zone=public --add-port=3000/tcp --permanent 
firewall-cmd --reload

Docker installation

1. Install Docker

#CentOS . 6
rpm -iUvh
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on
#CentOS 7 , Debian, Ubuntu
curl -sSL | sh
systemctl start docker
systemctl enable docker.service

2. Install Forsaken Mail

docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 denghongcai/forsaken-mail

After the installation is successful, just open http// If the interface cannot be opened, please refer to the NPMinstallation steps.

Configure Https access

If you are not used to it http//, or want to use the Httpsdomain name to access the main interface, then we can use the Caddyreverse generation.

The domain name used here can only be the MX record set above, and A resolve the domain name record to the server in advance IP.

1. Install Caddy

using commands:

wget -N --no-check-certificate && chmod +x && bash install http.filemanager

2. Configure Caddy

#All the following content is a whole, please modify 2 domain names and copy to SSH to run together!
echo " {
 tls [email protected]
 proxy /
}" > /usr/local/caddy/Caddyfile

tlsThe parameters will automatically sign the SSL certificate for you. If you want to use your own SSL, just change it tls /root/xx.crt /root/xx.key. Followed by the sslcertification path.

3. Start Caddy

/etc/init.d/caddy start
systemctl restart caddy

Finally, you can open

The Forsaken-mail system uses node.js… After installation, the Forsaken-mail system path is at root/username/forsaken-mail/

Bind domain name

  • After the above operation is completed, use the http://ipaddress:3000/ access test to test whether it can be used … such as http://123.123.123:3000/
  • After making sure you can access and can use
  • Add domain A record to point to server ip address …
  • Add the domain name MX record to point to the server ip address … Priority setting 10 … (Some of this step can be omitted)
  • #MX records MX 10
  • #ARecord A server IP
  • Use http://ipaddress:3000/ to test the mail

(Effect after installation)

Note that it is not recommended to install the Forsaken-mail system on the pagoda … If there is no idle server, you must install it on the pagoda … Remember to allow port 3000 and port 25 …

Support custom prefix
The email address is generated in the upper right corner …

Prefixes are randomly generated characters …

Click the change button or refresh to change the email address …

Click the fill button to customize the prefix (remember to click “✓” will be effective after completing) …

Github open source

Malaohu modified version:

Supplement a system that quickly has a temporary mailbox …


Transfer the domain name CNAME to
Transfer the domain name MX to
Finish … Visit the domain name to view …

There are many similar services … If you are interested, you can go to search and try …


Please enter your comment!
Please enter your name here