开源邮件服务器James 3.5.x 二次开发将邮件内容推送到kafka 源码、可执行程序、部署过程分享

参考的原安装步骤文档:https://blog.csdn.net/qq_35280133/article/details/109559023
此项目百度网盘下载链接
链接:https://pan.baidu.com/s/1g1EQVpsDLMANUsQl8sVkoA
提取码:dgap

使用步骤

一、准备环境 JDK1.8 mysql驱动包8.0 centos7 --网盘下载下来的压缩包已经包mysql驱动包

二、部署james服务、修改配置、创建初始用户
1、在linux操作系统上新建一个目录用于上传james jar包,我建的目录是/aiops/local
2、将压缩包上传到/aiops/local 解压

tar -zxvf james-server-app-3.5.1-SNAPSHOT.tar

3、配置数据库

vim james-database.properties     

在这里插入图片描述
4、 配置域名

vim domainlist.xml     

在这里插入图片描述
5、

vim mailetcontainer.xml

在这里插入图片描述
6、

vim smtpserver.xml

在这里插入图片描述
7、启动james服务器(注意先创建/aiops/log/james目录)

cd /aiops/local/james-server-app-3.5.1-SNAPSHOT/bin ; nohup ./run.sh >>/aiops/log/james /james.log &

8、添加邮箱账户

./james-cli.sh -h localhost -p 9999 adddomain dbemail.aiops.com
./james-cli.sh -h localhost -p 9999 AddUser aiops@dbemail.aiops.com 123456