答复: james v3-beta4 start

2016-10-04 Thread li hai ming
I follow https://github.com/apache/james-project, below section

##

Run James with Java 8 + Guice + Cassandra + ElasticSearch
Requirements

Built artifacts should be in ./dockerfiles/run/guice/destination folder. If you 
haven’t already:

$ docker build -t james/project dockerfiles/compilation/java-8

$ docker run -v $HOME/.m2:/root/.m2 -v $PWD:/origin \

  -v $PWD/dockerfiles/run/guice/destination:/destination \

  -t james/project -s HEAD



##



I got below error:

##

[root@localhost james-project]# pwd

/home/haimingli/store/james-project

[root@localhost james-project]# docker run -v $HOME/.m2:/root/.m2 -v 
$PWD:/origin -v $PWD/dockerfiles/run/guice/destination:/destination -t 
james/project -s HEAD



fatal: repository '/origin/.' does not exist

##



Anything possibly missed in my operation?



发送自 Windows 10 版邮件应用



发件人: Matthieu Baechler<mailto:mbaech...@linagora.com>
发送时间: 2016年9月20日 15:53
收件人: server-user@james.apache.org<mailto:server-user@james.apache.org>
主题: Re: james v3-beta4 start



Hi,

We provide a docker image that works out of the box and the README
explains how to build the image, too.

Could you please have a try with docker ?

We will also try to release a beta soon, beta4 is very old now (maybe
two years).

Regards,

--

Matthieu Baechler


On 09/20/2016 09:10 AM, li hai ming wrote:
> thanks.
>
> does james-dev know the issue and has plan to fix?
>
> as a beta version, such _obvious_ issue is not good.
>
> via Newton 
> Mail<https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.5.43&pv=5.0.2&source=email_footer_2>
> On Tue, Sep 20, 2016 at 1:29 PM, Shawn Fu Sheng 
> mailto:sh...@victz.com>> wrote:
>
>
> Hi,
>
> I had same problem with you. I tried JDK 6&7&8,
>
> JDK 6 Started ok. Able to sent out emails, able to receive email from local 
> domain. Can't receive from outside domain. Pop working ok, imap can see how 
> many new email, but unable download.
>
> JDK7&8 unable start, same issue with yours. even after I copied jaxb-impl.jar
>
> I didn't try run.sh
>
> Hope this is helpful to you.
>
> Thanks and Regards,
> Shawn
>
>> On 20 Sep 2016, at 1:06 PM, lihai ming  wrote:
>>
>> i already copied jaxb-impl.jar under ../conf/lib
>> my java is [root@iZ28m97ac83Z lib]# java -versionopenjdk version 
>> "1.8.0_101"OpenJDK Runtime Environment (build 1.8.0_101-b13)OpenJDK 64-Bit 
>> Server VM (build 25.101-b13, mixed mode)
>> i use sudo su to root
>> then under .../james/bin/
>> using ./run.sh, james starts OK
>> using ./james start, no lucky. in wrapper.log it always says
>> ##STATUS | wrapper  | 2016/09/20 12:55:30 | --> Wrapper Started as 
>> DaemonSTATUS | wrapper  | 2016/09/20 12:55:30 | Launching a JVM...INFO   | 
>> jvm 1| 2016/09/20 12:55:32 | Wrapper (Version 3.2.3) 
>> http://wrapper.tanukisoftware.orgINFO   | jvm 1| 2016/09/20 12:55:32 |   
>> Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.INFO   | jvm 
>> 1| 2016/09/20 12:55:32 |INFO   | jvm 1| 2016/09/20 12:55:33 | INFO  
>> 12:55:33,101 | 
>> org.apache.james.container.spring.context.JamesServerApplicationContext | 
>> Refreshing 
>> org.apache.james.container.spring.context.JamesServerApplicationContext@32ef1cd4:
>>  startup date [Tue Sep 20 12:55:33 CST 2016]; root of context hierarchyINFO  
>>  | jvm 1| 2016/09/20 12:55:35 |INFO   | jvm 1| 2016/09/20 12:55:35 | 
>> WrapperSimpleApp: Encountered an error running main: 
>> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to 
>> create the JAXB binder; nested exception is javax.xml.bind.JAXBException: 
>> Provider com.sun.xml.internal.bind.v2.ContextFactory could not be 
>> instantiated: 
>> com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts 
>> of IllegalAnnotationExceptionsINFO   | jvm 1| 2016/09/20 12:55:35 | 
>> Class has two properties of the same name "outputs"##
>> what could be the possible reason?should i have to login as root to run 
>> ./james start?
>> or i can live with ./run.sh& ?
>>



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



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

2016-09-24 Thread li hai ming
In this case (mx ok and no log in your james server log file), it seems there 
is something wrong in your email client.
Which client r u using? Everything OK in the client config?

