Use Forsakenmail to build a temporary mailbox system that is destroyed

Source: Internet
Author: User
Tags docker run nodesource

Forsaken Mailis a temporary email system, can be sent to anyone receive mail, that is destroyed, support custom email address prefix, here is the next Docker and NPM two deployment tutorials, choose one can, interested or have the required to play.


Requirements

1, 云主机 need to open the 25 port, this direct send work order to the host business to open.
2, the domain name resolution, if you want the e-mail address format is *@xx.com the form, then for the xx.com setup MX record, need to add the following 2 parsing records.

#MX记载xx.com MX 10 mx.xx.com#A记载 mx.xx.com A 服务器IP
NPM deployment

GitHub Address:Https://github.com/denghongcai/forsaken-mail

1. Deploying NPM

#Debian/Ubuntu系统curl -sL https://deb.nodesource.com/setup_10.x | bash -apt-get install -y nodejs git screen#Centos系统curl -sL https://rpm.nodesource.com/setup_10.x | bash -yum install nodejs git screen -y

2. Deploy Forsaken Mail

git clone https://github.com/denghongcai/forsaken-mail.gitcd forsaken-mail#部署Forsaken Mailnpm install#后台执行Forsaken Mailscreen -S forsakenmailnpm start

Finally press Ctrl+A , then press the key to return to the D main interface, and then open http//mx.xx.com:3000 to view Forsaken Mail The email interface, if you do not open the interface, you may also need to open the firewall port, the general situation on the CentOS system appears at most, here is the next CentOS open operation.

#Centos 6系统iptables -I INPUT -p tcp --dport 3000 -j ACCEPTservice iptables saveservice iptables restart#CentOS 7系统firewall-cmd --zone=public --add-port=3000/tcp --permanent firewall-cmd --reload
Docker deployment

1. Deploy Docker

#CentOS 6rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum update -yyum -y install docker-ioservice docker startchkconfig docker on#CentOS 7、Debian、Ubuntucurl -sSL https://get.docker.com/ | shsystemctl start dockersystemctl enable docker.service

2. Deploy Forsaken Mail

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

After the deployment is successful, open is http//mx.xx.com:3000 available, if the interface is not open, refer to the NPM deployment steps.

Configuring HTTPS Access

If you're not used http//mx.xx.com:3000 to it, or if you want to use a Https domain name to access the main interface, we can use the Caddy anti-generational.

The domain name used here can only be recorded in the above settings MX xx.com , and the domain name records in the early A resolution to the server IP .

1. Deploy Caddy
Use command:

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#备用地址wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager

2, Configuration Caddy

#以下全部内容是一个团体,请修正2个域名后一齐复制到SSH执行!echo "xx.com { gzip tls [email protected] proxy / mx.xx.com:3000}" > /usr/fubitechal/caddy/Caddyfile

tlsThe parameters will help you ssl to sign the certificate, if you want to use the foreshadowing VPS ssl , change to tls /root/xx.crt /root/xx.key can. The ssl certificate path is behind.

3. Start Caddy

/etc/init.d/caddy start

Finally, open https://xx.com access is available.

Hope that the above article is useful to you, if you feel good give me a little like it! More and use Forsakenmail to build a temporary mailbox system, that is, the problem of receiving or destroying related problems or the cheap virtual host in Asia are also welcome to consult.

Use Forsakenmail to build a temporary mailbox system that is destroyed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.