美文网首页
Linux搭建Forsaken mail临时邮箱

Linux搭建Forsaken mail临时邮箱

作者: Buckler | 来源:发表于2019-03-16 01:50 被阅读0次

    需要的工具:
    NodeJS:用于查看官方发布的最新版
    https://nodejs.org/download/release/latest/
    forsaken-mail:
    https://github.com/denghongcai/forsaken-mail

    1.安装nodejs和npm顺便把screen也装了

    #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/denghongcai/forsaken-mail.git
    cd forsaken-mail
    #安装Forsaken Mail
    npm install
    #后台运行Forsaken Mail
    screen -S forsakenmail
    npm start
    

    最后按Ctrl+A,再按D键返回主界面,然后打开 http//你的IP地址或者域名地址:3000 就可以查看Forsaken Mail邮箱界面了,如果你打不开界面,可能还需要开启防火墙端口,一般该情况在CentOS系统上出现最多,这里就说下CentOS开启操作。

    #Centos 6系统
    iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
    service iptables save
    service iptables restart
    
    #CentOS 7系统
    firewall-cmd --zone=public --add-port=3000/tcp --permanent 
    firewall-cmd --reload
    

    至此就全部配置完成了
    另外还有一种Docker安装法 我没用过就不做总结了 各位需要的朋友可以去github看wiki

    特别注意搭建完之后记得开启25端口 否则无法接收邮件

    相关文章

      网友评论

          本文标题:Linux搭建Forsaken mail临时邮箱

          本文链接:https://www.haomeiwen.com/subject/ntxjmqtx.html