发送自 Windows 10 版邮件应用

发件人: Shawn Fu Sheng<mailto:sh...@victz.com>
发送时间: 2016年9月25日 12:31
收件人: Li Haiming<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 Haiming,

thank you for your prompt response. i can see MX record is pointing to my CNAME 
which pointing to server ip. in smtpserver.xml, i put the ip address instead of 
this cname, is that correct?

BTW, how is your sending issue now? is it resolved? you may feel free to call 
FaceTime auto to my email address if you need discussion, please.

[cid:7436102F-4AFF-4AF2-A9ED-AE393D811BF5]

Thanks and Regards,
Shawn

On Sep 25, 2016, at 10:58 AM, li hai ming 
mailto:haiming...@outlook.com>> wrote:

Maybe you can use nslookup to check if MX is ok or not.

Nslookup

> set type=mx
> your.james.mail.host

> set type=a
> your.mx.host

发送自 Windows 10 版邮件应用

发件人: Shawn Fu Sheng<mailto:sh...@victz.com>
发送时间: 2016年9月25日 10:23
收件人: 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 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 
mailto: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 
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



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

2016-09-24 Thread li hai ming
Maybe you can use nslookup to check if MX is ok or not.

Nslookup

> set type=mx
> your.james.mail.host

> set type=a
> your.mx.host

发送自 Windows 10 版邮件应用

发件人: Shawn Fu Sheng<mailto:sh...@victz.com>
发送时间: 2016年9月25日 10:23
收件人: 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 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 
mailto: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 
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



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

2016-09-24 Thread li hai ming

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 
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



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

2016-09-24 Thread li hai ming


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



答复: james-cli failure [unsigned]

2016-09-23 Thread li hai ming


Thanks Bernd.



I re-started James, and got below memory info:

[lihaiming@iZ28m97ac83Z bin]$ free -mh

  totalusedfree  shared  buff/cache   available

Mem:   991M741M106M 50M143M 90M

Swap:0B  0B  0B



Certainly no problem to run james-cli.



The I wondering who ate the memory from 106M ???



Btw: I have changed the startup parameter as

root   946   909  9 19:04 pts/400:00:19 
/etc/alternatives/jre_1.8.0/bin/java -XX:+HeapDumpOnOutOfMemoryError -Xms128m 
-Xmx256m …



发送自 Windows 10 版邮件应用



发件人: Bernd Waibel<mailto:bwai...@intarsys.de>
发送时间: 2016年9月23日 17:50
收件人: James Users List<mailto:server-user@james.apache.org>
主题: AW: james-cli failure [unsigned]



Hi,

you have a total of 991 Mb with 790 Mb used.
So you have 69 Mb free, but James want to commit 89 Mb.

And you do not have a swap space.
It seems that your machine do not have enough memory, or other processes do use 
the memory.

Best regards
Bernd Waibel
-Ursprüngliche Nachricht-----
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 10:20
An: 'James Users List' 
Betreff: RE: james-cli failure [unsigned]

Thanks.

When James is started, there is no problem to execute james-cli.
But after a while, below memory error occurs.

Someone is eating the memory?

Btw: i have java8 and use ./james/bin/run.sh&. (./james/james start does NOT
work on my server).

Pls also see below <<<.

[@iZ28m97ac83Z bin]$ free -mh
  totalusedfree  shared  buff/cache
available
Mem:   991M790M 69M 50M131M
48M
Swap:0B  0B  0B

-Original Message-
From: Bernd Waibel [mailto:bwai...@intarsys.de]
Sent: Friday, September 23, 2016 15:24
To: James Users List 
Subject: AW: james-cli failure [unsigned]

Hi

no, never had seen this before.
I could only remember: we had a user who wanted to send a very large video
file via mail.
The video was too much for any mail server to be handled.
Most mail servers do have a limit of about 20 MB per mail.

Did James try to handle a large mail (89 MB) in this case of situation?
<<< no. we just started James and are doing some experimental by sending
small emails.

I think I could not help, but maybe recommend:
What surprised me is that 89 Megabyte should be committed.
How much memory do you have? (free -mh).
It could just be a memory problem (not having enough OS memory free).

You could read that:
http://stackoverflow.com/questions/27262629/jvm-cant-map-reserved-memory-whe
n-running-in-docker-container

Best regards
Bernd Waibel

-----Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 05:58
An: 'server-user' 
Betreff: RE: james-cli failure

Does anyone meet the same problem? any clue on the root cause and the
solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below
error when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains OpenJDK 64-Bit Server
VM warning: INFO: os::commit_memory(0xeaaa, 89522176, 0) failed;
error='Cannot allocate memory' (errno=12) # # There is insufficient memory
for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



RE: james-cli failure [unsigned]

2016-09-23 Thread li hai ming
Thanks. 

