#Debian/Ubuntu system
Use Docker
提前预备:
域名MX记录,记录值@,指向服务器IP地址,优先级设置10
A记录,记录值@,指向服务器IP地址
- install Docker
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
2.Install Forsaken Mail
docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 denghongcai/forsaken-mail
You should be able to check http//mx.xx.com:3000 for your temp mail website
Other Command you may need:
- 停止所以docker使用的container
docker container prune
- 检查是否有其他进程占用25端口
lsof -i -P -n | grep 25
- 如果有其他进程占用25端口,用下面的语句
kill -9 <process #>
- 停止某个docker container
docker stop ff03e10b267ce3cb8d57b516941dab424f5a2adc99efb03c6d5e8f8ee5d9c07c
- ufw status
检查25端口是否打开,listen
使用nginx或者apache来做一个反向代理
反代地址 http://localhost:3000/
- install NPM
curl -sL https://deb.nodesource.com/setup_16.x — Node.js | bash -
yum install nodejs git screen -y
- install Forsaken Mail
git clone https://github.com/denghongcai/forsaken-mail.git
cd forsaken-mail
npm install
- Run Forsaken Mail
screen -S forsakenmail
npm start
How To Install Temporary email website on Ubuntu 20.04
1.To get this version, you can use the apt package manager. Refresh your local package index first:
sudo apt update
2.Then install Node.js:
sudo apt install nodejs
3.Check that the install was successful by querying node
for its version number:
node -v
Check that the install was successful by querying node
for its version number:
v12.22.9
If the package in the repositories suits your needs, this is all you need to do to get set up with Node.js. In most cases, you’ll also want to also install npm
, the Node.js package manager. You can do this by installing the npm package with apt:
sudo apt install npm
git clone https://github.com/denghongcai/forsaken-mail.git
cd forsaken-mail
npm install
screen -S forsakenmail
npm start
A. 查看系统当前所有被占用端口
netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp6 0 0 :::24297 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::3000 :::* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
B. 查看占用端口的进程编号,输入 lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 10279 root 21u IPv4 55885 0t0 TCP *:smtp (LISTEN)
C. if port 25 is used by master or other process rather than node, kill the process with kill -9
process id(for example 10279)
kill -9 10279
D. check again with netstat -tln
screen -S forsakenmail
npm start
warn: Python is not available. Dkim and spf checking is disabled.
warn: Either spamassassin or spamc are not available. Spam score computation is disabled.
info: Mailin Smtp server listening on port 25
**install Python**
Download the latest version of Python: `sudo apt install python3`