Apache James,是一个企业级的开源邮件服务器。
项目主页:http://james.apache.org

官方下载页面:
http://james.apache.org/download.cgi

Download Link:
http://mirror.bit.edu.cn/apache/james/server/james-server-sources-3.1.0.zip
http://mirrors.shu.edu.cn/apache/james/server/james-server-app-3.1.0-app.zip

将下载好的介质上传服务器并解压:

[root@james-mailserver ~]# cd /software
[root@james-mailserver software]# ls -ltr
total 75128
drwxr-xr-x. 18 root root     4096 Jul 30 17:26 james-project
-rw-r--r--.  1 root root 18213346 Aug 14 14:40 james-server-sources-3.1.0.zip
-rw-r--r--.  1 root root 58708816 Aug 14 14:58 james-server-app-3.1.0-app.zip
[root@james-mailserver software]# 
[root@james-mailserver software]# unzip james-server-app-3.1.0-app.zip 
Archive:  james-server-app-3.1.0-app.zip
   creating: james-server-app-3.1.0/
   creating: james-server-app-3.1.0/conf/
   creating: james-server-app-3.1.0/conf/lib/
   creating: james-server-app-3.1.0/conf/META-INF/
   creating: james-server-app-3.1.0/log/
   creating: james-server-app-3.1.0/var/
   creating: james-server-app-3.1.0/var/store/
   creating: james-server-app-3.1.0/var/mail/
   creating: james-server-app-3.1.0/lib/
   creating: james-server-app-3.1.0/bin/
  inflating: james-server-app-3.1.0/NOTICE  
  inflating: james-server-app-3.1.0/conf/setenv.sh  
  inflating: james-server-app-3.1.0/conf/quota.xml  
  inflating: james-server-app-3.1.0/conf/mailrepositorystore.xml  
  inflating: james-server-app-3.1.0/conf/mailbox-maildir.properties  
  inflating: james-server-app-3.1.0/conf/log4j.properties  
  inflating: james-server-app-3.1.0/conf/lib/README.txt  
  inflating: james-server-app-3.1.0/conf/jetm-monitoring.xml  
  inflating: james-server-app-3.1.0/conf/james-database.properties  
  inflating: james-server-app-3.1.0/conf/fetchmail.xml  
  inflating: james-server-app-3.1.0/var/mail/README.txt  
  inflating: james-server-app-3.1.0/lib/slf4j-log4j12-1.7.25.jar  
  inflating: james-server-app-3.1.0/lib/jcl-over-slf4j-1.7.25.jar  
  inflating: james-server-app-3.1.0/lib/xbean-spring-3.12.jar  
  inflating: james-server-app-3.1.0/lib/spring-expression-4.3.16.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/camel-core-2.21.1.jar  
  inflating: james-server-app-3.1.0/lib/mina-core-2.0.18.jar  
  inflating: james-server-app-3.1.0/lib/spring-beans-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/apache-mime4j-dom-0.8.2.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-backends-jpa-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-jpa-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/jcr-2.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-io-2.5.jar  
  inflating: james-server-app-3.1.0/lib/jackson-dataformat-msgpack-0.7.0-p9.jar  
  inflating: james-server-app-3.1.0/lib/jackson-core-2.6.3.jar  
  inflating: james-server-app-3.1.0/lib/commons-text-1.1.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/bin/james  
  inflating: james-server-app-3.1.0/bin/wrapper-solaris-x86-32  
  inflating: james-server-app-3.1.0/bin/wrapper-linux-x86-64  
  inflating: james-server-app-3.1.0/LICENSE  
  inflating: james-server-app-3.1.0/lib/spring-tx-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/commons-daemon-1.0.10.jar  
  inflating: james-server-app-3.1.0/lib/metrics-logger-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/metrics-jvm-3.2.1.jar  
  inflating: james-server-app-3.1.0/lib/metrics-core-3.2.1.jar  
  inflating: james-server-app-3.1.0/lib/artemis-selector-2.1.0.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-json_1.0_spec-1.0-alpha-1.jar  
  inflating: james-server-app-3.1.0/lib/commons-beanutils-1.9.2.jar  
  inflating: james-server-app-3.1.0/lib/artemis-jms-client-2.1.0.jar  
  inflating: james-server-app-3.1.0/lib/activemq-kahadb-store-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/netty-3.10.6.Final.jar  
  inflating: james-server-app-3.1.0/lib/guavate-1.0.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-ldap-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-jdbc-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-file-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/joda-time-2.9.4.jar  
  inflating: james-server-app-3.1.0/lib/jsoup-1.9.2.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-lucene-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/xbean-asm5-shaded-3.17.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-jpa_2.0_spec-1.1.jar  
  inflating: james-server-app-3.1.0/lib/jackrabbit-jcr-commons-2.5.2.jar  
  inflating: james-server-app-3.1.0/lib/javax.mail-1.6.1.jar  
  inflating: james-server-app-3.1.0/bin/wrapper-solaris-sparc-32  
  inflating: james-server-app-3.1.0/bin/wrapper-macosx-universal-32  
  inflating: james-server-app-3.1.0/README.crypto  
  inflating: james-server-app-3.1.0/var/README.txt  
  inflating: james-server-app-3.1.0/lib/slf4j-api-1.7.25.jar  
  inflating: james-server-app-3.1.0/lib/apache-jsieve-core-0.7.jar  
  inflating: james-server-app-3.1.0/lib/camel-spring-2.21.1.jar  
  inflating: james-server-app-3.1.0/lib/spring-web-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/artemis-core-client-2.1.0.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar  
  inflating: james-server-app-3.1.0/lib/activemq-protobuf-1.1.jar  
  inflating: james-server-app-3.1.0/lib/activemq-openwire-legacy-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/james-server-queue-activemq-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-memory-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-protocols-smtp-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/protocols-pop3-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-protocols-pop3-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-protocols-managesieve-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/protocols-lmtp-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-protocols-lmtp-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/protocols-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-protocols-library-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/protocols-netty-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-logging-1.1.jar  
  inflating: james-server-app-3.1.0/lib/james-server-protocols-imap4-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/byteunits-0.9.1.jar  
  inflating: james-server-app-3.1.0/lib/logback-core-1.1.11.jar  
  inflating: james-server-app-3.1.0/lib/apache-jspf-resolver-1.0.1.jar  
  inflating: james-server-app-3.1.0/lib/commons-collections-3.2.2.jar  
  inflating: james-server-app-3.1.0/lib/amqp-client-5.2.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-mailetcontainer-camel-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-mailetcontainer-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-util-java8-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-lifecycle-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-filesystem-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-dnsservice-library-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/dnsjava-2.1.1.jar  
  inflating: james-server-app-3.1.0/lib/api-ldap-model-1.0.2.jar  
  inflating: james-server-app-3.1.0/lib/lucene-analyzers-3.6.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-store-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/wrapper-windows-x86-32.dll  
  inflating: james-server-app-3.1.0/lib/libwrapper-macosx-ppc-32.jnilib  
  inflating: james-server-app-3.1.0/lib/libwrapper-macosx-universal-32.jnilib  
  inflating: james-server-app-3.1.0/lib/libwrapper-linux-ppc-64.so  
  inflating: james-server-app-3.1.0/conf/wrapper.conf  
  inflating: james-server-app-3.1.0/bin/wrapper-windows-x86-64.exe  
  inflating: james-server-app-3.1.0/bin/wrapper-macosx-ppc-32  
  inflating: james-server-app-3.1.0/bin/wrapper-linux-x86-32  
  inflating: james-server-app-3.1.0/conf/events.xml  
  inflating: james-server-app-3.1.0/conf/smtpserver.xml  
  inflating: james-server-app-3.1.0/conf/mailetcontainer.xml  
  inflating: james-server-app-3.1.0/conf/domainlist.xml  
  inflating: james-server-app-3.1.0/conf/META-INF/persistence.xml  
  inflating: james-server-app-3.1.0/conf/META-INF/jpa-mappings-template.xml  
  inflating: james-server-app-3.1.0/log/.dummy  
  inflating: james-server-app-3.1.0/lib/spring-jms-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/aopalliance-1.0.jar  
  inflating: james-server-app-3.1.0/lib/spring-aop-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/metrics-dropwizard-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/metrics-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/throwing-lambdas-0.5.0.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-jta_1.0.1B_spec-1.0.1.jar  
  inflating: james-server-app-3.1.0/lib/activemq-jms-pool-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/activemq-pool-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/activemq-spring-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/james-server-queue-jms-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-queue-file-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-queue-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/objenesis-1.0.jar  
  inflating: james-server-app-3.1.0/lib/mockito-core-1.9.0.jar  
  inflating: james-server-app-3.1.0/lib/activemq-broker-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/parboiled-java-1.1.8.jar  
  inflating: james-server-app-3.1.0/lib/james-mdn-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/httpcore-4.4.3.jar  
  inflating: james-server-app-3.1.0/lib/jackson-datatype-jdk8-2.6.3.jar  
  inflating: james-server-app-3.1.0/lib/apache-mailet-standard-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-mailets-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/assertj-core-3.8.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-pool-1.6.jar  
  inflating: james-server-app-3.1.0/lib/commons-dbcp-1.4.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-tool-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-spring-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-memory-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/lucene-core-3.6.0.jar  
  inflating: james-server-app-3.1.0/bin/james-cli.bat  
  inflating: james-server-app-3.1.0/bin/james-cli.sh  
  inflating: james-server-app-3.1.0/bin/run.sh  
  inflating: james-server-app-3.1.0/bin/setenv.bat  
  inflating: james-server-app-3.1.0/bin/setenv.sh  
  inflating: james-server-app-3.1.0/lib/wrapper-windows-x86-64.dll  
  inflating: james-server-app-3.1.0/lib/libwrapper-linux-x86-64.so  
  inflating: james-server-app-3.1.0/lib/wrapper.jar  
  inflating: james-server-app-3.1.0/bin/james.bat  
  inflating: james-server-app-3.1.0/bin/wrapper  
  inflating: james-server-app-3.1.0/bin/wrapper-solaris-sparc-64  
  inflating: james-server-app-3.1.0/conf/events.properties  
  inflating: james-server-app-3.1.0/lib/james-server-app-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/jutf7-1.0.0.jar  
  inflating: james-server-app-3.1.0/lib/protocols-imap-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-pool2-2.4.2.jar  
  inflating: james-server-app-3.1.0/lib/log4j-1.2.17.jar  
  inflating: james-server-app-3.1.0/lib/jboss-logging-3.3.0.Final.jar  
  inflating: james-server-app-3.1.0/lib/jgroups-3.6.13.Final.jar  
  inflating: james-server-app-3.1.0/lib/asm-util-5.2.jar  
  inflating: james-server-app-3.1.0/lib/asm-analysis-5.2.jar  
  inflating: james-server-app-3.1.0/lib/asm-tree-5.2.jar  
  inflating: james-server-app-3.1.0/lib/asm-5.2.jar  
  inflating: james-server-app-3.1.0/lib/parboiled-core-1.1.8.jar  
  inflating: james-server-app-3.1.0/lib/httpclient-cache-4.5.1.jar  
  inflating: james-server-app-3.1.0/lib/httpclient-osgi-4.5.1.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-hbase-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-configuration-1.9.jar  
  inflating: james-server-app-3.1.0/lib/guava-19.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-jcr-3.1.0.jar  
  inflating: james-server-app-3.1.0/bin/run.bat  
  inflating: james-server-app-3.1.0/lib/libwrapper-solaris-x86-32.so  
  inflating: james-server-app-3.1.0/lib/libwrapper-solaris-sparc-64.so  
  inflating: james-server-app-3.1.0/lib/libwrapper-solaris-sparc-32.so  
  inflating: james-server-app-3.1.0/lib/libwrapper-linux-x86-32.so  
  inflating: james-server-app-3.1.0/bin/wrapper-windows-x86-32.exe  
  inflating: james-server-app-3.1.0/conf/usersrepository23.xml  
  inflating: james-server-app-3.1.0/conf/sieverepository.xml  
  inflating: james-server-app-3.1.0/conf/recipientrewritetable.xml  
  inflating: james-server-app-3.1.0/conf/pop3server.xml  
  inflating: james-server-app-3.1.0/conf/managesieveserver.xml  
  inflating: james-server-app-3.1.0/conf/mailbox.xml  
  inflating: james-server-app-3.1.0/conf/mailbox-jcr.cnd  
  inflating: james-server-app-3.1.0/conf/lmtpserver.xml  
  inflating: james-server-app-3.1.0/conf/jmx.properties  
  inflating: james-server-app-3.1.0/conf/jcr-repository.xml  
  inflating: james-server-app-3.1.0/conf/indexer.xml  
  inflating: james-server-app-3.1.0/conf/imapserver.xml  
  inflating: james-server-app-3.1.0/conf/dnsservice.xml  
  inflating: james-server-app-3.1.0/conf/META-INF/persistence-template.xml  
  inflating: james-server-app-3.1.0/var/store/README.txt  
  inflating: james-server-app-3.1.0/lib/spring-jdbc-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/jaxb-core-2.3.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-util-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-spring-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/threeten-extra-1.3.2.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-jms_2.0_spec-1.0-alpha-2.jar  
  inflating: james-server-app-3.1.0/lib/johnzon-core-0.9.5.jar  
  inflating: james-server-app-3.1.0/lib/netty-all-4.1.9.Final.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-jpa-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-jcr-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-lang-2.6.jar  
  inflating: james-server-app-3.1.0/lib/javax.inject-1.jar  
  inflating: james-server-app-3.1.0/lib/activation-1.1.1.jar  
  inflating: james-server-app-3.1.0/lib/james-server-core-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/spring-core-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/apache-mime4j-core-0.8.2.jar  
  inflating: james-server-app-3.1.0/lib/jasypt-1.9.0.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-jta_1.1_spec-1.1.1.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-jms_1.1_spec-1.1.1.jar  
  inflating: james-server-app-3.1.0/lib/serp-1.15.1.jar  
  inflating: james-server-app-3.1.0/lib/msgpack-core-0.7.0-p9.jar  
  inflating: james-server-app-3.1.0/lib/jackson-annotations-2.6.0.jar  
  inflating: james-server-app-3.1.0/lib/jackson-databind-2.6.3.jar  
  inflating: james-server-app-3.1.0/bin/wrapper-linux-ppc-64  
  inflating: james-server-app-3.1.0/conf/sqlResources.xml  
  inflating: james-server-app-3.1.0/lib/spring-orm-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/jaxb-impl-2.3.0.jar  
  inflating: james-server-app-3.1.0/lib/artemis-commons-2.1.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-net-3.2.jar  
  inflating: james-server-app-3.1.0/lib/hawtbuf-1.11.jar  
  inflating: james-server-app-3.1.0/lib/activemq-client-5.15.2.jar  
  inflating: james-server-app-3.1.0/lib/protocols-smtp-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/commons-lang3-3.6.jar  
  inflating: james-server-app-3.1.0/lib/apache-mime4j-james-utils-0.8.2.jar  
  inflating: james-server-app-3.1.0/lib/fluent-hc-4.5.1.jar  
  inflating: james-server-app-3.1.0/lib/httpmime-4.5.1.jar  
  inflating: james-server-app-3.1.0/lib/httpclient-4.5.1.jar  
  inflating: james-server-app-3.1.0/lib/james-server-mailbox-adapter-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-fetchmail-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-dnsservice-dnsjava-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-dnsservice-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/event-sourcing-pojo-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/event-sourcing-event-store-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/event-sourcing-core-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-library-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/org.apache.servicemix.bundles.antlr-2.7.7_5.jar  
  inflating: james-server-app-3.1.0/lib/hamcrest-core-1.3.jar  
  inflating: james-server-app-3.1.0/lib/junit-4.11.jar  
  inflating: james-server-app-3.1.0/lib/apache-james-mailbox-maildir-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/lucene-smartcn-3.6.0.jar  
  inflating: james-server-app-3.1.0/conf/usersrepository.xml  
  inflating: james-server-app-3.1.0/lib/protocols-managesieve-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/derby-10.9.1.0.jar  
  inflating: james-server-app-3.1.0/lib/api-i18n-1.0.2.jar  
  inflating: james-server-app-3.1.0/lib/api-asn1-ber-1.0.2.jar  
  inflating: james-server-app-3.1.0/lib/api-asn1-api-1.0.2.jar  
  inflating: james-server-app-3.1.0/lib/api-util-1.0.2.jar  
  inflating: james-server-app-3.1.0/lib/geronimo-annotation_1.1_spec-1.0.1.jar  
  inflating: james-server-app-3.1.0/lib/commons-codec-1.7.jar  
  inflating: james-server-app-3.1.0/lib/james-server-mailrepository-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-core-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/james-server-data-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/javax-mail-extension-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-mailet-base-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/apache-mailet-api-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/slf4j-simple-1.7.25.jar  
  inflating: james-server-app-3.1.0/lib/commons-cli-1.2.jar  
  inflating: james-server-app-3.1.0/lib/james-server-cli-3.1.0.jar  
  inflating: james-server-app-3.1.0/lib/spring-context-3.2.14.RELEASE.jar  
  inflating: james-server-app-3.1.0/lib/openjpa-2.4.2.jar  
[root@james-mailserver software]# 
[root@james-mailserver software]# ls -ltr
total 75128
drwxr-xr-x.  7 root root      112 Jul 30 15:47 james-server-app-3.1.0
drwxr-xr-x. 18 root root     4096 Jul 30 17:26 james-project
-rw-r--r--.  1 root root 18213346 Aug 14 14:40 james-server-sources-3.1.0.zip
-rw-r--r--.  1 root root 58708816 Aug 14 14:58 james-server-app-3.1.0-app.zip
[root@james-mailserver software]# 
[root@james-mailserver software]# 

解压后:

[root@james-mailserver software]# cd james-server-app-3.1.0/
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# ls -ltr
total 104
drwxr-xr-x. 4 root root    49 Jul 30 13:34 var
-rw-r--r--. 1 root root  1393 Jul 30 13:34 README.crypto
-rw-r--r--. 1 root root  5882 Jul 30 13:34 NOTICE
-rw-r--r--. 1 root root 67771 Jul 30 13:34 LICENSE
drwxr-xr-x. 4 root root  4096 Jul 30 15:36 conf
drwxr-xr-x. 2 root root    20 Jul 30 15:47 log
drwxr-xr-x. 2 root root 12288 Jul 30 15:47 lib
drwxr-xr-x. 2 root root  4096 Jul 30 15:47 bin
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# ls -ltr bin/
total 1636
-rwxr-xr-x. 1 root root   1263 Jul 30 13:34 setenv.sh
-rw-r--r--. 1 root root   1379 Jul 30 13:34 setenv.bat
-rwxr-xr-x. 1 root root 220672 Jul 30 15:47 wrapper-windows-x86-64.exe
-rwxr-xr-x. 1 root root 204800 Jul 30 15:47 wrapper-windows-x86-32.exe
-rwxr-xr-x. 1 root root 110992 Jul 30 15:47 wrapper-solaris-x86-32
-rwxr-xr-x. 1 root root 148512 Jul 30 15:47 wrapper-solaris-sparc-64
-rwxr-xr-x. 1 root root 112536 Jul 30 15:47 wrapper-solaris-sparc-32
-rwxr-xr-x. 1 root root 233604 Jul 30 15:47 wrapper-macosx-universal-32
-rwxr-xr-x. 1 root root 114052 Jul 30 15:47 wrapper-macosx-ppc-32
-rwxr-xr-x. 1 root root 111027 Jul 30 15:47 wrapper-linux-x86-64
-rwxr-xr-x. 1 root root  99401 Jul 30 15:47 wrapper-linux-x86-32
-rwxr-xr-x. 1 root root 140198 Jul 30 15:47 wrapper-linux-ppc-64
-rwxr-xr-x. 1 root root  99401 Jul 30 15:47 wrapper
-rwxr-xr-x. 1 root root   4331 Jul 30 15:47 run.sh
-rw-r--r--. 1 root root   3801 Jul 30 15:47 run.bat
-rwxr-xr-x. 1 root root   4321 Jul 30 15:47 james-cli.sh
-rw-r--r--. 1 root root   3791 Jul 30 15:47 james-cli.bat
-rwxr-xr-x. 1 root root   3983 Jul 30 15:47 james.bat
-rwxr-xr-x. 1 root root  15765 Jul 30 15:47 james
[root@james-mailserver james-server-app-3.1.0]# 

