搭建步骤:
下载 Apache James 进入首页并点击下载按钮,进入下载页面。

解压并执行 将下载的文件解压到任意目录下,执行
\james-2.3.2.1\bin\run.bat
\james-2.3.2.1\apps\james\SAR-INF\
config.xml

修改配置文件并启动服务 打开
\james-2.3.2.1\apps\james\SAR-INF\config.xml
users-store

修改
root

修改后再次执行
\james-2.3.2.1\bin\run.bat

客户端连接并新建用户 在 Windows 上开启 Telnet 功能。

在命令行中连接 James 客户端:
> telnet localhost 4555
使用在配置文件中修改的用户名和密码登录,添加新用户:
> adduser admin admin

使用 Foxmail 进行连接 通过 Foxmail 连接邮箱服务。





连接成功后,即可在内网中相互收发邮件。
拓展 在 Linux 环境下的搭建步骤基本一致。Windows 和 Linux 版本均可配置
servername
hosts
使用 Java 和 Spring Mail 进行连接操作,
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>配置文件
bootstrap.xml
# bootstrap.xml
spring:
mail:
host: localhost
username: test
password: test
port: 25
protocol: smtp
default-encoding: UTF-8详细配置请参见其他帖子。
以上就是Apache James 2.3.2.1 邮箱服务搭建的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号