Skip to content

搭建自己的邮箱系统

搭建自己的邮箱系统

  • what: 搭建自己的邮箱系统
  • where: centos7
  • when: 2022.5.5
  • who: JRT
  • why: 记录
  • how: EwoMail

1.前提

#开放 8000 8010 25端口

8000端口:即WebMail页面, 请在浏览器中输入 你云服务器的 公网IP:8000 即可, 如http://150.139.212.99:8000/
8010端口:即邮件管理后台, 地址同上,将那个8000改成8010即可。
管理员默认账号:admin
默认密码:ewomail123

2.查看域名是否解析成功

[root@JRT ~]# ping mail.jrt.top
PING mail.jrt.top (150.139.212.99) 56(84) bytes of data.
64 bytes from 150.139.212.99 (150.139.212.99): icmp_seq=1 ttl=55 time=2.55 ms
64 bytes from 150.139.212.99 (150.139.212.99): icmp_seq=2 ttl=55 time=2.27 ms
64 bytes from 150.139.212.99 (150.139.212.99): icmp_seq=3 ttl=55 time=2.32 ms

3.域名主机配置

[root@f62d8dcaf08b /]# vim  /etc/sysconfig/selinux
bash: vim: command not found
[root@f62d8dcaf08b /]# yum install vim -y

[root@JRT ~]# cat /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 

[root@JRT install]# cat /etc/hosts
::1 localhost   localhost.localdomain   localhost6  localhost6.localdomain6
127.0.0.1   localhost   localhost.localdomain   localhost4  localhost4.localdomain4
127.0.0.1   mail.jrt.top  jrt.top smtp.jrt.top imap.jrt.top 

[root@JRT install]# 


[root@JRT ~]# 


4.安装邮箱系统

[root@JRT ~]# git clone https://gitee.com/laowu5/EwoMail.git
Cloning into 'EwoMail'...
remote: Enumerating objects: 2584, done.
remote: Total 2584 (delta 0), reused 0 (delta 0), pack-reused 2584
Receiving objects: 100% (2584/2584), 340.51 MiB | 54.84 MiB/s, done.
Resolving deltas: 100% (765/765), done.
[root@JRT ~]# ls
EwoMail
[root@JRT ~]# cd EwoMail/
ewomail-admin/ .git/          install/       LICENSE        rainloop/      README.md      
[root@JRT ~]# cd EwoMail/install/
[root@JRT install]# ls
config  init.php  soft  start.sh
[root@JRT install]# sh ./start.sh jiaorongtao.top
Database test passed.
bytecode.cvd updated (version: 333, sigs: 92, f-level: 63, builder: awillia2)
Complete installation
[root@JRT install]# 

5.管理员邮箱配置

6.测试

发邮件

收邮件