写入环境变量:

[root@james-mailserver james-server-app-3.1.0]# cat ~/.bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=/software/james-server-app-3.1.0/bin:$PATH:$HOME/bin

export PATH
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# source ~/.bash_profile 
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# env | grep james
HOSTNAME=james-mailserver
PATH=/software/james-server-app-3.1.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin
PWD=/software/james-server-app-3.1.0
[root@james-mailserver james-server-app-3.1.0]# 

Java版本:

[root@james-mailserver ~]# java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
[root@james-mailserver ~]# 

修改SMTP端口:

[root@james-mailserver conf]# pwd
/software/james-server-app-3.1.0/conf
[root@james-mailserver conf]# 
[root@james-mailserver conf]# cat smtpserver.xml | grep --color 25
            Port 25 is the well-known/IANA registered port for SMTP. 
     0.0.0.0:1225
               127.*, 127.0.0.0/8, 127.0.0.0/255.0.0.0, and localhost/8 are all the same
[root@james-mailserver conf]# 

默认:25。

启动服务:James

[root@james-mailserver ~]# /software/james-server-app-3.1.0/bin/run.sh 
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/software/james-server-app-3.1.0/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/software/james-server-app-3.1.0/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
INFO  15:07:33,536 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@464bee09: startup date [Tue Aug 14 15:07:33 CST 2018]; root of context hierarchy
log4j:WARN No appenders could be found for logger (org.apache.commons.configuration.ConfigurationUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
INFO  15:07:41,126 | org.apache.james.container.spring.context.JamesServerApplicationContext | Bean 'logprovider' of type [class org.apache.james.container.spring.lifecycle.LogProviderImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
29  James  WARN   [main] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'James', root URL [file:/software/james-server-app-3.1.0/conf]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
INFO  15:07:41,985 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | JamesMailStore init...
INFO  15:07:42,010 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | Registering Repository instance of class org.apache.james.mailrepository.file.FileMailRepository to handle file protocol requests
INFO  15:07:42,011 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | Registering Repository instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle db protocol requests
INFO  15:07:42,011 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | Registering Repository instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle dbfile protocol requests
INFO  15:07:42,266 | org.apache.james.dnsservice.dnsjava.DNSJavaService | Autodiscovery is enabled - trying to discover your system's DNS Servers
INFO  15:07:42,271 | org.apache.james.dnsservice.dnsjava.DNSJavaService | Adding autodiscovered server 114.114.114.114
INFO  15:07:42,271 | org.apache.james.dnsservice.dnsjava.DNSJavaService | DNS Server is: 114.114.114.114
INFO  15:07:42,299 | org.apache.james.dnsservice.dnsjava.DNSJavaService | Registered cache, resolver and search paths as DNSJava defaults
INFO  15:07:52,386 | org.apache.james.domainlist.lib.AbstractDomainList | Set autodetect to: true
INFO  15:07:52,386 | org.apache.james.domainlist.lib.AbstractDomainList | Set autodetectIP to: true
10518  James  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.4.2
10656  James  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary".
12964  James  INFO   [main] openjpa.jdbc.JDBC - Connected to Apache Derby version 10.10 using JDBC driver Apache Derby Embedded JDBC Driver version 10.9.1.0 - (1344872). 
WARN  15:07:58,479 | org.apache.activemq.broker.BrokerService | Memory Usage for the Broker (1024mb) is more than the maximum available for the JVM: 494 mb - resetting to 70% of maximum available: 346 mb
WARN  15:07:59,005 | org.apache.activemq.broker.BrokerService | Store limit is 102400 mb (current store usage is 0 mb). The data directory: /root/../var/store/activemq/brokers/KahaDB only has 32448 mb of usable space. - resetting to maximum available disk space: 32448 mb
WARN  15:07:59,005 | org.apache.activemq.broker.BrokerService | Temporary Store limit is 51200 mb (current store usage is 0 mb). The data directory: /root/../var/store/activemq/brokers only has 32448 mb of usable space. - resetting to maximum available disk space: 32448 mb
INFO  15:07:59,006 | org.apache.james.queue.activemq.EmbeddedActiveMQ | Started embedded activeMq
INFO  15:08:00,514 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:00,595 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet PostmasterAlias instantiated.
INFO  15:08:00,601 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher RelayLimit=30 instantiated.
INFO  15:08:00,605 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet Null instantiated.
INFO  15:08:00,629 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher HasMailAttribute=spamChecked instantiated.
INFO  15:08:00,634 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
INFO  15:08:00,651 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:00,680 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet SetMailAttribute instantiated.
INFO  15:08:00,684 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher SMTPAuthSuccessful instantiated.
INFO  15:08:00,691 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
INFO  15:08:00,691 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:00,692 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
INFO  15:08:01,571 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:01,636 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:01,643 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/error
INFO  15:08:01,644 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:01,644 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/error
INFO  15:08:01,661 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:01,661 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/error
INFO  15:08:01,661 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:01,661 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/error
INFO  15:08:01,662 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | added repository: org.apache.commons.configuration.SubnodeConfiguration@14b9df65->org.apache.james.mailrepository.file.FileMailRepository
INFO  15:08:01,662 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToRepository instantiated.
INFO  15:08:01,721 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher SMTPAuthSuccessful instantiated.
INFO  15:08:01,753 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet SetMimeHeader instantiated.
INFO  15:08:01,754 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher HasMailAttribute=org.apache.james.SMIMECheckSignature instantiated.
INFO  15:08:01,755 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet SetMimeHeader instantiated.
INFO  15:08:01,755 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:01,826 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet RecipientRewriteTable instantiated.
INFO  15:08:01,829 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher SenderIsLocal instantiated.
INFO  15:08:02,113 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToSenderFolder instantiated.
INFO  15:08:02,145 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher RecipientIsLocal instantiated.
INFO  15:08:02,268 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet Sieve instantiated.
INFO  15:08:02,269 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher RecipientIsLocal instantiated.
INFO  15:08:02,273 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet AddDeliveredToHeader instantiated.
INFO  15:08:02,274 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher RecipientIsLocal instantiated.
INFO  15:08:02,305 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet LocalDelivery instantiated.
INFO  15:08:02,310 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher HostIsLocal instantiated.
INFO  15:08:02,311 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
INFO  15:08:02,413 | org.apache.james.transport.matchers.AbstractNetworkMatcher | Authorized addresses: [127.0.0.1/255.255.255.255]
INFO  15:08:02,413 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher RemoteAddrNotInNetwork=127.0.0.1 instantiated.
INFO  15:08:02,414 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
INFO  15:08:02,414 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
WARN  15:08:02,470 | org.apache.james.transport.mailets.remote.delivery.DelaysAndMaxRetry | maxRetries is larger than total number of attempts specified. Increasing last delayTime with 22 attempts 
WARN  15:08:02,470 | org.apache.james.transport.mailets.remote.delivery.DelaysAndMaxRetry | Delay of 500000 msecs is now attempted: 1 times
INFO  15:08:02,633 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet RemoteDelivery instantiated.
INFO  15:08:03,040 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,074 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet MetricsMailet instantiated.
INFO  15:08:03,074 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,112 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet Bounce instantiated.
INFO  15:08:03,113 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,115 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,142 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/over-quota-error
INFO  15:08:03,142 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,143 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/over-quota-error
INFO  15:08:03,143 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,143 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/over-quota-error
INFO  15:08:03,144 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,144 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/over-quota-error
INFO  15:08:03,144 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | added repository: org.apache.commons.configuration.SubnodeConfiguration@14b9df65->org.apache.james.mailrepository.file.FileMailRepository
INFO  15:08:03,145 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToRepository instantiated.
INFO  15:08:03,258 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,273 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,273 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/spam
INFO  15:08:03,274 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,274 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/spam
INFO  15:08:03,274 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,274 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/spam
INFO  15:08:03,275 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,275 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/spam
INFO  15:08:03,275 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | added repository: org.apache.commons.configuration.SubnodeConfiguration@14b9df65->org.apache.james.mailrepository.file.FileMailRepository
INFO  15:08:03,275 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToRepository instantiated.
INFO  15:08:03,324 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,325 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet SetMailAttribute instantiated.
INFO  15:08:03,326 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher SMTPAuthSuccessful instantiated.
INFO  15:08:03,327 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet Bounce instantiated.
INFO  15:08:03,327 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,328 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet Null instantiated.
INFO  15:08:03,499 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,501 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,501 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/address-error
INFO  15:08:03,502 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,502 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/address-error
INFO  15:08:03,502 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,502 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/address-error
INFO  15:08:03,503 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,503 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/address-error
INFO  15:08:03,503 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | added repository: org.apache.commons.configuration.SubnodeConfiguration@14b9df65->org.apache.james.mailrepository.file.FileMailRepository
INFO  15:08:03,503 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToRepository instantiated.
INFO  15:08:03,588 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,590 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,590 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/relay-denied
INFO  15:08:03,590 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,591 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/relay-denied
INFO  15:08:03,616 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentObjectRepository Store
INFO  15:08:03,617 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentObjectRepository opened in ../var/mail/relay-denied
INFO  15:08:03,617 | org.apache.james.repository.file.AbstractFileRepository | Init org.apache.james.repository.file.FilePersistentStreamRepository Store
INFO  15:08:03,617 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/relay-denied
INFO  15:08:03,617 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | added repository: org.apache.commons.configuration.SubnodeConfiguration@14b9df65->org.apache.james.mailrepository.file.FileMailRepository
INFO  15:08:03,618 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToRepository instantiated.
INFO  15:08:03,692 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:08:03,951 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet DSNBounce instantiated.
INFO  15:08:04,055 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler init...
INFO  15:08:04,056 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler uses 20 Thread(s)
INFO  15:08:04,083 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Run org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-1
INFO  15:08:04,084 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Queue=MailQueue:spool
INFO  15:08:04,112 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Run org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-2
INFO  15:08:04,112 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Queue=MailQueue:spool
INFO  15:08:04,215 | org.apache.james.fetchmail.FetchScheduler | FetchMail Disabled
INFO  15:08:04,310 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service bound to: 0.0.0.0:1225
INFO  15:08:04,339 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service is running on: james-mailserver
INFO  15:08:04,339 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service handler hello name is: james-mailserver
INFO  15:08:04,339 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service handler connection timeout is: 360
INFO  15:08:04,340 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service connection backlog is: 200
INFO  15:08:04,340 | org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer | This SMTP server does not require authentication.
INFO  15:08:04,340 | org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer | No maximum message size is enforced for this server.
INFO  15:08:05,113 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init SMTP Service done
INFO  15:08:05,122 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | LMTP Service disabled by configuration
INFO  15:08:05,141 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service bound to: 0.0.0.0:110
INFO  15:08:05,142 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service is running on: james-mailserver
INFO  15:08:05,142 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service handler hello name is: james-mailserver
INFO  15:08:05,142 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service handler connection timeout is: 1200
INFO  15:08:05,142 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service connection backlog is: 200
INFO  15:08:05,414 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init POP3 Service done
INFO  15:08:06,204 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service bound to: 0.0.0.0:143
INFO  15:08:06,204 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service is running on: james-mailserver
INFO  15:08:06,204 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service handler hello name is: james-mailserver
INFO  15:08:06,204 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service handler connection timeout is: 300
INFO  15:08:06,204 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service connection backlog is: 200
INFO  15:08:06,275 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init IMAP Service done
INFO  15:08:06,348 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Manage Sieve Service disabled by configuration
INFO  15:08:07,731 | org.apache.james.app.spring.JamesAppSpringMain | Apache James Server is successfully started in 34397 milliseconds.

可以看到,James启动成功。
注意,上面【Manage Sieve Service】是禁用的。

查看端口:

[root@james-mailserver ~]# netstat -tupln | grep java
tcp6       0      0 :::36610                :::*                    LISTEN      4168/java           
tcp6       0      0 :::1225                 :::*                    LISTEN      4168/java           
tcp6       0      0 :::110                  :::*                    LISTEN      4168/java           
tcp6       0      0 127.0.0.1:9999          :::*                    LISTEN      4168/java           
tcp6       0      0 :::143                  :::*                    LISTEN      4168/java           
tcp6       0      0 :::33327                :::*                    LISTEN      4168/java           
tcp6       0      0 127.0.0.1:39380         :::*                    LISTEN      4168/java           
[root@james-mailserver ~]# 

修改配置文件,打开【Manage Sieve Service】

[root@james-mailserver conf]# pwd
/software/james-server-app-3.1.0/conf
[root@james-mailserver conf]# 
[root@james-mailserver conf]# cat managesieveserver.xml | grep "managesieveserver enabled"
   
[root@james-mailserver conf]# 

重新启动服务。

这次看到的日志就不一样了:

INFO  15:20:47,291 | org.apache.james.repository.file.AbstractFileRepository | org.apache.james.repository.file.FilePersistentStreamRepository opened in ../var/mail/relay-denied
INFO  15:20:47,292 | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | added repository: org.apache.commons.configuration.SubnodeConfiguration@20556566->org.apache.james.mailrepository.file.FileMailRepository
INFO  15:20:47,292 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToRepository instantiated.
INFO  15:20:47,348 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
INFO  15:20:47,583 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet DSNBounce instantiated.
INFO  15:20:47,638 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler init...
INFO  15:20:47,638 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler uses 20 Thread(s)
INFO  15:20:47,663 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Run org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-1
INFO  15:20:47,663 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Queue=MailQueue:spool
INFO  15:20:47,690 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Run org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-2
INFO  15:20:47,690 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | Queue=MailQueue:spool
INFO  15:20:47,734 | org.apache.james.fetchmail.FetchScheduler | FetchMail Disabled
INFO  15:20:47,833 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service bound to: 0.0.0.0:1225
INFO  15:20:47,869 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service is running on: james-mailserver
INFO  15:20:47,869 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service handler hello name is: james-mailserver
INFO  15:20:47,869 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service handler connection timeout is: 360
INFO  15:20:47,869 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | SMTP Service connection backlog is: 200
INFO  15:20:47,870 | org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer | This SMTP server does not require authentication.
INFO  15:20:47,870 | org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer | No maximum message size is enforced for this server.
INFO  15:20:48,445 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init SMTP Service done
INFO  15:20:48,454 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | LMTP Service disabled by configuration
INFO  15:20:48,483 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service bound to: 0.0.0.0:110
INFO  15:20:48,483 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service is running on: james-mailserver
INFO  15:20:48,483 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service handler hello name is: james-mailserver
INFO  15:20:48,483 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service handler connection timeout is: 1200
INFO  15:20:48,484 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | POP3 Service connection backlog is: 200
INFO  15:20:48,684 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init POP3 Service done
INFO  15:20:49,138 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service bound to: 0.0.0.0:143
INFO  15:20:49,139 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service is running on: james-mailserver
INFO  15:20:49,160 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service handler hello name is: james-mailserver
INFO  15:20:49,160 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service handler connection timeout is: 300
INFO  15:20:49,160 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | IMAP Service connection backlog is: 200
INFO  15:20:49,223 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init IMAP Service done
INFO  15:20:49,273 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Manage Sieve Service bound to: 0.0.0.0:4190
INFO  15:20:49,273 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Manage Sieve Service is running on: james-mailserver
INFO  15:20:49,273 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Manage Sieve Service handler hello name is: james-mailserver
INFO  15:20:49,274 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Manage Sieve Service handler connection timeout is: 360
INFO  15:20:49,274 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Manage Sieve Service connection backlog is: 200
INFO  15:20:49,311 | org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer | Init Manage Sieve Service done
INFO  15:20:50,434 | org.apache.james.app.spring.JamesAppSpringMain | Apache James Server is successfully started in 30978 milliseconds.

端口:

[root@james-mailserver ~]# netstat -tupln | grep java
tcp6       0      0 :::4190                 :::*                    LISTEN      5671/java           
tcp6       0      0 :::1225                 :::*                    LISTEN      5671/java           
tcp6       0      0 :::110                  :::*                    LISTEN      5671/java           
tcp6       0      0 127.0.0.1:9999          :::*                    LISTEN      5671/java           
tcp6       0      0 :::143                  :::*                    LISTEN      5671/java           
tcp6       0      0 127.0.0.1:42992         :::*                    LISTEN      5671/java           
tcp6       0      0 :::43412                :::*                    LISTEN      5671/java           
tcp6       0      0 :::43162                :::*                    LISTEN      5671/java           
[root@james-mailserver ~]# 

也可以这么启动:

[root@james-mailserver bin]# ls
james          james-cli.sh  setenv.bat  wrapper-linux-ppc-64  wrapper-macosx-ppc-32        wrapper-solaris-sparc-64    wrapper-windows-x86-64.exe
james.bat      run.bat       setenv.sh   wrapper-linux-x86-32  wrapper-macosx-universal-32  wrapper-solaris-x86-32
james-cli.bat  run.sh        wrapper     wrapper-linux-x86-64  wrapper-solaris-sparc-32     wrapper-windows-x86-32.exe
[root@james-mailserver bin]# 
[root@james-mailserver bin]# james status
Apache James :: Server :: App is not running.
[root@james-mailserver bin]# 
[root@james-mailserver bin]# james start
Starting Apache James :: Server :: App...
[root@james-mailserver bin]# 
[root@james-mailserver bin]# james status
Apache James :: Server :: App is running (2005).
[root@james-mailserver bin]# 

端口:

[root@james-mailserver bin]# netstat -tupln | grep java
tcp        0      0 127.0.0.1:32000         0.0.0.0:*               LISTEN      2007/java           
tcp6       0      0 :::4190                 :::*                    LISTEN      2007/java           
tcp6       0      0 :::1225                 :::*                    LISTEN      2007/java           
tcp6       0      0 :::110                  :::*                    LISTEN      2007/java           
tcp6       0      0 127.0.0.1:35918         :::*                    LISTEN      2007/java           
tcp6       0      0 127.0.0.1:9999          :::*                    LISTEN      2007/java           
tcp6       0      0 :::143                  :::*                    LISTEN      2007/java           
tcp6       0      0 :::44275                :::*                    LISTEN      2007/java           
tcp6       0      0 :::40052                :::*                    LISTEN      2007/java           
[root@james-mailserver bin]# 

James,日志:

[root@james-mailserver ~]# cd /software/james-server-app-3.1.0/
[root@james-mailserver james-server-app-3.1.0]# ls -ltr 
total 108
-rw-r--r--. 1 root root  1393 Jul 30 13:34 README.crypto
-rw-r--r--. 1 root root  5882 Jul 30 13:34 NOTICE
-rw-r--r--. 1 root root 67771 Jul 30 13:34 LICENSE
drwxr-xr-x. 2 root root 12288 Jul 30 15:47 lib
drwxr-xr-x. 4 root root  4096 Aug 14 15:18 conf
drwxr-xr-x. 4 root root    66 Aug 14 15:28 var
drwxr-xr-x. 2 root root  4096 Aug 14 15:28 log
drwxr-xr-x. 2 root root  4096 Aug 14 15:29 bin
drwxr-xr-x  2 root root     6 Aug 14 15:29 sieve
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# ls -ltr log/
total 128
-rw-r--r--. 1 root root     0 Aug 14 15:15 dnsservice.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 james-server.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 mailetcontainer.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 imapserver.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 usersrepository.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 virtualusertable.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 smtpserver.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 domainlist.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 mailboxmanager.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 mailrepositorystore.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 lmtpserver.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 pop3server.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 fetchmail.log
-rw-r--r--. 1 root root     0 Aug 14 15:15 mailqueuefactory.log
-rw-r--r--  1 root root 68835 Aug 14 15:29 wrapper.log
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# tail -f log/james-server.log 

^C
[root@james-mailserver james-server-app-3.1.0]# 
[root@james-mailserver james-server-app-3.1.0]# tail -f log/wrapper.log 
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located MBean 'org.apache.james:type=component,name=fetchmail': registering with JMX server as MBean [org.apache.james:type=component,name=fetchmail]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located MBean 'org.apache.james:type=component,name=mailboxmanagerbean': registering with JMX server as MBean [org.apache.james:type=component,name=mailboxmanagerbean]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located managed bean 'org.apache.james:type=component,component=mailetcontainer,name=mailspooler': registering with JMX server as MBean [org.apache.james:type=component,component=mailetcontainer,name=mailspooler]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located MBean 'org.apache.james:type=component,name=mailboxcopier': registering with JMX server as MBean [org.apache.james:type=component,name=mailboxcopier]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located managed bean 'org.apache.james:type=container,name=logprovider': registering with JMX server as MBean [org.apache.james:type=container,name=logprovider]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located MBean 'org.apache.james:type=component,name=quotamanagerbean': registering with JMX server as MBean [org.apache.james:type=component,name=quotamanagerbean]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located MBean 'org.apache.james:type=component,name=reindexerbean': registering with JMX server as MBean [org.apache.james:type=component,name=reindexerbean]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.jmx.export.MBeanExporter - Located MBean 'org.apache.james:type=component,name=sievemanagerbean': registering with JMX server as MBean [org.apache.james:type=component,name=sievemanagerbean]
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.springframework.context.support.DefaultLifecycleProcessor - Starting beans in phase 2147483646
INFO   | jvm 1    | 2018/08/14 15:29:48 | [WrapperSimpleAppMain] INFO org.apache.james.app.spring.JamesAppSpringMain - Apache James Server is successfully started in 64675 milliseconds.

添加Domain和用户:

[root@james-mailserver ~]# james-cli.sh -h localhost -p 9999 adddomain adamhuan.com
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/software/james-server-app-3.1.0/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/software/james-server-app-3.1.0/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
AddDomain command executed sucessfully in 384 ms.
[root@james-mailserver ~]# 
[root@james-mailserver ~]# james-cli.sh -h localhost -p 9999 adduser adamhuan@adamhuan.com abcd1234
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/software/james-server-app-3.1.0/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/software/james-server-app-3.1.0/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
AddUser command executed sucessfully in 514 ms.
[root@james-mailserver ~]# 

安装【telnet】

[root@james-mailserver ~]# yum install -y telnet
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.shu.edu.cn
 * extras: mirrors.shu.edu.cn
 * updates: mirrors.nju.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-64.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                             Arch                                Version                                    Repository                         Size
============================================================================================================================================================
Installing:
 telnet                              x86_64                              1:0.17-64.el7                              base                               64 k

Transaction Summary
============================================================================================================================================================
Install  1 Package

Total download size: 64 k
Installed size: 113 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/telnet-0.17-64.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for telnet-0.17-64.el7.x86_64.rpm is not installed
telnet-0.17-64.el7.x86_64.rpm                                                                                                        |  64 kB  00:00:00     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) "
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:telnet-0.17-64.el7.x86_64                                                                                                              1/1 
  Verifying  : 1:telnet-0.17-64.el7.x86_64                                                                                                              1/1 

Installed:
  telnet.x86_64 1:0.17-64.el7                                                                                                                               

Complete!
[root@james-mailserver ~]# 

访问James:

发送一个测试邮件:

[root@james-mailserver ~]# telnet localhost 1225
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 james-mailserver JAMES SMTP Server Server (JAMES SMTP Server ) ready
mail from:
503 5.5.0 Need HELO or EHLO before MAIL
ehlo testing from james
250-james-mailserver Hello testing from james [0:0:0:0:0:0:0:1])
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 8BITMIME
mail from:
250 2.1.0 Sender  OK
rcpt to:
250 2.1.5 Recipient  OK
data
354 Ok Send data ending with .
subject: First time using Apache James

