Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains

2016-09-24 Thread Shawn Fu Sheng
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 > 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 
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 
 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.(ClassPathXmlApplicationContext.java:139)
INFO   | jvm 1| 2016/09/24 22:49:11 |   at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
INFO   | jvm 1| 2016/09/24 22:49:11 |   at 
org.apache.james.container.spring.context.JamesServerApplicationContext.(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 

Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains

2016-09-24 Thread Shawn Fu Sheng
Hi Hai ming,

i even unable to find any log regarding incoming email after i gone through all 
log files under log directory. i suppose could it because of my MX problem or 
Firewall issue? may i know is the incoming mail using same port with outgoing 
smtp ? i only opened port 465 as i set in smtpserver.xml. i remember i switched 
off firewall before and tested also cannot.


Thanks and Regards,
Shawn

On Sep 25, 2016, at 9:34 AM, li hai ming <haiming...@outlook.com> wrote:

 
Regarding receiving problem, have u checked james-server.log to see if any clue 
there?
 
 
发送自 Windows 10 版邮件应用
 
发件人: Shawn Fu Sheng <mailto:sh...@victz.com>
发送时间: 2016年9月24日 23:21
收件人: li hai ming <mailto:haiming...@outlook.com>
抄送: James Users List <mailto:server-user@james.apache.org>
主题: Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from 
outside domains
 
Hi,

can’t see much from you logs. those are INFO messages not error. may be you can 
share your logs or config file? BTW, how did you config your receiving part? 
which config file i should update? is it smtpserver.xml?


Thanks and Regards,
Shawn

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

 
Hi,
I also have beta5 up and running. When sending email from james to my qq email, 
I got below error.
Any config I should change?
 
Btw: my james is able to receive the emails from my qq senders.
 
##
INFO   | jvm 1| 2016/09/24 23:11:37 | INFO  23:11:37,478 | 
james.mailetcontext | Local delivery with ToSenderFolder mailet for mail 
Mail1474729897353-d54c9c61-b19c-445e-86f5-da2b4706ba14 with sender 
u...@xx.yyy.com <mailto:u...@xx.yyy.com> in folder Sent
INFO   | jvm 1| 2016/09/24 23:11:37 | INFO  23:11:37,495 | 
james.mailetcontext | Storing mail 
Mail1474729897353-d54c9c61-b19c-445e-86f5-da2b4706ba14 in 
file://var/mail/relay-denied/ 
##
 
发送自 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.

   

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



Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains

2016-09-24 Thread Shawn Fu Sheng
Hi,

can’t see much from you logs. those are INFO messages not error. may be you can 
share your logs or config file? BTW, how did you config your receiving part? 
which config file i should update? is it smtpserver.xml?


Thanks and Regards,
Shawn

On Sep 24, 2016, at 11:14 PM, li hai ming  wrote:

 
Hi,
I also have beta5 up and running. When sending email from james to my qq email, 
I got below error.
Any config I should change?
 
Btw: my james is able to receive the emails from my qq senders.
 
##
INFO   | jvm 1| 2016/09/24 23:11:37 | INFO  23:11:37,478 | 
james.mailetcontext | Local delivery with ToSenderFolder mailet for mail 
Mail1474729897353-d54c9c61-b19c-445e-86f5-da2b4706ba14 with sender 
u...@xx.yyy.com  in folder Sent
INFO   | jvm 1| 2016/09/24 23:11:37 | INFO  23:11:37,495 | 
james.mailetcontext | Storing mail 
Mail1474729897353-d54c9c61-b19c-445e-86f5-da2b4706ba14 in 
file://var/mail/relay-denied/ 
##
 
发送自 Windows 10 版邮件应用
 
发件人: Shawn Fu Sheng 
发送时间: 2016年9月24日 18:32
收件人: James Users List 
主题: 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.

   

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