When James is started, there is no problem to execute james-cli.
But after a while, below memory error occurs.

Someone is eating the memory?

Btw: i have java8 and use ./james/bin/run.sh&. (./james/james start does NOT
work on my server).

Pls also see below <<<.

[@iZ28m97ac83Z bin]$ free -mh
  totalusedfree  shared  buff/cache
available
Mem:   991M790M 69M 50M131M
48M
Swap:0B  0B  0B

-Original Message-
From: Bernd Waibel [mailto:bwai...@intarsys.de] 
Sent: Friday, September 23, 2016 15:24
To: James Users List 
Subject: AW: james-cli failure [unsigned]

Hi 

no, never had seen this before. 
I could only remember: we had a user who wanted to send a very large video
file via mail. 
The video was too much for any mail server to be handled.
Most mail servers do have a limit of about 20 MB per mail.

Did James try to handle a large mail (89 MB) in this case of situation?
<<< no. we just started James and are doing some experimental by sending
small emails.

I think I could not help, but maybe recommend:
What surprised me is that 89 Megabyte should be committed.
How much memory do you have? (free -mh).
It could just be a memory problem (not having enough OS memory free).

You could read that:
http://stackoverflow.com/questions/27262629/jvm-cant-map-reserved-memory-whe
n-running-in-docker-container

Best regards
Bernd Waibel

-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 05:58
An: 'server-user' 
Betreff: RE: james-cli failure

Does anyone meet the same problem? any clue on the root cause and the
solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below
error when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains OpenJDK 64-Bit Server
VM warning: INFO: os::commit_memory(0xeaaa, 89522176, 0) failed;
error='Cannot allocate memory' (errno=12) # # There is insufficient memory
for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



RE: james-cli failure

2016-09-22 Thread li hai ming
Does anyone meet the same problem? any clue on the root cause and the solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below error 
when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0xeaaa, 
89522176, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for committing 
reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log




james-cli failure

2016-09-21 Thread li hai ming
We have v3-beta4 up and running since yesterday. This morning I got below error 
when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0xeaaa, 
89522176, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for committing 
reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log




strange AUTH LOGIN attempts

2016-09-20 Thread li hai ming
Hi,

We now have v3-beta4 up and running.


However from james-server.log, we found there are a lot of unexpected AUTH 
LOGIN attempts from various strange sources.



Are those the attacks?



suggestion?


##

INFO  00:06:22,975 | james.smtpserver | Id='2098591536' User='' Connection 
established from 187.252.93.3

INFO  00:06:26,133 | james.smtpserver | Id='2098591536' User='' Connection 
closed for 187.252.93.3

INFO  00:15:33,880 | james.smtpserver | Id='509431079' User='' Connection 
established from 61.178.63.245

ERROR 00:15:34,296 | james.smtpserver | Id='509431079' User='' AUTH method 
LOGIN failed from cyrus@61.178.63.245

INFO  00:15:34,386 | james.smtpserver | Id='509431079' User='' Connection 
closed for 61.178.63.245

INFO  00:21:14,836 | james.pop3server | Id='49137796' User='' Connection 
established from 80.82.64.102

INFO  00:21:16,996 | james.pop3server | Id='49137796' 
User='i...@sinceritylife.com' Connection closed for 80.82.64.102

INFO  00:23:54,475 | james.pop3server | Id='918936989' User='' Connection 
established from 103.7.29.243

INFO  00:23:54,484 | james.pop3server | Id='918936989' User='' Connection 
closed for 103.7.29.243

INFO  00:29:19,918 | james.smtpserver | Id='413543743' User='' Connection 
established from 104.46.59.55

ERROR 00:29:21,673 | james.smtpserver | Id='413543743' User='' AUTH method 
LOGIN failed from postmaster@104.46.59.55

INFO  00:29:22,108 | james.smtpserver | Id='413543743' User='' Connection 
closed for 104.46.59.55

INFO  00:30:31,950 | james.smtpserver | Id='716855054' User='' Connection 
established from 189.209.180.242

ERROR 00:30:34,510 | james.smtpserver | Id='716855054' User='' AUTH method 
LOGIN failed from test@189.209.180.242

INFO  00:30:34,902 | james.smtpserver | Id='716855054' User='' Connection 
closed for 189.209.180.242

INFO  00:31:35,160 | james.smtpserver | Id='610922472' User='' Connection 
established from 201.229.95.217

INFO  00:31:40,163 | james.smtpserver | Id='610922472' User='' Connection 
closed for 201.229.95.217

INFO  00:32:41,364 | james.smtpserver | Id='1318912965' User='' Connection 
established from 61.178.63.245

ERROR 00:32:41,763 | james.smtpserver | Id='1318912965' User='' AUTH method 
LOGIN failed from scanner@61.178.63.245

