国产邮件系统
安全可靠自主可控的电子邮件系统国产化解决方案。
Linux 环境 · tgz 解压安装 · 数据库初始化 · 服务启动 · Web 访问
用户应根据需求选择合适的硬件配置,CPU 指标、内存及磁盘容量应尽可能配置较高档次。以下为建议配置:
tgz 压缩包,适用于所有 Unix 操作系统8080postmaster@root,初始无密码root 用户身份执行首先检查 SELinux 状态:
# getenforce
如果结果为 Enforcing,需修改配置文件并重启系统:
# vi /etc/selinux/config
SELINUX=disabled # 修改 SELINUX 为 disabled,需重启服务生效
重启系统后再次检查:
# getenforce
Disabled
默认系统文件最大打开数为 8092,建议修改为 65535:
# echo "* soft nofile 65535" >> /etc/security/limits.conf
# echo "* hard nofile 65535" >> /etc/security/limits.conf
# echo "* soft nproc 206636" >> /etc/security/limits.conf
# echo "* hard nproc 206636" >> /etc/security/limits.conf
# ulimit -HSn 65535
编辑 /etc/sysctl.conf,添加以下内容:
fs.file-max = 1024000
net.ipv4.ip_local_port_range = 9000 65500
保存后执行使配置生效:
# /sbin/sysctl -p
如果系统中 postfix 服务处于启动状态,需要关闭:
# systemctl stop postfix.service
# systemctl disable postfix.service
# systemctl stop firewalld.service
# systemctl disable firewalld.service
将安装程序解压到根目录下:
# tar -zxvf turbogate_linux_x64_700.tgz -C /
该命令会将 TurboGate 程序文件解压到 /turbogate 目录中。
进入安装目录,依次执行数据库启动和初始化:
# cd /turbogate
# nohup ./startdb.sh &
# ./initdb.sh
初始化过程中会自动创建所需的数据库表结构和初始配置数据。等待初始化脚本执行完成后再继续下一步。
执行启动脚本启动所有 TurboGate 服务:
# nohup ./startall.sh &
该脚本会启动以下核心服务:
可以通过查看日志确认服务是否正常启动:
# tail -f /turbogate/logs/gateway.log
默认本机访问地址为:
http://localhost:8080
系统管理员账户为 postmaster@root,初始没有密码。首次登录后请立即设置管理员密码。
如需从远程访问,确保防火墙已开放 8080 端口(如有其他端口需求,参见 配置指南)。
/turbogate 目录存在且包含完整程序文件安装完成后,请参照 邮件网关配置指南 进行 SMTP 路由和邮件系统集成配置。