Focus on cloud service provider activities
Notes on website operation and maintenance

Using Forsaken Mail software to build a temporary domain name post office in Linux VPS

Because in many cases, when we need to register an account, it is not good to use the free post office. We need to use the domain name post office. If there are only a few simple domain name post offices, we can use Tencent domain name post office to configure them. But Lao Zuo found that the number of post office users is limited in the domain name mailbox. If there are too many, he will prompt that the number is exceeded. It is not efficient to delete and add again every time.

Lao Zuo is in front“ Linux VPS host uses Postfix and Dovecot software to build a simple mail server "The article mentioned that the Postfix and Dovecot software can be used to set up a domain name post office in VPS, but one drawback is that the configuration file needs to be modified a lot when setting up, which is a bit troublesome. So Lao Zuo is searching for other better methods. If you see, you can use Forsaken Mail Configure and create a temporary domain name post office in VPS, and it can also be set up for WEB visualization. It looks good. Let's install it together.

First Forsaken Mail Preparation for installation

1. In this article, Lao Zuo adopted Linode VPS The host CentOS6.8 64 bit system, because I like to open such a machine that can be deleted at any time when testing projects, and then delete it after use.

2. We need to prepare a temporary domain name, which can be a free domain name provided by some platforms, such as those previously provided CF,. TK domain names do not know whether registration is still available, or Jing'an provided free registration a few days ago We don't know whether the TOP domain name is OK or the domain name with a few dollars. We can find our own way.

Second, domain name resolution direction

1. Add domain name A record to point to VPS host IP address

2. Add the domain name MX record to point to the VPS host IP address, and set the priority to 10

 Preparation for Forsaken Mail Installation

Third, install Node.js and npm

Because Node.js and npm are required to compile and install software later, we need to install a newer version in the current VPS host. Installing with yum is not acceptable. The older version can be referred to“ CentOS system quickly installs nodejs and npm tools through yum "Install a newer version of the article.

1. Install version 5. x

curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -

 CentOS system quickly installs nodejs and npm tools through yum

2. Install Compilation

yum install -y nodejs

After the installation, we check to see if there is a feedback version.

 Check the nodejs and npm versions

Fourth, download and install Forsaken Mail

wget https://github.com/malaohu/forsaken-mail/archive/master.zip
unzip master.zip
cd forsaken-mail-master
npm install && npm start

Here Lao Zuo refers to the micro demon tribe( https://www.vmvps.com/how-to-install-a-temporary-email-system-like-10minutemail-on-your-vps-from-vmvps-dot-com.html )And Forsaken Mail official documents( https://github.com/malaohu/forsaken-mail )The provided method is used for downloading and installing.

PS: Linode is too lazy. By default, wget is not supported. We have to install it ourselves.

 Download and install Forsaken Mail

It seems that this interface has become a success. Enter the domain name we resolved (http://bound domain name: 3000) in the address bar.

Fifth, Forsaken Mail temporary post office use

 Forsaken Mail temporary post office use

You can see the WEB interface to operate the mail account. The post office can be randomly generated in the upper right corner, or you can customize the prefix. Here Lao Zuo randomly sets one, and then sends an email with other mailboxes.

 Using Forsaken Mail software to build a temporary domain name post office in Linux VPS - Page 6

You can accept the mail when you see it.

VI. Summary of Forsaken Mail Temporary Post Office

1. Laozuo personally thinks that it is a little easier to use the Forsaken Mail method to build a temporary domain name post office than the Postfix and Dovecot before, at least not a line by line configuration file.

2. Forsaken Mail can only be used as a temporary post office account that may need more domain names. Generally, we don't use it. However, after Forsaken Mail is installed, it does not run in the background by default. You can use screen to run in the background. Otherwise, it will fail after SSH is turned off.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Using Forsaken Mail software to build a temporary domain name post office in Linux VPS


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge