开源文档地址
关闭selinux
vi /etc/sysconfig/selinux
SELINUX=enforcing 改为 SELINUX=disabled
邮箱域名
EwoMail本身是可以配置多个域名来收发邮件的,但在安装前需要一个邮箱的主域名。
本次教程例子使用的主域名是ewomail.cn
git安装 (centos7/8)
gitee 项目地址 https://gitee.com/laowu5/EwoMail
yum -y install git
cd /root
git clone https://gitee.com/laowu5/EwoMail.git
cd /root/EwoMail/install
#需要输入一个邮箱域名,不需要前缀,列如下面的ewomail.cn
sh ./start.sh ewomail.cn
国外网络 请在安装域名后面加空格加en,例如 sh ./start.sh ewomail.cn en
github 项目地址 https://github.com/gyxuehu/EwoMail
yum -y install git
cd /root
git clone https://github.com/gyxuehu/EwoMail.git
cd /root/EwoMail/install
#需要输入一个邮箱域名,不需要前缀,列如下面的ewomail.cn,域名后面要加空格加en
sh ./start.sh ewomail.cn en
国外网络 请在安装域名后面加空格加en,例如 sh ./start.sh ewomail.cn en
在线安装 (centos7/8)国内网络
安装前请服务器必须已链接网络,安装时间将会根据你的系统配置和网络环境大概会在10分钟内安装完成。(需要root权限)
打开:http://www.ewomail.com/list-11.html 输入你的域名获取安装代码
执行安装命令后全程会自动安装(需要root权限)
wget -c http://download.ewomail.com/ewomail-1.0.sh && sh ewomail-1.0.sh ewomail.com
安装过程中可能会显示 shutting down postfix : FAILED,如果它的下面再出现一条 starting postfix : OK ,那就是正常的。
安装成功后将会输出”Complete installation”。
查看安装的域名和数据库密码
cat /ewomail/config.ini
V1.09版本开始使用 firewalld 防火墙
安装后的常规配置
将你安装的域名,例如安装的域名时 xxx.com,就将这行加在服务器的hosts文件里 /etc/hosts
127.0.0.1 mail.xxx.com smtp.xxx.com imap.xxx.com
访问地址(将IP更换成你服务器IP即可)
邮箱管理后台:http://IP:8010 (默认账号admin,密码ewomail123)
web邮件系统:http://IP:8000
项目地址1:https://gitee.com/laowu5/EwoMail
项目地址2:https://github.com/gyxuehu/EwoMail