INFO  00:32:41,865 | james.smtpserver | Id='1318912965' User='' Connection 
closed for 61.178.63.245

INFO  00:34:57,947 | james.smtpserver | Id='270448469' User='' Connection 
established from 190.5.243.186

ERROR 00:34:59,908 | james.smtpserver | Id='270448469' User='' AUTH method 
LOGIN failed from aa@190.5.243.186

INFO  00:35:00,429 | james.smtpserver | Id='270448469' User='' Connection 
closed for 190.5.243.186

INFO  00:36:05,353 | james.smtpserver | Id='452588681' User='' Connection 
established from 118.71.251.67

ERROR 00:36:05,792 | james.smtpserver | Id='452588681' User='' AUTH method 
LOGIN failed from test1@118.71.251.67

INFO  00:36:05,899 | james.smtpserver | Id='452588681' User='' Connection 
closed for 118.71.251.67

INFO  00:37:12,101 | james.smtpserver | Id='1188738536' User='' Connection 
established from 146.164.144.232

ERROR 00:37:17,645 | james.smtpserver | Id='1188738536' User='' AUTH method 
LOGIN failed from reception@146.164.144.232

INFO  00:37:18,952 | james.smtpserver | Id='1188738536' User='' Connection 
closed for 146.164.144.232

INFO  00:38:21,867 | james.smtpserver | Id='464398686' User='' Connection 
established from 187.51.48.114

ERROR 00:38:23,612 | james.smtpserver | Id='464398686' User='' AUTH method 
LOGIN failed from backup@187.51.48.114

INFO  00:38:24,046 | james.smtpserver | Id='464398686' User='' Connection 
closed for 187.51.48.114

INFO  00:39:35,275 | james.smtpserver | Id='1748387045' User='' Connection 
established from 187.51.48.114

ERROR 00:39:37,443 | james.smtpserver | Id='1748387045' User='' AUTH method 
LOGIN failed from user@187.51.48.114

##



Re: james v3-beta4 start

2016-09-20 Thread li hai ming
thanks.

does james-dev know the issue and has plan to fix?

as a beta version, such _obvious_ issue is not good.

via Newton 
Mail
On Tue, Sep 20, 2016 at 1:29 PM, Shawn Fu Sheng 
mailto:sh...@victz.com>> wrote:


Hi,

I had same problem with you. I tried JDK 6&7&8,

JDK 6 Started ok. Able to sent out emails, able to receive email from local 
domain. Can't receive from outside domain. Pop working ok, imap can see how 
many new email, but unable download.

JDK7&8 unable start, same issue with yours. even after I copied jaxb-impl.jar

I didn't try run.sh

Hope this is helpful to you.

Thanks and Regards,
Shawn

> On 20 Sep 2016, at 1:06 PM, lihai ming  wrote:
>
> i already copied jaxb-impl.jar under ../conf/lib
> my java is [root@iZ28m97ac83Z lib]# java -versionopenjdk version 
> "1.8.0_101"OpenJDK Runtime Environment (build 1.8.0_101-b13)OpenJDK 64-Bit 
> Server VM (build 25.101-b13, mixed mode)
> i use sudo su to root
> then under .../james/bin/
> using ./run.sh, james starts OK
> using ./james start, no lucky. in wrapper.log it always says
> ##STATUS | wrapper  | 2016/09/20 12:55:30 | --> Wrapper Started as 
> DaemonSTATUS | wrapper  | 2016/09/20 12:55:30 | Launching a JVM...INFO   | 
> jvm 1| 2016/09/20 12:55:32 | Wrapper (Version 3.2.3) 
> http://wrapper.tanukisoftware.orgINFO   | jvm 1| 2016/09/20 12:55:32 |   
> Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.INFO   | jvm 1 
>| 2016/09/20 12:55:32 |INFO   | jvm 1| 2016/09/20 12:55:33 | INFO  
> 12:55:33,101 | 
> org.apache.james.container.spring.context.JamesServerApplicationContext | 
> Refreshing 
> org.apache.james.container.spring.context.JamesServerApplicationContext@32ef1cd4:
>  startup date [Tue Sep 20 12:55:33 CST 2016]; root of context hierarchyINFO   
> | jvm 1| 2016/09/20 12:55:35 |INFO   | jvm 1| 2016/09/20 12:55:35 | 
> WrapperSimpleApp: Encountered an error running main: 
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to 
> create the JAXB binder; nested exception is javax.xml.bind.JAXBException: 
> Provider com.sun.xml.internal.bind.v2.ContextFactory could not be 
> instantiated: 
> com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of 
> IllegalAnnotationExceptionsINFO   | jvm 1| 2016/09/20 12:55:35 | Class 
> has two properties of the same name "outputs"##
> what could be the possible reason?should i have to login as root to run 
> ./james start?
> or i can live with ./run.sh& ?
>