搭建james邮件服务器
把james解压到任何一个非中文无空格目录下;
lib下添加必要的jar文件:
![](https://images2017.cnblogs.com/blog/554581/201709/554581-20170911193822141-317190222.png)
运行run.bat命令服务器,使用期间不要关闭。
![](https://images2017.cnblogs.com/blog/554581/201709/554581-20170911193847594-29990873.png)
创建邮件数据库
![](https://images2017.cnblogs.com/blog/554581/201709/554581-20170911193928782-987213992.png)
创建配置文件:james-database.properties
database.driverClassName=com.mysql.jdbc.Driver database.url=jdbc:mysql://localhost:3306/email database.username=root database.password=123456 vendorAdapter.database=MYSQL openjpa.streaming=false
添加邮箱地址:
james-cli.bat -h localhost -p 9999 adddomain soyoungboy.com
为邮件服务器添加邮件用户:
james-cli.bat -h localhost -p 9999 adduser wfb@soyoungboy.com 123456
![](https://images2017.cnblogs.com/blog/554581/201709/554581-20170911194059532-1625592502.png)
james测试:
互发邮件表示ok