Hi Haiming,

below xml in conf folder are required, you need change quota-template.xml to 
quota.xml. 

events.xml
imapserver.xml
indexer.xml
mailetcontainer.xml
managesieveserver.xml
pop3server.xml
quota.xml
smtpserver.xml


INFO   | jvm 1    | 2016/09/24 22:49:11 | Caused by: 
org.apache.commons.configuration.ConfigurationException: Unable to load 
configuration for component quota


Thanks and Regards,
Shawn

On Sep 24, 2016, at 10:50 PM, li hai ming <haiming...@outlook.com 
<mailto:haiming...@outlook.com>> wrote:

Hi,
I follow your stops but get error when ./james start. Any clue?
 
STATUS | wrapper  | 2016/09/24 22:49:03 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2016/09/24 22:49:04 | Launching a JVM...
INFO   | jvm 1    | 2016/09/24 22:49:04 | Wrapper (Version 3.2.3) 
http://wrapper.tanukisoftware.org <http://wrapper.tanukisoftware.org/>
INFO   | jvm 1    | 2016/09/24 22:49:04 |   Copyright 1999-2006 Tanuki 
Software, Inc.  All Rights Reserved.
INFO   | jvm 1    | 2016/09/24 22:49:04 |
INFO   | jvm 1    | 2016/09/24 22:49:05 | INFO  22:49:05,291 | 
org.apache.james.container.spring.context.JamesServerApplicationContext | 
Refreshing 
org.apache.james.container.spring.context.JamesServerApplicationContext@3abcf3c5:
 startup date [Sat Sep 24 22:49:05 CST 2016]; root of context hierarchy
INFO   | jvm 1    | 2016/09/24 22:49:10 | log4j:WARN No appenders could be 
found for logger (org.apache.commons.configuration.ConfigurationUtils).
INFO   | jvm 1    | 2016/09/24 22:49:10 | log4j:WARN Please initialize the 
log4j system properly.
INFO   | jvm 1    | 2016/09/24 22:49:10 | log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig 
<http://logging.apache.org/log4j/1.2/faq.html#noconfig> for more info.
INFO   | jvm 1    | 2016/09/24 22:49:11 | WARN  22:49:11,006 | 
org.apache.james.container.spring.context.JamesServerApplicationContext | 
Exception encountered during context initialization - cancelling refresh attempt
INFO   | jvm 1    | 2016/09/24 22:49:11 | 
org.springframework.beans.FatalBeanException: Unable to configure Quota system; 
nested exception is org.apache.commons.configuration.ConfigurationException: 
Unable to load configuration for component quota
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.bean.factorypostprocessor.QuotaBeanFactoryPostProcessor.postProcessBeanFactory(QuotaBeanFactoryPostProcessor.java:66)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:696)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:40)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
java.lang.reflect.Method.invoke(Method.java:498)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
java.lang.Thread.run(Thread.java:745)
INFO   | jvm 1    | 2016/09/24 22:49:11 | Caused by: 
org.apache.commons.configuration.ConfigurationException: Unable to load 
configuration for component quota
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.lifecycle.ConfigurationProviderImpl.getConfiguration(ConfigurationProviderImpl.java:135)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.bean.factorypostprocessor.QuotaBeanFactoryPostProcessor.postProcessBeanFactory(QuotaBeanFactoryPostProcessor.java:50)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       ... 14 more
INFO   | jvm 1    | 2016/09/24 22:49:11 |
INFO   | jvm 1    | 2016/09/24 22:49:11 | WrapperSimpleApp: Encountered an 
error running main: org.springframework.beans.FatalBeanException: Unable to 
configure Quota system; nested exception is 
org.apache.commons.configuration.ConfigurationException: Unable to load 
configuration for component quota
INFO   | jvm 1    | 2016/09/24 22:49:11 | 
org.springframework.beans.FatalBeanException: Unable to configure Quota system; 
nested exception is org.apache.commons.configuration.ConfigurationException: 
Unable to load configuration for component quota
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.bean.factorypostprocessor.QuotaBeanFactoryPostProcessor.postProcessBeanFactory(QuotaBeanFactoryPostProcessor.java:66)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:696)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:40)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
java.lang.reflect.Method.invoke(Method.java:498)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
java.lang.Thread.run(Thread.java:745)
INFO   | jvm 1    | 2016/09/24 22:49:11 | Caused by: 
org.apache.commons.configuration.ConfigurationException: Unable to load 
configuration for component quota
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.lifecycle.ConfigurationProviderImpl.getConfiguration(ConfigurationProviderImpl.java:135)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       at 
org.apache.james.container.spring.bean.factorypostprocessor.QuotaBeanFactoryPostProcessor.postProcessBeanFactory(QuotaBeanFactoryPostProcessor.java:50)
INFO   | jvm 1    | 2016/09/24 22:49:11 |       ... 14 more
STATUS | wrapper  | 2016/09/24 22:49:13 | <-- Wrapper Stopped
 
发送自 Windows 10 版邮件应用
 
发件人: Shawn Fu Sheng <mailto:sh...@victz.com>
发送时间: 2016年9月24日 18:32
收件人: James Users List <mailto:server-user@james.apache.org>
主题: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside 
domains
 
Hi,

good day. I cloned the trunk source code from git (22Sep2016) and builded zip, 
tested seems everything ok but unable receive email from outside domains. 
anyone could help give me a hint how to troubleshoot, please? i made sure the 
MX and SPF record has been pointed to the correct CNAME address and verified by 
NSLOOKUP shown ok. the steps listed as follows for your advice, please.


1) cloned trunk source code from git, executed mvn package -DskipTests=true 
-Pwith-assembly
2) copied and extracted james-server-app-3.0.0-beta5-SNAPSHOT-app.zip under 
directory /james-project/server/app/target/ to target server.
3) modified below xml bind IP to server IP and enable SMTP authRequired. 

events.xml
imapserver.xml
indexer.xml
mailetcontainer.xml
managesieveserver.xml
pop3server.xml
quota.xml
smtpserver.xml

4)comment below RemoteAddrNotInNetwork matcher.

       <!--       
       <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
          <processor>relay-denied</processor>
          <notice>550 - Requested action not taken: relaying denied</notice>
       </mailet>
       -->

after above, i created test domain and test user, started services, opened 
firewall 25,465, 110. 995, 143, 993, i am now able to connect SMTP and IMAP via 
my iPhone. able to send email to iCloud and yahoo mails. but when they reply, i 
can’t receive. but i am able to receive email from local user.

Appreciate your help, please. thank you in advance. 

Thanks and Regards,
Shawn

Reply via email to