本服务由 Jialezi.net | xKx.me 维护和运行
如需使用自己的域名,直接创建域名cname记录到 mail.0du.win 等待生效即可.
Forsaken Mail临时邮箱搭建方法
说明:Forsaken Mail是一个临时邮箱系统,可以供任何人接受邮件,即收即毁,支持自定义邮箱地址前缀,这里就说下Docker和NPM两种安装教程,任选一种即可,有兴趣或者有需求的可以玩玩。
提示:如果你不想自己搭建,只是想使用自己域名,可以直接使用本站服务,只需使将自己的域名创建域名cname记录到 mail.0du.win 等待生效即可.
需求
1、VPS需要开启25端口,这个直接发工单要主机商开启。
2、域名解析,如果你想邮件地址格式都为*@xx.com的形式,则为xx.com设置MX记录,需要添加以下2条解析记录。
#MX记录
xx.com MX 10 mx.xx.com
#A记录
mx.xx.com A 服务器IP
#PS:简化操作可以直接xx.com A 服务器IP
NPM安装
Github地址:https://github.com/denghongcai/forsaken-mail
1、安装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、安装Forsaken Mail
#下载项目源码
git clone https://github.com/malaohu/forsaken-mail.git
cd forsaken-mail
#安装项目需要的库
npm install
#安装pm2工具
npm install -g pm2
#禁用postfix和sendmail
killall sendmail
/etc/init.d/postfix stop
chkconfig --level 2345 postfix off
chkconfig --level 2345 sendmail off
#启动项目
pm2 start bin/www
#设置开机启动
pm2 startup
pm2 save
打开htt
