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 https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs git screen
#Centos system
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install nodejs git screen -y

2. Install Forsaken Mail

git clone https://github.com/denghongcai/forsaken-mail.git
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//mx.xx.com:3000 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 http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on
#CentOS 7 , Debian, Ubuntu
curl -sSL https://get.docker.com/ | 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//mx.anonym.id:3000it. If the interface cannot be opened, please refer to the NPMinstallation steps.

Configure Https access

If you are not used to it http//mx.anonym.id:3000, 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 xx.com, and A resolve the domain name record to the server in advance IP.

1. Install Caddy

using commands:

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh 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 "anonym.id {
 gzip
 tls [email protected]
 proxy / mx.anonym.id:3000
}" > /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
OR
systemctl restart caddy

Finally, you can open https://anonym.id.

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 anonym.id MX 10 mx.anonym.id
  • #ARecord mx.anonym.id 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
Author: https://github.com/denghongcai/forsaken-mail

Malaohu modified version: https://github.com/malaohu/forsaken-mail

Supplement a system that quickly has a temporary mailbox …

method:

Transfer the domain name CNAME to mail.bccto.me
Transfer the domain name MX to mail.bccto.me
Finish … Visit the domain name to view …

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here