This is a testing from adamhuan to adamhuan   
.
250 2.6.0 Message received
quit
221 2.0.0 james-mailserver Service closing transmission channel
Connection closed by foreign host.
[root@james-mailserver ~]# 

发送成功,后端日志:

INFO   | jvm 1    | 2018/08/14 15:44:25 | [smtpserver-executor-69] INFO org.apache.james.smtpserver.SendMailHandler - Successfully spooled mail Mail1534232665389-1501f710-d8bf-4761-a656-76fdeaee9522 from adamhuan@adamhuan.com on localhost/0:0:0:0:0:0:0:1 for [adamhuan@adamhuan.com]
INFO   | jvm 1    | 2018/08/14 15:44:26 | [spooler-1] ERROR org.apache.james.transport.mailets.ToSenderFolder - Local delivery with ToSenderFolder mailet for mail Mail1534232665389-1501f710-d8bf-4761-a656-76fdeaee9522 with sender adamhuan@adamhuan.com in folder Sent
INFO   | jvm 1    | 2018/08/14 15:44:26 | [spooler-1] INFO org.apache.james.transport.mailets.jsieve.delivery.SieveExecutor - Can not locate SIEVE script for user 
INFO   | jvm 1    | 2018/08/14 15:44:26 | [spooler-1] INFO org.apache.james.transport.mailets.delivery.SimpleMailStore - Local delivered mail Mail1534232665389-1501f710-d8bf-4761-a656-76fdeaee9522 successfully from  to  in folder INBOX with composedMessageId ComposedMessageId{mailboxId=2, messageId=DefaultMessageId{}, uid=MessageUid{uid=1}}
INFO   | jvm 1    | 2018/08/14 15:44:34 | [smtpserver-executor-73] INFO org.apache.james.protocols.netty.BasicChannelUpstreamHandler - Connection closed for 0:0:0:0:0:0:0:1

网易邮箱大师,配置到James的访问:

邮箱大师里面收到的邮件信息:

——————————————————
至此,最简单的James的配置就完成了。

——————————————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