Forsaken-Mail
一个即收即毁的临时邮箱系统。,支持自定义前缀,可以供他人使用。有npm
和docker
两种安装方式
安装需求
为了接收电子邮件,您的smtp服务器地址应该在某处可用。应将两条记录添加到DNS记录中。让我们假装我们想要收到以下电子邮件*@subdomain.domain.com
:
- 首先是MX记录:subdomain.domain.com MX 10 mxsubdomain.domain.com
这意味着,对于地址的邮件服务器一样*@subdomain.domain.com1会1mxsubdomain.domain.com
。
- 然后A记录:mxsubdomain.domain.com A the.ip.address.of.your.mailin.server
。这告诉可以找到邮件服务器的IP地址。
Let's Go
NPM安装方式
- 安装
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
- 安装Forsaken Mail
git clone https://github.com/denghongcai/forsaken-mail.git
cd forsaken-mail
npm install && npm start
默认是3000端口 注意开放端口。
Docker安装
- 安装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
- 安装Forsaken Mail
docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 denghongcai/forsaken-mail