简体   繁体   English

如何在 Windows 上配置和运行 Apache James Server 3.7.0

[英]How to config and run Apache James Server 3.7.0 on Windows

How to set up and configure Apache James Server 3.7.0 on Windows如何在 Windows 上设置和配置 Apache James Server 3.7.0

Step 1: Download第 1 步:下载

Download Apache James 3.7.0 , JPA James server

Binary (ZIP Format) for the JPA James server: james-server-jpa-guice.zip

https://www.apache.org/dyn/closer.lua/james/server/3.7.0/james-server-jpa-guice.zip

Step 2: Deploy第 2 步:部署

* Unzip james-server-jpa-guice.zip.
* You should have a folder with 

你应该有一个文件夹

Step 3: Initial configurations第 3 步:初始配置

in command line create keystore: 

keytool -genkey -alias james -keyalg RSA -keystore conf/keystore

the password for the keystore should be "james72laBalle" 

you can configure in the conf dir files, between the tags <secret>james72laBalle</secret>
- imapserver.xml
- managesieveserver.xml
- pop3server.xml
- smtpserver.xml

step 4: run the server第四步:运行服务器

java -javaagent:james-server-jpa-app.lib/openjpa-3.2.0.jar -Dworking.directory=.  -Djdk.tls.ephemeralDHKeySize=2048  -Dlogback.configurationFile=conf/logback.xml  -jar james-server-jpa-app.jar

step 5: create the james-cli command file, for adding domains, users...第 5 步:创建 james-cli 命令文件,用于添加域、用户...

 create a command file with the following, note the last chars --> %*
 -------------------------------------------------------------
 @echo off

   java -cp ".;james-server-jpa-app.lib\*;james-server-cli-3.7.0.jar;commons-cli-1.5.0.jar;james-core-3.7.0.jar;slf4j-api-1.7.32.jar;guava-31.0.1-jre.jar;james-server-data-api-3.7.0.jar;james-server-mailbox-jmx-3.7.0.jar;apache-james-mailbox-api-3.7.0.jar;james-server-util-3.7.0.jar;logback-classic-1.2.10.jar;logback-core-1.2.10.jar" org.apache.james.cli.ServerCmd %*

 -------------------------------------------------------------

Add a domain:添加域:

 james-cli.cmd AddDomain stack.com

references:参考:

https://james.apache.org/server/quick-start.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM