Re: Apache James 3.0.0

2017-07-25 Thread Mahesh Sivarama Pillai
That's a great news. Kudos to the entire team and thanks a lot for your
efforts. I hope this is the stable version. We were planning to upgrade
James 2.3.2 to 3.0 RC1. Now I can go ahead with this release. Thanks again
:)

Thanks
Mahesh

On Tue, Jul 25, 2017 at 6:19 PM, aduprat  wrote:

> The Apache James project is happy to announce the release of version 3.0.0
> of its modular mail server.
>
> After a long work, the team is really proud to announce the new release,
> James 3.0.
> This new version of the Apache James Server introduces many new features,
> like the IMAP protocol, experimental Sieve support, experimental JMAP
> support, and new email storage back-ends.
>
> Feel free to test this release and contact us on the mailing list or on
> gitter (https://gitter.im/apache/james-project)
>
>
> Cheers,
> Antoine
>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Re: Tentative Date for James 3.0 GA

2017-05-24 Thread Mahesh Sivarama Pillai
Thanks Matthieu. I got it..We have started evaluating 3.0 RC1. Will come
back if I have any questions..

Thanks
Mahesh

On 24-May-2017 3:57 PM, "Matthieu EXT_BAECHLER" 
wrote:

Hi Mahesh,

We'll release "when it's ready".

It's a non-answer to your question, I apologize.

ETAs are usually something harmful because people expect Quality, Features
and fixed release date, the truth is you have to pick two.

I started to talk about switching from Quality+Features to Quality+Date aka
time-based release. Not sure the community will agree but I don't want the
next version to wait for 10 years.

About SMTP : we use it on a small scale deployment and we have load-testing
to exercise it, so yes, it's pretty stable I think.

Regards,

-- 

Matthieu Baechler



On 05/22/2017 06:47 AM, Mahesh Sivarama Pillai wrote:

> Hi,
>
>   Can someone please let me know the tentative date for James 3.0 GA ? We
> have to upgrade our current 2.3.2 in production to 3.0 as 2.3.2 doesn't
> support STARTTLS. Team is not recommending to deploy non GA version to
> production.
>
> Btw, is the SMTP component of James 3.0 RC stable ? Because our use cases
> need only SMTP.
>
> Thanks
> Mahesh
>
>

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


Tentative Date for James 3.0 GA

2017-05-21 Thread Mahesh Sivarama Pillai
Hi,

 Can someone please let me know the tentative date for James 3.0 GA ? We
have to upgrade our current 2.3.2 in production to 3.0 as 2.3.2 doesn't
support STARTTLS. Team is not recommending to deploy non GA version to
production.

Btw, is the SMTP component of James 3.0 RC stable ? Because our use cases
need only SMTP.

Thanks
Mahesh


Re: James 3.0 release date

2016-11-21 Thread Mahesh Sivarama Pillai
Hi Matthieu,

 Did you guys get a chance to meet to talk about James 3.0 release date ?
Please share.

Thanks
Mahesh

On Thu, Nov 17, 2016 at 6:05 PM, Mahesh Sivarama Pillai 
wrote:

> Thanks Matthieu. Eagerly waiting for it :)
>
> Thanks
> Mahesh
>
> On 17-Nov-2016 6:02 PM, "Matthieu Baechler" 
> wrote:
>
>> Hi Mahesh,
>>
>> Le 17/11/2016 à 10:27, Mahesh Sivarama Pillai a écrit :
>>
>>> Hi,
>>>
>>>   Is there a tentative release date planned for James 3.0 ?
>>>
>>>
>> We'll have a meeting about that on monday and we'll communicate on the
>> mailling lists.
>>
>> Regards,
>>
>> --
>> Matthieu Baechler
>>
>> -
>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-user-h...@james.apache.org
>>
>>


Re: James 3.0 release date

2016-11-17 Thread Mahesh Sivarama Pillai
Thanks Matthieu. Eagerly waiting for it :)

Thanks
Mahesh

On 17-Nov-2016 6:02 PM, "Matthieu Baechler"  wrote:

> Hi Mahesh,
>
> Le 17/11/2016 à 10:27, Mahesh Sivarama Pillai a écrit :
>
>> Hi,
>>
>>   Is there a tentative release date planned for James 3.0 ?
>>
>>
> We'll have a meeting about that on monday and we'll communicate on the
> mailling lists.
>
> Regards,
>
> --
> Matthieu Baechler
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


James 3.0 release date

2016-11-17 Thread Mahesh Sivarama Pillai
Hi,

 Is there a tentative release date planned for James 3.0 ?

Thanks
Mahesh


Re: AW: AW: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2 [unsigned]

2016-07-04 Thread Mahesh Sivarama Pillai
Thanks for the inputs..I will explore 3.0 beta..

On 04-Jul-2016 12:49 PM, "Bernd Waibel"  wrote:

> Hello Mahesh,
>
> we are using 2.3.2 till now. We are currently switching to 3.0 beta4, but
> I do not have information about STARTTLS stability.
>
> One reason for switching is STARTTLS. We do not want to implement it on
> our own.
> The other reason is: 2.3.2 is very old. There are some other problems,
> which are more crititcal to us.
> For example, handling of attachment parameters is done by java mail, the
> mail.jar is very old, and does have problems.
> We replaced mail.jar with a newer version for that. The JDK is very old
> (Java6), we need newer versions.
> We have also implemented some extension (allowing 8bit-MIME, logging AUTH
> IP Address, some EHLO, HELO, RCPT and VRFY Extensions). But 2.3.2 has
> stopped, so no future bug fixing will follow.
>
> Independend of this:
> There will be a point in future, when you have to switch to 3.0.
> The architecure and the configuration has changed a lot, so if you start
> now with 2.3.2, it may be easier to start with 3.0, instead doing the
> migration later on.
>
> I would recommend to switch to 3.0beta4, instead coding it your own.
> But that are just my thoughts.
>
>
> Best regards
> Bernd Waibel
>
> -Ursprüngliche Nachricht-
> Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> Gesendet: Montag, 4. Juli 2016 08:59
> An: James Users List 
> Betreff: Re: AW: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2
>
> Thank a lot Bernd...I will look at the handlers. The current requirement is
> to act as a receiver.. One more question. I see James 3 SMTP implementation
> is mentioned as stable. Is this true for STARTTLS as well ?
>
> On 04-Jul-2016 12:20 PM, "Bernd Waibel"  wrote:
>
> > Hello Mahesh,
> >
> > i think there is no backport.
> >
> > For STARTTLS there should be two sides:
> > - James acting as receiver
> > - James acting as sender
> >
> > You have the option to use TLS in James, by configuring a
> > "org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory".
> > But this is for strict TLS binding, not a STARTTLS. But it may be worth
> to
> > look at.
> >
> > For the receiving side:
> > If you want to implement it in james, you need a handler for that.
> > Have a look at org.apache.james.smtpserver package.
> > There are the handlers for the low-level protocols.
> >
> > I think you need to extend or change one of the handler classes.
> > Then you need to register your own handler class, by
> > - including the "james-smtphandlerchain.xml" into your config.xml
> > - change the class name inside the james-smtphandlerchain.xml.
> > - change the EhloCmdHandler.java, to announce the STARTTLS option
> > (esmtpextensions.add("STARTTLS");)
> >
> > The StartTLS is implemented in James3, have a look at:
> > org.apache.james.protocols.smtp.core.esmtp. StartTlsCmdHandler;
> >
> > For the sending side:
> > You need to change or expand the RemoteDelivery Mailet.
> > In James3 this is done, have a look at.
> >
> > Just theory.
> > I am not sure, if I would recommend to implement it. You need to test it,
> > too.
> > Maybe you could use James 3 beta4, which is long released version, and is
> > used by some servers.
> >
> >
> > Greetings
> > Bernd
> >
> > -Ursprüngliche Nachricht-
> > Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> > Gesendet: Montag, 4. Juli 2016 04:31
> > An: James Users List 
> > Betreff: Re: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2
> >
> > Hi,
> >
> >  Can someone suggest how to go about this please ?
> >
> > Thanks
> > Mahesh
> >
> > On Thu, Jun 30, 2016 at 11:26 AM, Mahesh Sivarama Pillai <
> srm...@gmail.com
> > >
> > wrote:
> >
> > > Hi All,
> > >
> > > Did someone backport *STARTTLS* feature from 3.0 beta to 2.3.2 ? We
> have
> > > 2.3.2 running in production and there is a requirement to support
> > STARTTLS.
> > > Since 3.0 is in beta, the team is not comfortable in putting into
> > > production.
> > >
> > > If the porting is not done, can someone please guide on how to
> implement
> > > this in 2.3.2 ? I can give it a try.
> > >
> > > Thanks
> > > Mahesh
> > >
> >
>


Re: AW: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2

2016-07-03 Thread Mahesh Sivarama Pillai
Thank a lot Bernd...I will look at the handlers. The current requirement is
to act as a receiver.. One more question. I see James 3 SMTP implementation
is mentioned as stable. Is this true for STARTTLS as well ?

On 04-Jul-2016 12:20 PM, "Bernd Waibel"  wrote:

> Hello Mahesh,
>
> i think there is no backport.
>
> For STARTTLS there should be two sides:
> - James acting as receiver
> - James acting as sender
>
> You have the option to use TLS in James, by configuring a
> "org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory".
> But this is for strict TLS binding, not a STARTTLS. But it may be worth to
> look at.
>
> For the receiving side:
> If you want to implement it in james, you need a handler for that.
> Have a look at org.apache.james.smtpserver package.
> There are the handlers for the low-level protocols.
>
> I think you need to extend or change one of the handler classes.
> Then you need to register your own handler class, by
> - including the "james-smtphandlerchain.xml" into your config.xml
> - change the class name inside the james-smtphandlerchain.xml.
> - change the EhloCmdHandler.java, to announce the STARTTLS option
> (esmtpextensions.add("STARTTLS");)
>
> The StartTLS is implemented in James3, have a look at:
> org.apache.james.protocols.smtp.core.esmtp. StartTlsCmdHandler;
>
> For the sending side:
> You need to change or expand the RemoteDelivery Mailet.
> In James3 this is done, have a look at.
>
> Just theory.
> I am not sure, if I would recommend to implement it. You need to test it,
> too.
> Maybe you could use James 3 beta4, which is long released version, and is
> used by some servers.
>
>
> Greetings
> Bernd
>
> -Ursprüngliche Nachricht-
> Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> Gesendet: Montag, 4. Juli 2016 04:31
> An: James Users List 
> Betreff: Re: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2
>
> Hi,
>
>  Can someone suggest how to go about this please ?
>
> Thanks
> Mahesh
>
> On Thu, Jun 30, 2016 at 11:26 AM, Mahesh Sivarama Pillai  >
> wrote:
>
> > Hi All,
> >
> > Did someone backport *STARTTLS* feature from 3.0 beta to 2.3.2 ? We have
> > 2.3.2 running in production and there is a requirement to support
> STARTTLS.
> > Since 3.0 is in beta, the team is not comfortable in putting into
> > production.
> >
> > If the porting is not done, can someone please guide on how to implement
> > this in 2.3.2 ? I can give it a try.
> >
> > Thanks
> > Mahesh
> >
>


Re: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2

2016-07-03 Thread Mahesh Sivarama Pillai
Hi,

 Can someone suggest how to go about this please ?

Thanks
Mahesh

On Thu, Jun 30, 2016 at 11:26 AM, Mahesh Sivarama Pillai 
wrote:

> Hi All,
>
> Did someone backport *STARTTLS* feature from 3.0 beta to 2.3.2 ? We have
> 2.3.2 running in production and there is a requirement to support STARTTLS.
> Since 3.0 is in beta, the team is not comfortable in putting into
> production.
>
> If the porting is not done, can someone please guide on how to implement
> this in 2.3.2 ? I can give it a try.
>
> Thanks
> Mahesh
>


URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2

2016-06-29 Thread Mahesh Sivarama Pillai
Hi All,

Did someone backport *STARTTLS* feature from 3.0 beta to 2.3.2 ? We have
2.3.2 running in production and there is a requirement to support STARTTLS.
Since 3.0 is in beta, the team is not comfortable in putting into
production.

If the porting is not done, can someone please guide on how to implement
this in 2.3.2 ? I can give it a try.

Thanks
Mahesh


Re: Using James on an Android Phone

2015-07-29 Thread Mahesh Sivarama Pillai
Thanks Klaus... So you are planning to intercept the email before it leaves
the mobile phone and may be manipulate the content of the email ? I still
didi't get the specific use case/problem that you are trying to solve. Can
you please elaborate. I know this is not a forum to discuss the use cases..
But still bit curious.. Hope you don't mind.. :)

Thanks
Mahesh

On Wed, Jul 29, 2015 at 5:13 PM, Klaus  wrote:

> Hi Mahesh,
> Oh there are all kinds of Use Cases.
> There are so many different Mail Clients out there that people use and
> if you want to add features to Mail Processing you have to write it for
> a specific Client. You could use that mobile Email Server as a Proxy
> Application. People would enter their auth information into that "MES"
> and into their preferred Client just the localhost information.
> Now you are free to add all kinds of features to Email Processing.
>
> Klaus
>
> Am 29.07.2015 um 04:59 schrieb Mahesh Sivarama Pillai:
> > Hi Klaus,
> >
> >  Sound interesting...Just curious... What is the use case of having an
> > Email Server on a phone ?
> >
> > Thanks
> > Mahesh
> >
> > On Tue, Jul 28, 2015 at 8:48 PM, Klaus Enzensperger <
> seklenzekl...@gmail.com
> >> wrote:
> >> Hello,
> >> My name is Klaus and i am a Software Developer.
> >> I am just finishing my Masters Degree and one part of my Project will
> be a
> >> a mobile Email Server on an Android Phone.
> >> Ive looked at the Apache James Project and thought i could maybe use a
> few
> >> things
> >> from there. I would love to stay in contact with someone of the Team so
> i
> >> am writing to you.
> >> I hope to hear from you.
> >>
> >> Yours sincerly,
> >> Klaus
> >>
>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Re: Using James on an Android Phone

2015-07-28 Thread Mahesh Sivarama Pillai
Hi Klaus,

 Sound interesting...Just curious... What is the use case of having an
Email Server on a phone ?

Thanks
Mahesh

On Tue, Jul 28, 2015 at 8:48 PM, Klaus Enzensperger  wrote:

> Hello,
> My name is Klaus and i am a Software Developer.
> I am just finishing my Masters Degree and one part of my Project will be a
> a mobile Email Server on an Android Phone.
> Ive looked at the Apache James Project and thought i could maybe use a few
> things
> from there. I would love to stay in contact with someone of the Team so i
> am writing to you.
> I hope to hear from you.
>
> Yours sincerly,
> Klaus
>


Re: PRODUCTION ISSUE: James 2.3.2 Refusing connections..Need URGENT HELP !!!!!

2015-04-01 Thread Mahesh Sivarama Pillai
Ours is a virtual machine (VMWare).. Max heap is set to 4GB.. I will do a
stress test. Infact we did it during our LT (Load testing)... I will post
the details here once I have enough data.. What I was trying to understand
is "is there any possibility of the 30 max connections to go stale and not
sent back to the pool".. If its an issue with the high timeout value, we
should see the emails getting processed after 5 minutes... What is the
ideal value for SMTP idle nowadays... I followed the default value in the
config.xml

Thanks for the help and pointers so far..

Thanks
Mahesh

On Wed, Apr 1, 2015 at 4:15 PM, Özgür EROĞLU  wrote:

> Hi Mahesh,
>
> I can not suggest specific values to you. I think you should write a
> stress tester and tune parameters to get the best fit. BTW, although a
> 4CPU( xeon?) machine should perform very well in most of the usage
> scenarios, Memory is another parameter which can become a bottleneck. So,
> as your server is a production server you should allocate as much memory as
> possible to get better performance.
>
> Özgür Eroğlu
>
>
>
> On 04/01/2015 12:31 PM, Mahesh Sivarama Pillai wrote:
>
>> Thanks Özgür...
>>
>> This email application is not exposed to any real users with Inbox. Its an
>> internal email processing application which will recieve emails routed
>> from
>> our Enterprise Email server. So each of our James nodes will receive an
>> email and process it (extract some info from subject and body and call
>> couple of web services)..Let me try to adjust the parameters as you
>> specified. Just a clarification.. In a 4 CPU machine, how far we can go
>> ahead with those parameters ? Can you suggest some figures based on your
>> experience ? The reason is I can't do a trial and error thing in
>> production..
>>
>> Thanks
>> Mahesh
>>
>> On Wed, Apr 1, 2015 at 2:36 PM, Özgür EROĞLU 
>> wrote:
>>
>>  Sorry, I could not get your point in using two servers which are getting
>>> mail for the same domain, without having a common db  for them.  Of
>>> course
>>> as I do not know you project details, it might have special use case
>>> here.
>>> I just wondered.
>>>
>>>
>>> And I meant;
>>>
>>> increase Spool Manager threads
>>> decrease smtp connectiontimeout
>>> decrease connection manager idle timeout
>>> and increase  connection manager max-connections.
>>>
>>>
>>> Özgür Eroğlu
>>>
>>>
>>> On 04/01/2015 11:43 AM, Mahesh Sivarama Pillai wrote:
>>>
>>>  Hi,
>>>>
>>>>Thanks for the inputs. We don't have any DB configurations. Its all
>>>> file
>>>> based. There are two servers which are already behind the load balancer.
>>>> We
>>>> were getting Too Many Open files issues.. We have increased the ulimit
>>>> to
>>>> the maximum two days back. Did you mean "decrease the timeout and
>>>> increase
>>>> the max-connections ?" In a 4CPU machine, can I increase the
>>>> max-connections to say 100 if we came to know that its about load ?
>>>>
>>>> Thanks
>>>> Mahesh
>>>>
>>>> On Wed, Apr 1, 2015 at 1:16 PM, Özgür EROĞLU 
>>>> wrote:
>>>>
>>>>   Hi Mahesh,
>>>>
>>>>> All you have asked may be the cause, I can not give clear answer right
>>>>> now. But if your system have sufficient resources try to increase
>>>>> max-connections and timeout parameters. And observe whether any
>>>>> differences
>>>>> occur or not.
>>>>>
>>>>> But I recommend you to use more than one James instances which are
>>>>> connected to the same and replicated database server( howto do it
>>>>> depends
>>>>> on your DB choice) and put them all behind a load balancer, so that you
>>>>> can
>>>>> reduce the load on one server (of course this will be solution only if
>>>>> the
>>>>> problem is the actual load).
>>>>>
>>>>> Özgür Eroğlu
>>>>>
>>>>>
>>>>> On 04/01/2015 10:22 AM, Mahesh Sivarama Pillai wrote:
>>>>>
>>>>>   Hi All,
>>>>>
>>>>>> We have rolled out James 2.3.2 to production for our email processing
>>>>>> application. I see that James is no longed accepting connetions after
>>>>>> few
>

Re: PRODUCTION ISSUE: James 2.3.2 Refusing connections..Need URGENT HELP !!!!!

2015-04-01 Thread Mahesh Sivarama Pillai
Thanks Özgür...

This email application is not exposed to any real users with Inbox. Its an
internal email processing application which will recieve emails routed from
our Enterprise Email server. So each of our James nodes will receive an
email and process it (extract some info from subject and body and call
couple of web services)..Let me try to adjust the parameters as you
specified. Just a clarification.. In a 4 CPU machine, how far we can go
ahead with those parameters ? Can you suggest some figures based on your
experience ? The reason is I can't do a trial and error thing in
production..

Thanks
Mahesh

On Wed, Apr 1, 2015 at 2:36 PM, Özgür EROĞLU  wrote:

> Sorry, I could not get your point in using two servers which are getting
> mail for the same domain, without having a common db  for them.  Of course
> as I do not know you project details, it might have special use case here.
> I just wondered.
>
>
> And I meant;
>
> increase Spool Manager threads
> decrease smtp connectiontimeout
> decrease connection manager idle timeout
> and increase  connection manager max-connections.
>
>
> Özgür Eroğlu
>
>
> On 04/01/2015 11:43 AM, Mahesh Sivarama Pillai wrote:
>
>> Hi,
>>
>>   Thanks for the inputs. We don't have any DB configurations. Its all file
>> based. There are two servers which are already behind the load balancer.
>> We
>> were getting Too Many Open files issues.. We have increased the ulimit to
>> the maximum two days back. Did you mean "decrease the timeout and increase
>> the max-connections ?" In a 4CPU machine, can I increase the
>> max-connections to say 100 if we came to know that its about load ?
>>
>> Thanks
>> Mahesh
>>
>> On Wed, Apr 1, 2015 at 1:16 PM, Özgür EROĞLU 
>> wrote:
>>
>>  Hi Mahesh,
>>>
>>> All you have asked may be the cause, I can not give clear answer right
>>> now. But if your system have sufficient resources try to increase
>>> max-connections and timeout parameters. And observe whether any
>>> differences
>>> occur or not.
>>>
>>> But I recommend you to use more than one James instances which are
>>> connected to the same and replicated database server( howto do it depends
>>> on your DB choice) and put them all behind a load balancer, so that you
>>> can
>>> reduce the load on one server (of course this will be solution only if
>>> the
>>> problem is the actual load).
>>>
>>> Özgür Eroğlu
>>>
>>>
>>> On 04/01/2015 10:22 AM, Mahesh Sivarama Pillai wrote:
>>>
>>>  Hi All,
>>>>
>>>> We have rolled out James 2.3.2 to production for our email processing
>>>> application. I see that James is no longed accepting connetions after
>>>> few
>>>> days of run. It processes around 100K email a day and sends a good
>>>> amount
>>>> of Notification emails through RemoveDelivery.  James is running on a 4
>>>> CPU
>>>> machine with 8GB RAM. Heapsize of James is set to 4GB with Openjdk 1.7.
>>>>
>>>> INITIALLY WE THOUGHT  the server was getting killed/terminated. As per
>>>> the
>>>> latest information, server is not killed.. Our support team used to
>>>> restart
>>>> the server when we get "Connection Refused" error from port 25..We have
>>>> a
>>>> monitoring tool which Connects to James server every few seconds, and
>>>> issue
>>>> a QUIT command... This monitoring tool is getting Connection Refused
>>>> error.
>>>> Hence the team thought the server is down and followed the routine Stop,
>>>> Start commands...
>>>>
>>>> I have the following configurations in various places in the
>>>> config.xml. I
>>>> have INFO logging enabled. I couldnt find any WARN messages about
>>>> connections.
>>>>
>>>> SMTP Server (the only process enabled):
>>>> 36
>>>>
>>>> Spool Manager:  10 
>>>>
>>>> Connections Manager
>>>>
>>>>   
>>>> 30
>>>> 30
>>>>  
>>>>
>>>> Thread Manager
>>>>
>>>>  
>>>> 
>>>>default
>>>>5
>>>>false
>>>>100
>>>>20
>>>>

Re: PRODUCTION ISSUE: James 2.3.2 Refusing connections..Need URGENT HELP !!!!!

2015-04-01 Thread Mahesh Sivarama Pillai
Hi,

 Thanks for the inputs. We don't have any DB configurations. Its all file
based. There are two servers which are already behind the load balancer. We
were getting Too Many Open files issues.. We have increased the ulimit to
the maximum two days back. Did you mean "decrease the timeout and increase
the max-connections ?" In a 4CPU machine, can I increase the
max-connections to say 100 if we came to know that its about load ?

Thanks
Mahesh

On Wed, Apr 1, 2015 at 1:16 PM, Özgür EROĞLU  wrote:

> Hi Mahesh,
>
> All you have asked may be the cause, I can not give clear answer right
> now. But if your system have sufficient resources try to increase
> max-connections and timeout parameters. And observe whether any differences
> occur or not.
>
> But I recommend you to use more than one James instances which are
> connected to the same and replicated database server( howto do it depends
> on your DB choice) and put them all behind a load balancer, so that you can
> reduce the load on one server (of course this will be solution only if the
> problem is the actual load).
>
> Özgür Eroğlu
>
>
> On 04/01/2015 10:22 AM, Mahesh Sivarama Pillai wrote:
>
>> Hi All,
>>
>> We have rolled out James 2.3.2 to production for our email processing
>> application. I see that James is no longed accepting connetions after few
>> days of run. It processes around 100K email a day and sends a good amount
>> of Notification emails through RemoveDelivery.  James is running on a 4
>> CPU
>> machine with 8GB RAM. Heapsize of James is set to 4GB with Openjdk 1.7.
>>
>> INITIALLY WE THOUGHT  the server was getting killed/terminated. As per the
>> latest information, server is not killed.. Our support team used to
>> restart
>> the server when we get "Connection Refused" error from port 25..We have a
>> monitoring tool which Connects to James server every few seconds, and
>> issue
>> a QUIT command... This monitoring tool is getting Connection Refused
>> error.
>> Hence the team thought the server is down and followed the routine Stop,
>> Start commands...
>>
>> I have the following configurations in various places in the config.xml. I
>> have INFO logging enabled. I couldnt find any WARN messages about
>> connections.
>>
>> SMTP Server (the only process enabled):
>> 36
>>
>> Spool Manager:  10 
>>
>> Connections Manager
>>
>>  
>>30
>>30
>> 
>>
>> Thread Manager
>>
>> 
>>
>>   default
>>   5
>>   false
>>   100
>>   20
>>   20
>>
>> 
>>
>> The total number of threads (spool+remotedelivery etc ) are under very
>> much
>> under 100. We don't have any DB configuration in config.xml as well. Do
>> you
>> think the timeout values might cause the connection refused errors ?.
>> Especially the idle-timeout ? Isn't 5 minutes too high ? If say 30 clients
>> are taking few minutes, this will be more than enough to raise an alert
>> from the monitoring tool...even if all the connections are being used, it
>> should be release after the processing done right ? Is there any chance of
>> the connections not being released and going back to the pool ? Please
>> provide your comments..
>>
>> Thanks
>> Mahesh
>>
>>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


PRODUCTION ISSUE: James 2.3.2 Refusing connections..Need URGENT HELP !!!!!

2015-04-01 Thread Mahesh Sivarama Pillai
Hi All,

We have rolled out James 2.3.2 to production for our email processing
application. I see that James is no longed accepting connetions after few
days of run. It processes around 100K email a day and sends a good amount
of Notification emails through RemoveDelivery.  James is running on a 4 CPU
machine with 8GB RAM. Heapsize of James is set to 4GB with Openjdk 1.7.

INITIALLY WE THOUGHT  the server was getting killed/terminated. As per the
latest information, server is not killed.. Our support team used to restart
the server when we get "Connection Refused" error from port 25..We have a
monitoring tool which Connects to James server every few seconds, and issue
a QUIT command... This monitoring tool is getting Connection Refused error.
Hence the team thought the server is down and followed the routine Stop,
Start commands...

I have the following configurations in various places in the config.xml. I
have INFO logging enabled. I couldnt find any WARN messages about
connections.

SMTP Server (the only process enabled):
36

Spool Manager:  10 

Connections Manager


  30
  30
   

Thread Manager

   
  
 default
 5
 false
 100
 20
 20
  
   

The total number of threads (spool+remotedelivery etc ) are under very much
under 100. We don't have any DB configuration in config.xml as well. Do you
think the timeout values might cause the connection refused errors ?.
Especially the idle-timeout ? Isn't 5 minutes too high ? If say 30 clients
are taking few minutes, this will be more than enough to raise an alert
from the monitoring tool...even if all the connections are being used, it
should be release after the processing done right ? Is there any chance of
the connections not being released and going back to the pool ? Please
provide your comments..

Thanks
Mahesh


Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-04-01 Thread Mahesh Sivarama Pillai
I will start another thread with a relevant subject..

Thanks
Mahesh

On Wed, Apr 1, 2015 at 12:29 PM, Mahesh Sivarama Pillai 
wrote:

> Thanks Bernd. Enjoy your holidays and please help whenever you get time...
> :)
>
> Did you get a chance to take a look at my latest email ? Actually the
> server is not dead. Its refusing connections.. I have put the relevent
> details in the email Please take a look.
>
> Tanks
> Mahesh
>
> On Wed, Apr 1, 2015 at 12:48 AM, Bernd Waibel  wrote:
>
>> Hi Mahesh
>>
>> I am currently on holidays. So I could not check on a linux.
>>
>> The "chkconfig add" will add scripts for startup AND shutdown, with a
>> defined order and in the defined runlevel.
>> Not having this means: you have the service to be started and stopped by
>> hand.
>>
>> And the process may just be killed when rebooting. This MAY result in
>> nothing to be logged on shutdown.
>> If you reboot the Server the log may just end and the process will die.
>> It will not been started again.
>>
>> Just sounds like your description. Does it?
>>
>> Greetings
>> Bernd
>>
>>
>>  Ursprüngliche Nachricht 
>> Von: Mahesh Sivarama Pillai 
>> Datum: 31.03.2015 07:48 (GMT+01:00)
>> An: James Users List 
>> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of run
>>
>> Hi Bernd,
>>
>>  Our Sys Admin has NOT performed the following things while configuring
>> james as a service.
>>
>> 1. Adding the below lines in phoenix.sh
>>
>> #chkconfig: 2345 80 05#description: James Mail Server
>>
>> 2. Chkconfig command
>>
>> chkconfig --add james
>>
>>
>> They created only the link in /etc/init.d pointing to phoenix.sh. We can
>> start and stop the service using the service command. Do you think not
>> doing the above two steps will impact a running James in any manner ? I am
>> trying to understand he run levels as well.
>>
>> Thanks
>> Mahesh
>>
>>
>>
>> On Mon, Mar 30, 2015 at 5:28 PM, Mahesh Sivarama Pillai > >
>> wrote:
>>
>> > If there is a clean shutdown through RemoteManager, it should be shown
>> in
>> > the log rite ? The thing is, I don't see any entry in the console log
>> which
>> > says STOPPED..I am investigating and will keep you posted. Thanks for
>> the
>> > help so far.
>> >
>> > Thanks
>> > Mahesh
>> >
>> > On Mon, Mar 30, 2015 at 2:48 AM, Bernd Waibel 
>> wrote:
>> >
>> >> Hi Mahesh
>> >>
>> >> finding a hserr would be a clear sign that something happened outside
>> the
>> >> VM.
>> >> E.g. if you load a dll or lib inside your Java code and the dll
>> produces
>> >> a memory fault than the vm may crash.
>> >> If a hserr is produced the vm have crashed, without writing a log or
>> >> something else. The log just ends.
>> >> Not finding a hserr means you need to look for something else.
>> >> So I think it is not a crash.
>> >>
>> >> Another Idea:
>> >> In the config.xml you could configure a RemoteManager Port and user.
>> >> I am currently on holidays so I could not look up the syntax.
>> >> You could telnet to that port and send a shutdown command.
>> >> Could something simple like that happen?
>> >>
>> >> And about chkconfig:
>> >> We had a system with james configured to run only in runlevel "with
>> gui"
>> >> (i think it was 5 or 6).
>> >> And than a sysadmin switched the system to run "without gui".
>> >> So the switch to another runlevel just stopped james, with a clean
>> >> shutdown.
>> >> After that we just carefully looked for the runlevels.
>> >> James needs to start after network, and after database if used.
>> >> And also it should stop this way.
>> >>
>> >> Greetings Bernd
>> >>
>> >>
>> >>  Ursprüngliche Nachricht 
>> >> Von: Mahesh Sivarama Pillai 
>> >> Datum: 29.03.2015 07:58 (GMT+01:00)
>> >> An: James Users List 
>> >> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of
>> run
>> >>
>> >> Thanks again Bernd... I couldn't find the hserr files under the temp or
>> >> james directories. Considering we faced Too Many open files issue,
>>

Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-04-01 Thread Mahesh Sivarama Pillai
Thanks Bernd. Enjoy your holidays and please help whenever you get time...
:)

Did you get a chance to take a look at my latest email ? Actually the
server is not dead. Its refusing connections.. I have put the relevent
details in the email Please take a look.

Tanks
Mahesh

On Wed, Apr 1, 2015 at 12:48 AM, Bernd Waibel  wrote:

> Hi Mahesh
>
> I am currently on holidays. So I could not check on a linux.
>
> The "chkconfig add" will add scripts for startup AND shutdown, with a
> defined order and in the defined runlevel.
> Not having this means: you have the service to be started and stopped by
> hand.
>
> And the process may just be killed when rebooting. This MAY result in
> nothing to be logged on shutdown.
> If you reboot the Server the log may just end and the process will die. It
> will not been started again.
>
> Just sounds like your description. Does it?
>
> Greetings
> Bernd
>
>
>  Ursprüngliche Nachricht 
> Von: Mahesh Sivarama Pillai 
> Datum: 31.03.2015 07:48 (GMT+01:00)
> An: James Users List 
> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of run
>
> Hi Bernd,
>
>  Our Sys Admin has NOT performed the following things while configuring
> james as a service.
>
> 1. Adding the below lines in phoenix.sh
>
> #chkconfig: 2345 80 05#description: James Mail Server
>
> 2. Chkconfig command
>
> chkconfig --add james
>
>
> They created only the link in /etc/init.d pointing to phoenix.sh. We can
> start and stop the service using the service command. Do you think not
> doing the above two steps will impact a running James in any manner ? I am
> trying to understand he run levels as well.
>
> Thanks
> Mahesh
>
>
>
> On Mon, Mar 30, 2015 at 5:28 PM, Mahesh Sivarama Pillai 
> wrote:
>
> > If there is a clean shutdown through RemoteManager, it should be shown in
> > the log rite ? The thing is, I don't see any entry in the console log
> which
> > says STOPPED..I am investigating and will keep you posted. Thanks for the
> > help so far.
> >
> > Thanks
> > Mahesh
> >
> > On Mon, Mar 30, 2015 at 2:48 AM, Bernd Waibel 
> wrote:
> >
> >> Hi Mahesh
> >>
> >> finding a hserr would be a clear sign that something happened outside
> the
> >> VM.
> >> E.g. if you load a dll or lib inside your Java code and the dll produces
> >> a memory fault than the vm may crash.
> >> If a hserr is produced the vm have crashed, without writing a log or
> >> something else. The log just ends.
> >> Not finding a hserr means you need to look for something else.
> >> So I think it is not a crash.
> >>
> >> Another Idea:
> >> In the config.xml you could configure a RemoteManager Port and user.
> >> I am currently on holidays so I could not look up the syntax.
> >> You could telnet to that port and send a shutdown command.
> >> Could something simple like that happen?
> >>
> >> And about chkconfig:
> >> We had a system with james configured to run only in runlevel "with gui"
> >> (i think it was 5 or 6).
> >> And than a sysadmin switched the system to run "without gui".
> >> So the switch to another runlevel just stopped james, with a clean
> >> shutdown.
> >> After that we just carefully looked for the runlevels.
> >> James needs to start after network, and after database if used.
> >> And also it should stop this way.
> >>
> >> Greetings Bernd
> >>
> >>
> >>  Ursprüngliche Nachricht 
> >> Von: Mahesh Sivarama Pillai 
> >> Datum: 29.03.2015 07:58 (GMT+01:00)
> >> An: James Users List 
> >> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of
> run
> >>
> >> Thanks again Bernd... I couldn't find the hserr files under the temp or
> >> james directories. Considering we faced Too Many open files issue, will
> it
> >> prevent the JVM from not creating this file ? I am clueless on this
> issue.
> >> No process Killed James, Noone stopped James.. No OOM in logs.. No core
> >> dump :) :(
> >>
> >> Regarding the file system I will verify. As far as I know we have a
> NAS...
> >>
> >> On Sat, Mar 28, 2015 at 3:50 AM, Bernd Waibel 
> >> wrote:
> >>
> >> > Hi Mahesh,
> >> >
> >> > Don't missunderstand: Out-of-file-handle COULD lead to a memory leak,
> >> > consuming memory time by time. But not NEED to.
> >> >
> >

Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-03-31 Thread Mahesh Sivarama Pillai
Hi Bernd,

Here is some more information. As per the latest information, server is not
killed.. Our support team used to restart the server when we get
"Connection Refused" error from port 25..We have a monitoring tool which
Connects to James erver every minute, and issue a QUIT command... This
monitoring tool is getting Connection Refused error. Hence the team thought
the server is down and followed the routine Stop, Start commands...

I have the following configurations in various places in the config.xml.

SMTP Server (the only process enabled):
36

Spool Manager:  10 

Connections Manager


  30
  30
   

Thread Manager

   
  
 default
 5
 false
 100
 20
 20
  
   

The total number of threads (spool+remotedelivery etc ) are under very much
under 100. We don't have any DB configuration in config.xml as well. Do you
think the timeout values might cause the connection refused errors ?.
Especially the idle-timeout ? Isn't 5 minutes too high ? If say 30 clients
are taking few minutes, this will be more than enough to raise an alert
from the monitoring tool...

Thanks
Mahesh

On Tue, Mar 31, 2015 at 11:16 AM, Mahesh Sivarama Pillai 
wrote:

> Hi Bernd,
>
>  Our Sys Admin has NOT performed the following things while configuring
> james as a service.
>
> 1. Adding the below lines in phoenix.sh
>
> #chkconfig: 2345 80 05#description: James Mail Server
>
> 2. Chkconfig command
>
> chkconfig --add james
>
>
> They created only the link in /etc/init.d pointing to phoenix.sh. We can
> start and stop the service using the service command. Do you think not
> doing the above two steps will impact a running James in any manner ? I am
> trying to understand he run levels as well.
>
> Thanks
> Mahesh
>
>
>
> On Mon, Mar 30, 2015 at 5:28 PM, Mahesh Sivarama Pillai 
> wrote:
>
>> If there is a clean shutdown through RemoteManager, it should be shown in
>> the log rite ? The thing is, I don't see any entry in the console log which
>> says STOPPED..I am investigating and will keep you posted. Thanks for the
>> help so far.
>>
>> Thanks
>> Mahesh
>>
>> On Mon, Mar 30, 2015 at 2:48 AM, Bernd Waibel 
>> wrote:
>>
>>> Hi Mahesh
>>>
>>> finding a hserr would be a clear sign that something happened outside
>>> the VM.
>>> E.g. if you load a dll or lib inside your Java code and the dll produces
>>> a memory fault than the vm may crash.
>>> If a hserr is produced the vm have crashed, without writing a log or
>>> something else. The log just ends.
>>> Not finding a hserr means you need to look for something else.
>>> So I think it is not a crash.
>>>
>>> Another Idea:
>>> In the config.xml you could configure a RemoteManager Port and user.
>>> I am currently on holidays so I could not look up the syntax.
>>> You could telnet to that port and send a shutdown command.
>>> Could something simple like that happen?
>>>
>>> And about chkconfig:
>>> We had a system with james configured to run only in runlevel "with gui"
>>> (i think it was 5 or 6).
>>> And than a sysadmin switched the system to run "without gui".
>>> So the switch to another runlevel just stopped james, with a clean
>>> shutdown.
>>> After that we just carefully looked for the runlevels.
>>> James needs to start after network, and after database if used.
>>> And also it should stop this way.
>>>
>>> Greetings Bernd
>>>
>>>
>>>  Ursprüngliche Nachricht 
>>> Von: Mahesh Sivarama Pillai 
>>> Datum: 29.03.2015 07:58 (GMT+01:00)
>>> An: James Users List 
>>> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of
>>> run
>>>
>>> Thanks again Bernd... I couldn't find the hserr files under the temp or
>>> james directories. Considering we faced Too Many open files issue, will
>>> it
>>> prevent the JVM from not creating this file ? I am clueless on this
>>> issue.
>>> No process Killed James, Noone stopped James.. No OOM in logs.. No core
>>> dump :) :(
>>>
>>> Regarding the file system I will verify. As far as I know we have a
>>> NAS...
>>>
>>> On Sat, Mar 28, 2015 at 3:50 AM, Bernd Waibel 
>>> wrote:
>>>
>>> > Hi Mahesh,
>>> >
>>> > Don't missunderstand: Out-of-file-handle COULD lead to a memory leak,
>>> > consuming memory time by time. But not NEED to.
>>> &

Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-03-30 Thread Mahesh Sivarama Pillai
Hi Bernd,

 Our Sys Admin has NOT performed the following things while configuring
james as a service.

1. Adding the below lines in phoenix.sh

#chkconfig: 2345 80 05#description: James Mail Server

2. Chkconfig command

chkconfig --add james


They created only the link in /etc/init.d pointing to phoenix.sh. We can
start and stop the service using the service command. Do you think not
doing the above two steps will impact a running James in any manner ? I am
trying to understand he run levels as well.

Thanks
Mahesh



On Mon, Mar 30, 2015 at 5:28 PM, Mahesh Sivarama Pillai 
wrote:

> If there is a clean shutdown through RemoteManager, it should be shown in
> the log rite ? The thing is, I don't see any entry in the console log which
> says STOPPED..I am investigating and will keep you posted. Thanks for the
> help so far.
>
> Thanks
> Mahesh
>
> On Mon, Mar 30, 2015 at 2:48 AM, Bernd Waibel  wrote:
>
>> Hi Mahesh
>>
>> finding a hserr would be a clear sign that something happened outside the
>> VM.
>> E.g. if you load a dll or lib inside your Java code and the dll produces
>> a memory fault than the vm may crash.
>> If a hserr is produced the vm have crashed, without writing a log or
>> something else. The log just ends.
>> Not finding a hserr means you need to look for something else.
>> So I think it is not a crash.
>>
>> Another Idea:
>> In the config.xml you could configure a RemoteManager Port and user.
>> I am currently on holidays so I could not look up the syntax.
>> You could telnet to that port and send a shutdown command.
>> Could something simple like that happen?
>>
>> And about chkconfig:
>> We had a system with james configured to run only in runlevel "with gui"
>> (i think it was 5 or 6).
>> And than a sysadmin switched the system to run "without gui".
>> So the switch to another runlevel just stopped james, with a clean
>> shutdown.
>> After that we just carefully looked for the runlevels.
>> James needs to start after network, and after database if used.
>> And also it should stop this way.
>>
>> Greetings Bernd
>>
>>
>>  Ursprüngliche Nachricht 
>> Von: Mahesh Sivarama Pillai 
>> Datum: 29.03.2015 07:58 (GMT+01:00)
>> An: James Users List 
>> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of run
>>
>> Thanks again Bernd... I couldn't find the hserr files under the temp or
>> james directories. Considering we faced Too Many open files issue, will it
>> prevent the JVM from not creating this file ? I am clueless on this issue.
>> No process Killed James, Noone stopped James.. No OOM in logs.. No core
>> dump :) :(
>>
>> Regarding the file system I will verify. As far as I know we have a NAS...
>>
>> On Sat, Mar 28, 2015 at 3:50 AM, Bernd Waibel 
>> wrote:
>>
>> > Hi Mahesh,
>> >
>> > Don't missunderstand: Out-of-file-handle COULD lead to a memory leak,
>> > consuming memory time by time. But not NEED to.
>> >
>> > OOMs will normally been shown in the log, as I know, but we got this
>> only
>> > for the heap memory.
>> > OOMs normally happen if the heap memory will reach the limit, and yes,
>> we
>> > got this in the logs, sometimes.
>> > Every time I got an OOM in log, I restarted the server. Just to be sure
>> it
>> > keeps running.
>> > So I do not have long running servers with a lot of OOM errors. So: no
>> > experience with that.
>> >
>> > But you could also get short on memory for the java classes (Native
>> area,
>> > Method area), and I am not sure if this will show up in the log. Never
>> had
>> > this with james. I got his when running JIRA long ago, but could not
>> > remember the log.
>> >
>> > The PID (process ID) is something handled by the linux system, it is
>> > outside James, and I think you won't find it in log.
>> > But the PID is created on startup (phonix.sh), and may be logged in the
>> > shell script to somewhere, together with a time stamp.
>> > But not in the james logs.
>> >
>> > If your sysadmins do use a monitoring tool (like nagios or icinga) the
>> may
>> > monitor the memory.
>> > You could also monitor the memory inside the VM using JMX, but this is a
>> > little bit hard to set up.
>> >
>> > But anyway: the memory may NOT be the problem. So do not spend to much
>> > time on that.
>> >
>> > If you could find a hserr*.pid file, the f

Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-03-30 Thread Mahesh Sivarama Pillai
If there is a clean shutdown through RemoteManager, it should be shown in
the log rite ? The thing is, I don't see any entry in the console log which
says STOPPED..I am investigating and will keep you posted. Thanks for the
help so far.

Thanks
Mahesh

On Mon, Mar 30, 2015 at 2:48 AM, Bernd Waibel  wrote:

> Hi Mahesh
>
> finding a hserr would be a clear sign that something happened outside the
> VM.
> E.g. if you load a dll or lib inside your Java code and the dll produces a
> memory fault than the vm may crash.
> If a hserr is produced the vm have crashed, without writing a log or
> something else. The log just ends.
> Not finding a hserr means you need to look for something else.
> So I think it is not a crash.
>
> Another Idea:
> In the config.xml you could configure a RemoteManager Port and user.
> I am currently on holidays so I could not look up the syntax.
> You could telnet to that port and send a shutdown command.
> Could something simple like that happen?
>
> And about chkconfig:
> We had a system with james configured to run only in runlevel "with gui"
> (i think it was 5 or 6).
> And than a sysadmin switched the system to run "without gui".
> So the switch to another runlevel just stopped james, with a clean
> shutdown.
> After that we just carefully looked for the runlevels.
> James needs to start after network, and after database if used.
> And also it should stop this way.
>
> Greetings Bernd
>
>
>  Ursprüngliche Nachricht 
> Von: Mahesh Sivarama Pillai 
> Datum: 29.03.2015 07:58 (GMT+01:00)
> An: James Users List 
> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of run
>
> Thanks again Bernd... I couldn't find the hserr files under the temp or
> james directories. Considering we faced Too Many open files issue, will it
> prevent the JVM from not creating this file ? I am clueless on this issue.
> No process Killed James, Noone stopped James.. No OOM in logs.. No core
> dump :) :(
>
> Regarding the file system I will verify. As far as I know we have a NAS...
>
> On Sat, Mar 28, 2015 at 3:50 AM, Bernd Waibel  wrote:
>
> > Hi Mahesh,
> >
> > Don't missunderstand: Out-of-file-handle COULD lead to a memory leak,
> > consuming memory time by time. But not NEED to.
> >
> > OOMs will normally been shown in the log, as I know, but we got this only
> > for the heap memory.
> > OOMs normally happen if the heap memory will reach the limit, and yes, we
> > got this in the logs, sometimes.
> > Every time I got an OOM in log, I restarted the server. Just to be sure
> it
> > keeps running.
> > So I do not have long running servers with a lot of OOM errors. So: no
> > experience with that.
> >
> > But you could also get short on memory for the java classes (Native area,
> > Method area), and I am not sure if this will show up in the log. Never
> had
> > this with james. I got his when running JIRA long ago, but could not
> > remember the log.
> >
> > The PID (process ID) is something handled by the linux system, it is
> > outside James, and I think you won't find it in log.
> > But the PID is created on startup (phonix.sh), and may be logged in the
> > shell script to somewhere, together with a time stamp.
> > But not in the james logs.
> >
> > If your sysadmins do use a monitoring tool (like nagios or icinga) the
> may
> > monitor the memory.
> > You could also monitor the memory inside the VM using JMX, but this is a
> > little bit hard to set up.
> >
> > But anyway: the memory may NOT be the problem. So do not spend to much
> > time on that.
> >
> > If you could find a hserr*.pid file, the file will tell the reason for
> > "crashing".
> >
> >
> > There is something else I could remember. But with another software.
> > If the log file is stored on a file server (not a local directory), and
> > the file server will reboot, you will loose the log.
> > We got a java process which "died", cause the file server has been
> > rebooted at midnight, and the java process lost all mounted directories.
> > After that we made sure that the log directory is always local. And the
> > programm directory too.
> > You may check if your server uses mounted file systems.
> >
> >
> > Greetings
> > Bernd
> >
> > -Ursprüngliche Nachricht-
> > Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> > Gesendet: Freitag, 27. März 2015 15:17
> > An: James Users List
> > Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of
> run
> &g

Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-03-28 Thread Mahesh Sivarama Pillai
Thanks again Bernd... I couldn't find the hserr files under the temp or
james directories. Considering we faced Too Many open files issue, will it
prevent the JVM from not creating this file ? I am clueless on this issue.
No process Killed James, Noone stopped James.. No OOM in logs.. No core
dump :) :(

Regarding the file system I will verify. As far as I know we have a NAS...

On Sat, Mar 28, 2015 at 3:50 AM, Bernd Waibel  wrote:

> Hi Mahesh,
>
> Don't missunderstand: Out-of-file-handle COULD lead to a memory leak,
> consuming memory time by time. But not NEED to.
>
> OOMs will normally been shown in the log, as I know, but we got this only
> for the heap memory.
> OOMs normally happen if the heap memory will reach the limit, and yes, we
> got this in the logs, sometimes.
> Every time I got an OOM in log, I restarted the server. Just to be sure it
> keeps running.
> So I do not have long running servers with a lot of OOM errors. So: no
> experience with that.
>
> But you could also get short on memory for the java classes (Native area,
> Method area), and I am not sure if this will show up in the log. Never had
> this with james. I got his when running JIRA long ago, but could not
> remember the log.
>
> The PID (process ID) is something handled by the linux system, it is
> outside James, and I think you won't find it in log.
> But the PID is created on startup (phonix.sh), and may be logged in the
> shell script to somewhere, together with a time stamp.
> But not in the james logs.
>
> If your sysadmins do use a monitoring tool (like nagios or icinga) the may
> monitor the memory.
> You could also monitor the memory inside the VM using JMX, but this is a
> little bit hard to set up.
>
> But anyway: the memory may NOT be the problem. So do not spend to much
> time on that.
>
> If you could find a hserr*.pid file, the file will tell the reason for
> "crashing".
>
>
> There is something else I could remember. But with another software.
> If the log file is stored on a file server (not a local directory), and
> the file server will reboot, you will loose the log.
> We got a java process which "died", cause the file server has been
> rebooted at midnight, and the java process lost all mounted directories.
> After that we made sure that the log directory is always local. And the
> programm directory too.
> You may check if your server uses mounted file systems.
>
>
> Greetings
> Bernd
>
> -Ursprüngliche Nachricht-
> Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> Gesendet: Freitag, 27. März 2015 15:17
> An: James Users List
> Betreff: Re: URGENT HELP: James 2.3.2 not responding after few days of run
>
> Hi Bernd,
>
>  Thanks for the pointers. Let me ask the Sys admin on these details. Btw,
> will this memory leak be shown in the logs? I couldn't find any OOM errors
> in any of the logs. When the issue, happened, our team restarted the
> server. It will create a new PID rite ? Is there a way we can see the old
> pids from the james logs ?
>
> Thanks
> Mahesh
>
> On Fri, Mar 27, 2015 at 7:33 PM, Bernd Waibel  wrote:
>
> > Hi Mahesh
> >
> > to man open files may result in a memory leak.
> > Could the sysadmin monitor the memory?
> >
> > It is a java prozess. Is there a file called hserr*.pid? That is
> > produced if the vm crashes.
> >
> > Ciao
> > Bernd
> >
> >
> >  Ursprüngliche Nachricht 
> > Von: Mahesh Sivarama Pillai 
> > Datum: 27.03.2015 14:18 (GMT+01:00)
> > An: James Users List 
> > Betreff: URGENT HELP: James 2.3.2 not responding after few days of run
> >
> > Hi,
> >
> >  I need an urgent help. We have rolled out James 2.3.2 to production
> > for our email processing application. I see that James getting
> > shutdown (no trace in the phoenix.console) after few days of run. It
> > processes around 100K email a day and sends a good amount of
> > Notification through RemoveDelivery.
> >
> > I have verified the logs but I couldn't find any reason for this
> > abnormal shutdown. I have seen couple of "Too Many Open Files" errors
> > in smtpserver log and spoolmanager log. But I think those will not bring
> down the server.
> > Will they ? I am not sure if James is killed by some other Linux process.
> > James is running under a user (eg: james) account with sudo access to
> > run on port 25. Since I don't have root access, what all areas that I
> > look to figure out what the problem is ? If I want to talk to Sys
> > Admin, what all information that I should ask him/her to gather ?
> >
> > J

Re: URGENT HELP: James 2.3.2 not responding after few days of run

2015-03-27 Thread Mahesh Sivarama Pillai
Hi Bernd,

 Thanks for the pointers. Let me ask the Sys admin on these details. Btw,
will this memory leak be shown in the logs? I couldn't find any OOM errors
in any of the logs. When the issue, happened, our team restarted the
server. It will create a new PID rite ? Is there a way we can see the old
pids from the james logs ?

Thanks
Mahesh

On Fri, Mar 27, 2015 at 7:33 PM, Bernd Waibel  wrote:

> Hi Mahesh
>
> to man open files may result in a memory leak.
> Could the sysadmin monitor the memory?
>
> It is a java prozess. Is there a file called hserr*.pid? That is produced
> if the vm crashes.
>
> Ciao
> Bernd
>
>
> ---- Ursprüngliche Nachricht 
> Von: Mahesh Sivarama Pillai 
> Datum: 27.03.2015 14:18 (GMT+01:00)
> An: James Users List 
> Betreff: URGENT HELP: James 2.3.2 not responding after few days of run
>
> Hi,
>
>  I need an urgent help. We have rolled out James 2.3.2 to production for
> our email processing application. I see that James getting shutdown (no
> trace in the phoenix.console) after few days of run. It processes around
> 100K email a day and sends a good amount of Notification through
> RemoveDelivery.
>
> I have verified the logs but I couldn't find any reason for this abnormal
> shutdown. I have seen couple of "Too Many Open Files" errors in smtpserver
> log and spoolmanager log. But I think those will not bring down the server.
> Will they ? I am not sure if James is killed by some other Linux process.
> James is running under a user (eg: james) account with sudo access to run
> on port 25. Since I don't have root access, what all areas that I look to
> figure out what the problem is ? If I want to talk to Sys Admin, what all
> information that I should ask him/her to gather ?
>
> James is running on a 4 CPU machine with 8GB RAM. Heapsize of James is set
> to 4GB.
>
> I have configured to run James as service in Linux. I am not sure if our
> Sys Admin run the chkconfig command. Is there any impact of not running
> this command ? Please provide your inputs as early as possible..
>
>
> Thanks
> Mahesh
>


URGENT HELP: James 2.3.2 not responding after few days of run

2015-03-27 Thread Mahesh Sivarama Pillai
Hi,

 I need an urgent help. We have rolled out James 2.3.2 to production for
our email processing application. I see that James getting shutdown (no
trace in the phoenix.console) after few days of run. It processes around
100K email a day and sends a good amount of Notification through
RemoveDelivery.

I have verified the logs but I couldn't find any reason for this abnormal
shutdown. I have seen couple of "Too Many Open Files" errors in smtpserver
log and spoolmanager log. But I think those will not bring down the server.
Will they ? I am not sure if James is killed by some other Linux process.
James is running under a user (eg: james) account with sudo access to run
on port 25. Since I don't have root access, what all areas that I look to
figure out what the problem is ? If I want to talk to Sys Admin, what all
information that I should ask him/her to gather ?

James is running on a 4 CPU machine with 8GB RAM. Heapsize of James is set
to 4GB.

I have configured to run James as service in Linux. I am not sure if our
Sys Admin run the chkconfig command. Is there any impact of not running
this command ? Please provide your inputs as early as possible..


Thanks
Mahesh


Re: Need Help: Too many open files - 2.3.2

2015-03-19 Thread Mahesh Sivarama Pillai
Hi Michael,

 I saw lot of errors like the one given below in the logs. Could this cause
any file descriptor leak ?

19/03/15 20:13:56 ERROR smtpserver: Socket to -xxx--xxx-xx.com
() closed remotely.
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at
org.apache.james.util.CRLFTerminatedReader.read(CRLFTerminatedReader.java:153)
at
org.apache.james.util.CRLFTerminatedReader.readLine(CRLFTerminatedReader.java:113)
at
org.apache.james.smtpserver.SMTPHandler.readCommandLine(SMTPHandler.java:751)
at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:372)
at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)
at
org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
at
org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)

Thanks
Mahesh

On Sun, Mar 15, 2015 at 8:33 PM, Mahesh Sivarama Pillai 
wrote:

> Thanks Michael.. I will try it and and post the outcome here...
>
> Thanks
> Mahesh
>
> On Sun, Mar 15, 2015 at 7:44 PM, Michael Bailly 
> wrote:
>
>> Hello Mahesh,
>>
>> you're right, increasing ulimit will solve your issue. However if the
>> issue comes back with a high ulimit, it may show a file descriptor leak. So
>> I suggest you increase ulimit to a big number, and tell this list if the
>> problem is coming back.
>>
>> Regards
>>
>> Le 15/03/2015 03:21, Mahesh Sivarama Pillai a écrit :
>>
>>  Hi,
>>>
>>> Can someone provide some inputs please ?
>>>
>>> Thanks
>>> Mahesh
>>>
>>> On Sat, Mar 14, 2015 at 6:59 AM, Mahesh Sivarama Pillai <
>>> srm...@gmail.com>
>>> wrote:
>>>
>>>  Hi All,
>>>>
>>>>   I am getting the following error in one of our James installations.
>>>> This
>>>> is not related to File repository. I checked the source. This is being
>>>> thrown from MimeMessageInputStreamSource where it tries to create a temp
>>>> file. Increasing the ulimit will solve the problem ? Please provide your
>>>> comments and appreciate your help on this.
>>>>
>>>>
>>>> javax.mail.MessagingException: Unable to retrieve the data: Too many
>>>> open
>>>> files;
>>>>nested exception is:
>>>>  java.io.IOException: Too many open files
>>>>  at
>>>> org.apache.james.core.MimeMessageInputStreamSource.(
>>>> MimeMessageInputStreamSource.java:101)
>>>>  at org.apache.james.core.MailImpl.(MailImpl.java:181)
>>>>  at
>>>> org.apache.james.smtpserver.DataCmdHandler.processMail(
>>>> DataCmdHandler.java:266)
>>>>  at
>>>> org.apache.james.smtpserver.DataCmdHandler.doDATA(
>>>> DataCmdHandler.java:133)
>>>>  at
>>>> org.apache.james.smtpserver.DataCmdHandler.onCommand(
>>>> DataCmdHandler.java:81)
>>>>  at
>>>> org.apache.james.smtpserver.SMTPHandler.handleConnection(
>>>> SMTPHandler.java:393)
>>>>  at
>>>> org.apache.james.util.connection.ServerConnection$
>>>> ClientConnectionRunner.run(ServerConnection.java:432)
>>>>  at
>>>> org.apache.excalibur.thread.impl.ExecutableRunnable.
>>>> execute(ExecutableRunnable.java:55)
>>>>  at
>>>> org.apache.excalibur.thread.impl.WorkerThread.run(
>>>> WorkerThread.java:116)
>>>>
>>>> Thanks
>>>> Mahesh
>>>>
>>>>
>>
>> --
>> Michael BAILLY
>> Manager Equipe OpenPaaS
>>
>> Tel: 06 60 30 21 16
>> LINAGORA, 80 rue Roque de Fillol - 92800 PUTEAUX
>>
>> #
>>
>> Open PaaS: XXI century collaboration
>> https://www.youtube.com/channel/UCgCZPNq1-g49VfOaxjbExlg
>> @AwesomePaaS
>>
>>
>> -
>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-user-h...@james.apache.org
>>
>>
>


Re: Need Help: Too many open files - 2.3.2

2015-03-15 Thread Mahesh Sivarama Pillai
Thanks Michael.. I will try it and and post the outcome here...

Thanks
Mahesh

On Sun, Mar 15, 2015 at 7:44 PM, Michael Bailly 
wrote:

> Hello Mahesh,
>
> you're right, increasing ulimit will solve your issue. However if the
> issue comes back with a high ulimit, it may show a file descriptor leak. So
> I suggest you increase ulimit to a big number, and tell this list if the
> problem is coming back.
>
> Regards
>
> Le 15/03/2015 03:21, Mahesh Sivarama Pillai a écrit :
>
>  Hi,
>>
>> Can someone provide some inputs please ?
>>
>> Thanks
>> Mahesh
>>
>> On Sat, Mar 14, 2015 at 6:59 AM, Mahesh Sivarama Pillai > >
>> wrote:
>>
>>  Hi All,
>>>
>>>   I am getting the following error in one of our James installations.
>>> This
>>> is not related to File repository. I checked the source. This is being
>>> thrown from MimeMessageInputStreamSource where it tries to create a temp
>>> file. Increasing the ulimit will solve the problem ? Please provide your
>>> comments and appreciate your help on this.
>>>
>>>
>>> javax.mail.MessagingException: Unable to retrieve the data: Too many open
>>> files;
>>>nested exception is:
>>>  java.io.IOException: Too many open files
>>>  at
>>> org.apache.james.core.MimeMessageInputStreamSource.(
>>> MimeMessageInputStreamSource.java:101)
>>>  at org.apache.james.core.MailImpl.(MailImpl.java:181)
>>>  at
>>> org.apache.james.smtpserver.DataCmdHandler.processMail(
>>> DataCmdHandler.java:266)
>>>  at
>>> org.apache.james.smtpserver.DataCmdHandler.doDATA(
>>> DataCmdHandler.java:133)
>>>  at
>>> org.apache.james.smtpserver.DataCmdHandler.onCommand(
>>> DataCmdHandler.java:81)
>>>  at
>>> org.apache.james.smtpserver.SMTPHandler.handleConnection(
>>> SMTPHandler.java:393)
>>>  at
>>> org.apache.james.util.connection.ServerConnection$
>>> ClientConnectionRunner.run(ServerConnection.java:432)
>>>  at
>>> org.apache.excalibur.thread.impl.ExecutableRunnable.
>>> execute(ExecutableRunnable.java:55)
>>>  at
>>> org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
>>>
>>> Thanks
>>> Mahesh
>>>
>>>
>
> --
> Michael BAILLY
> Manager Equipe OpenPaaS
>
> Tel: 06 60 30 21 16
> LINAGORA, 80 rue Roque de Fillol - 92800 PUTEAUX
>
> #
>
> Open PaaS: XXI century collaboration
> https://www.youtube.com/channel/UCgCZPNq1-g49VfOaxjbExlg
> @AwesomePaaS
>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Need Help: Too many open files - 2.3.2

2015-03-14 Thread Mahesh Sivarama Pillai
Hi,

Can someone provide some inputs please ?

Thanks
Mahesh

On Sat, Mar 14, 2015 at 6:59 AM, Mahesh Sivarama Pillai 
wrote:

> Hi All,
>
>  I am getting the following error in one of our James installations. This
> is not related to File repository. I checked the source. This is being
> thrown from MimeMessageInputStreamSource where it tries to create a temp
> file. Increasing the ulimit will solve the problem ? Please provide your
> comments and appreciate your help on this.
>
>
> javax.mail.MessagingException: Unable to retrieve the data: Too many open
> files;
>   nested exception is:
> java.io.IOException: Too many open files
> at
> org.apache.james.core.MimeMessageInputStreamSource.(MimeMessageInputStreamSource.java:101)
> at org.apache.james.core.MailImpl.(MailImpl.java:181)
> at
> org.apache.james.smtpserver.DataCmdHandler.processMail(DataCmdHandler.java:266)
> at
> org.apache.james.smtpserver.DataCmdHandler.doDATA(DataCmdHandler.java:133)
> at
> org.apache.james.smtpserver.DataCmdHandler.onCommand(DataCmdHandler.java:81)
> at
> org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:393)
> at
> org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)
> at
> org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at
> org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
>
> Thanks
> Mahesh
>


Too many open files - 2.3.2

2015-03-13 Thread Mahesh Sivarama Pillai
Hi All,

 I am getting the following error in one of our James installations. This
is not related to File repository. I checked the source. This is being
thrown from MimeMessageInputStreamSource where it tries to create a temp
file. Increasing the ulimit will solve the problem ? Please provide your
comments and appreciate your help on this.


javax.mail.MessagingException: Unable to retrieve the data: Too many open
files;
  nested exception is:
java.io.IOException: Too many open files
at
org.apache.james.core.MimeMessageInputStreamSource.(MimeMessageInputStreamSource.java:101)
at org.apache.james.core.MailImpl.(MailImpl.java:181)
at
org.apache.james.smtpserver.DataCmdHandler.processMail(DataCmdHandler.java:266)
at
org.apache.james.smtpserver.DataCmdHandler.doDATA(DataCmdHandler.java:133)
at
org.apache.james.smtpserver.DataCmdHandler.onCommand(DataCmdHandler.java:81)
at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:393)
at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)
at
org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
at
org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)

Thanks
Mahesh


Re: Need Help: LoadRunner with James 2.3.2 [unsigned]

2015-01-28 Thread Mahesh Sivarama Pillai
Thank you Bernd, Let me try these options. I will get back to you.

Thanks
Mahesh

On Wed, Jan 28, 2015 at 6:39 PM, Bernd Waibel  wrote:

> Hello Mahesh,
>
> I don't know "Load Runner". But I do know something about "mail errors".
> So here is my opinion.
>
> There are some common mail errors, like the ones you mentioned:
> - mail address without <>
> - boundary errors (missing boundry, etc)
> - filename errors (like missing "" around filenames)
>
> Most of the time we get this errors in spam mails or in virus mails.
> So if you have got a spam and virus blocking firewall before James, the
> wrong formatted mails may just get deleted.
> And may be the "Load Runner" mails get lost to, if your firewall thinks it
> is a spam mail.
> We normally do not have "real mails" with this errors, only spam and virus.
>
> These common mail errors may lead to an error in james, but strictliy
> speaking it is an error in the "SUN Java Mail API" Implementation
> (mail.jar). There are a few "options" you could set when you start james.
> If you set this options, this wrong formatted mail may be handled not "so
> strict" as defined by the mail standard.
>
>
> E.g. you could set the options in the /etc/init.d/phonix.sh startup-script
> on linux, like (in one line):
> export PHOENIX_JVM_OPTS="-Dmail.mime.applefilenames=true
> -Dmail.mime.parameters.strict=false
> -Dmail.mime.ignoreunknownencoding=true
> -Dmail.mime.encodeeol.strict=true
> -Dmail.mime.multipart.ignoremissingendboundary=true
> -Dmail.mime.multipart.ignoremissingboundaryparameter=true"
>
>
> This may help in handling the mails.
>
> And yes, firewalls may correct the syntax.
>
> And I think your are right with:
>“the email sent from the Load
>Runner may not be conforming to the SMTP standards. Our gateway is
> tolerant
>to these non-standard clients and might be formatting the SMTP message
> as
>per the standard”
>
>
>
> Regards,
>
> Bernd Waibel
>
> -Ursprüngliche Nachricht-
> Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> Gesendet: Mittwoch, 28. Januar 2015 13:16
> An: James Users List
> Betreff: Need Help: LoadRunner with James 2.3.2
>
> Hi,
>
> I have encountered an issue during our Load Testing with James 2.3.2. The
> load test tool being used is Load Runner. We have a corporate mail gateway
> to relay messages to internal mail servers. But we are not supposed to use
> it for Load Testing. So we have to send the email directly to the James
> server from Load Runner.
>
>
> Our Observation
>
>
>- When we send email through gateway from Load Runner, the email is
>received at our Internal Email server (James 2.3.2) without any issues
>- When we send the email directly to our internal James server, there
>are SMTP errors thrown like Syntax Error in MAIL command etc.
>   - When I put the from address between "<" and ">" in LoadRunner
>   script, "Syntax Error in MAIL command" got resolved.
>   - Then I started getting some Message boundary exceptions.
>- When I use a Java Mail client and directly send the email to our
>internal server, there are no issues.
>- What I am thinking is (I may be wrong) “the email sent from the Load
>Runner may not be conforming to the SMTP standards. Our gateway is
> tolerant
>to these non-standard clients and might be formatting the SMTP message
> as
>per the standard”
>
>
> Is this understanding correct ? Please provide your inputs on this
> behavior. Have you ever come across this kind of scenarios and how it was
> resolved ? Any input would be highly appreciated.
>
> Thanks
> Mahesh
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>


Need Help: LoadRunner with James 2.3.2

2015-01-28 Thread Mahesh Sivarama Pillai
Hi,

I have encountered an issue during our Load Testing with James 2.3.2. The
load test tool being used is Load Runner. We have a corporate mail gateway
to relay messages to internal mail servers. But we are not supposed to use
it for Load Testing. So we have to send the email directly to the James
server from Load Runner.


Our Observation


   - When we send email through gateway from Load Runner, the email is
   received at our Internal Email server (James 2.3.2) without any issues
   - When we send the email directly to our internal James server, there
   are SMTP errors thrown like Syntax Error in MAIL command etc.
  - When I put the from address between "<" and ">" in LoadRunner
  script, "Syntax Error in MAIL command" got resolved.
  - Then I started getting some Message boundary exceptions.
   - When I use a Java Mail client and directly send the email to our
   internal server, there are no issues.
   - What I am thinking is (I may be wrong) “the email sent from the Load
   Runner may not be conforming to the SMTP standards. Our gateway is tolerant
   to these non-standard clients and might be formatting the SMTP message as
   per the standard”


Is this understanding correct ? Please provide your inputs on this
behavior. Have you ever come across this kind of scenarios and how it was
resolved ? Any input would be highly appreciated.

Thanks
Mahesh


Retry Mailet for 2.3.2

2014-10-14 Thread Mahesh Sivarama Pillai
Hi All,

Does someone have ported the Retry mailet to 2.3.2 ? Can you share the code
if its available ? I can write one based on the RemoteDelivery, but wanted
to first check if someone has an already developed mailet available ?

Thanks
Mahesh


Re: Mail Archive is down ?

2014-10-08 Thread Mahesh Sivarama Pillai
Thanks.. I can access it now. I was not aware of the alternate URL.

Thanks
Mahesh

On Wed, Oct 8, 2014 at 1:21 PM, Pierre Smits  wrote:

> Hi,
>
> My apologies for posting the wrong link.
>
> The correct link is: http://james.markmail.org/
>
> Best regards,
>
> Pierre Smits
>
> *ORRTIZ.COM <http://www.orrtiz.com>*
> Services & Solutions for Cloud-
> Based Manufacturing, Professional
> Services and Retail & Trade
> http://www.orrtiz.com
>
> On Tue, Oct 7, 2014 at 3:25 PM, Mahesh Sivarama Pillai 
> wrote:
>
> > Hi,
> >
> >  Is the Mail archive site is down ? I am getting the error "The system
> > cannot communicate with the external server ( www.mail-archive.com )."
> Any
> > idea ?
> >
> > Thanks
> > Mahesh
> >
>


Mail Archive is down ?

2014-10-07 Thread Mahesh Sivarama Pillai
Hi,

 Is the Mail archive site is down ? I am getting the error "The system
cannot communicate with the external server ( www.mail-archive.com )." Any
idea ?

Thanks
Mahesh


Re: 2.3.2 LocalDelivery in Windows

2014-10-06 Thread Mahesh Sivarama Pillai
SMTP log shows

06/10/14 14:29:40 INFO  smtpserver: Connection from localhost
(0:0:0:0:0:0:0:1%0) in Mac

while the Windows log shows

06/10/14 16:30:39 INFO  smtpserver: Connection from 0:0:0:0:0:0:0:1
(0:0:0:0:0:0:0:1)

Any clue ?


On Mon, Oct 6, 2014 at 4:27 PM, Mahesh Sivarama Pillai 
wrote:

> Hi,
>
>  I am facing an issue with James 2.3.2 localdelivery in Windows 7. I have
> localhost mentioned in the servernames element. I have a user created in
> James. I am trying to send a mail to this user through the Telnet smtp.
> Please note that the from and to addresses of the mail are same (which is
> the user I created)..
>
> Given below is the spoolmanager log. Though the mail is being sent and
> received in the localhost (client and server run in the same machine), its
> going to local-address-error. Can someone help me find the cause of this
> issue ? Authorized address element also seems to be rite.
>
> 127.0.0.0/8
>
> I have the same config file working in Mac. I can send and receive email
> in localhost.
>
> Thanks
> Mahesh
> --
>
> 06/10/14 16:03:13 DEBUG spoolmanager: Processed Mail1412591593734-1
> through root
> 06/10/14 16:03:13 DEBUG spoolmanager: Result was transport
> 06/10/14 16:03:13 DEBUG spoolmanager:  Begin processing mail
> Mail1412591593734-1
> 06/10/14 16:03:13 DEBUG spoolmanager: Processing Mail1412591593734-1
> through transport
> 06/10/14 16:03:13 DEBUG spoolmanager.transport: Servicing mail:
> Mail1412591593734-1
> 06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
> Mail1412591593734-1 with
> org.apache.james.transport.matchers.SMTPAuthSuccessful@5a925c95
> 06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
> Mail1412591593734-1 with
> org.apache.james.transport.matchers.HasMailAttribute@3efc68a7
> 06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
> Mail1412591593734-1 with
> org.apache.james.transport.matchers.RecipientIsLocal@2d3acc3f
> 06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
> Mail1412591593734-1 with
> org.apache.james.transport.matchers.HostIsLocal@6f37534b
> 06/10/14 16:03:13 DEBUG spoolmanager.transport: Servicing
> Mail1412591593734-1 by ToProcessor Mailet
> 06/10/14 16:03:13 DEBUG spoolmanager: Processed Mail1412591593734-1
> through transport
> 06/10/14 16:03:13 DEBUG spoolmanager: Result was local-address-error
> 06/10/14 16:03:13 DEBUG spoolmanager:  Begin processing mail
> Mail1412591593734-1
> 06/10/14 16:03:13 DEBUG spoolmanager: Processing Mail1412591593734-1
> through local-address-error
> 06/10/14 16:03:13 DEBUG spoolmanager.local-address-error: Servicing mail:
> Mail1412591593734-1
> 06/10/14 16:03:13 DEBUG spoolmanager.local-address-error: Checking
> Mail1412591593734-1 with org.apache.james.transport.matchers.All@6d81c06f
> 06/10/14 16:03:13 DEBUG spoolmanager.local-address-error: Servicing
> Mail1412591593734-1 by ToRepository Mailet
> 06/10/14 16:03:13 DEBUG spoolmanager: Processed Mail1412591593734-1
> through local-address-error
> 06/10/14 16:03:13 DEBUG spoolmanager: Result was ghost
>


2.3.2 LocalDelivery in Windows

2014-10-06 Thread Mahesh Sivarama Pillai
Hi,

 I am facing an issue with James 2.3.2 localdelivery in Windows 7. I have
localhost mentioned in the servernames element. I have a user created in
James. I am trying to send a mail to this user through the Telnet smtp.
Please note that the from and to addresses of the mail are same (which is
the user I created)..

Given below is the spoolmanager log. Though the mail is being sent and
received in the localhost (client and server run in the same machine), its
going to local-address-error. Can someone help me find the cause of this
issue ? Authorized address element also seems to be rite.

127.0.0.0/8

I have the same config file working in Mac. I can send and receive email in
localhost.

Thanks
Mahesh
--

06/10/14 16:03:13 DEBUG spoolmanager: Processed Mail1412591593734-1 through
root
06/10/14 16:03:13 DEBUG spoolmanager: Result was transport
06/10/14 16:03:13 DEBUG spoolmanager:  Begin processing mail
Mail1412591593734-1
06/10/14 16:03:13 DEBUG spoolmanager: Processing Mail1412591593734-1
through transport
06/10/14 16:03:13 DEBUG spoolmanager.transport: Servicing mail:
Mail1412591593734-1
06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
Mail1412591593734-1 with
org.apache.james.transport.matchers.SMTPAuthSuccessful@5a925c95
06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
Mail1412591593734-1 with
org.apache.james.transport.matchers.HasMailAttribute@3efc68a7
06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
Mail1412591593734-1 with
org.apache.james.transport.matchers.RecipientIsLocal@2d3acc3f
06/10/14 16:03:13 DEBUG spoolmanager.transport: Checking
Mail1412591593734-1 with
org.apache.james.transport.matchers.HostIsLocal@6f37534b
06/10/14 16:03:13 DEBUG spoolmanager.transport: Servicing
Mail1412591593734-1 by ToProcessor Mailet
06/10/14 16:03:13 DEBUG spoolmanager: Processed Mail1412591593734-1 through
transport
06/10/14 16:03:13 DEBUG spoolmanager: Result was local-address-error
06/10/14 16:03:13 DEBUG spoolmanager:  Begin processing mail
Mail1412591593734-1
06/10/14 16:03:13 DEBUG spoolmanager: Processing Mail1412591593734-1
through local-address-error
06/10/14 16:03:13 DEBUG spoolmanager.local-address-error: Servicing mail:
Mail1412591593734-1
06/10/14 16:03:13 DEBUG spoolmanager.local-address-error: Checking
Mail1412591593734-1 with org.apache.james.transport.matchers.All@6d81c06f
06/10/14 16:03:13 DEBUG spoolmanager.local-address-error: Servicing
Mail1412591593734-1 by ToRepository Mailet
06/10/14 16:03:13 DEBUG spoolmanager: Processed Mail1412591593734-1 through
local-address-error
06/10/14 16:03:13 DEBUG spoolmanager: Result was ghost


Notification on email processing

2014-09-14 Thread Mahesh Sivarama Pillai
Hi,

 In my email application, I have a requirement to send out the notification
to the sender or a pre-defined email ids about the outcome
(success/failure) of the email processing.

If I use mailetContext.sendMail, the mails will go to the spool and will
take the standard processor flow and get into remotedelivery to send out
the communications. The delay caused in this approach will depend on the
number of emails in the spool for regular processing...When I say "regular
processing", I meant the business logic of my email application built in
the form of mailets.

My questions is, Is this the right approach ? How about I use JavaMail api
to send out this communications without bombarding the RemoteDelivery with
the notification emails ? Please note that I don't have any requirement for
relaying emails.. All emails sent to my JAMES installation will end after
performing some business logic(including calling some web service rest/soap
apis). The only outgoing emails will be the notification of the outcome...

Any suggestions ? What is the best practice followed by the community in a
similar scenario ?

I have more questions. But I will start with this one..

Thanks
Mahesh


Re: JAMES based Applications/Products

2014-08-26 Thread Mahesh Sivarama Pillai
I don't think I have permission to update the wiki page. And I believe, the
companies/people who built products based on JAMES give the credit to JAMES
in James homepage/wiki. But my post was to get a list of such products
known to the community.

Thanks
Mahesh


On Wed, Aug 27, 2014 at 9:10 AM, Fernando Cassia  wrote:

> On Tue, Aug 26, 2014 at 11:34 PM, Mahesh Sivarama Pillai  >
> wrote:
>
> > Ideally these should've been part of
> > http://wiki.apache.org/james/JamesUsers.
> > Any plan for updating this list ?
> >
> > Thanks
> >
>
> Any update is welcome. As an onlooker (I´m not actually involved in the
> project but I plan to use James server when 3.0 comes out of beta, or at
> least RC), I think the biggest hurdle right now is the James web page
> showing a last update date of 2012. That makes the project look stale, if
> not dead altogether.
>
> FC
> --
> During times of Universal Deceit, telling the truth becomes a revolutionary
> act
> Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto
> Revolucionario
> - George Orwell
>


JAMES based Applications/Products

2014-08-26 Thread Mahesh Sivarama Pillai
Hi Guys,

 I have been searching in the internet as well as the James pages to make a
list of products that are based on Apache James. Here is what I have got so
far other than what is listed in the Wiki. Can you please add more to the
list ?

1. Oracle Health Sciences Information Gateway (OHIG)  Secure Health Email
based on JAMES
2. Ascertia Secure Email Server based on JAMES

Ideally these should've been part of http://wiki.apache.org/james/JamesUsers.
Any plan for updating this list ?

Thanks
Mahesh


Re: Ignore email after processing

2014-08-12 Thread Mahesh Sivarama Pillai
Those were really great tips Bernd.

Yes I will have proper logging to analyze what happened to the email. In my
case, the Corporate Exchange server does most of the stuff. Like virus
scan/spam filtering etc. After that, emails addressed to certain email ids
will be forwarded to JAMES. No further functionalities like
relay/spam/virus etc are going to be configured in JAMES. JAMES is the
final destination of those emails. There are some complex Business logic
going to be implemented in Mailets including calling some web services etc.
And ofcourse we will have to implement the error processing/re-processing
etc. More and more tips from your experience is highly appreciated.. :)

Thanks
Mahesh


On Tue, Aug 12, 2014 at 7:13 PM, Bernd Waibel  wrote:

> Right.
>
> Btw.
> We use this "GHOST" state in our mailet, but always after writing a
> comment to the log (like Mail from ... to .. with subject ... has been
> deleted). I recommend, not to delete mails without logging.
> We also use "ERROR", to get some of the unwanted mails to be stored in the
> error directory.
> This directory we clean up every view days (cron job), it is just a buffer
> for users asking "where is my mail".
>
> We also use ClamAV. Which will delete virus mails.
>
> Be aware that some local deamons (like logwatch under linux) could send
> mails to "root@localhost" or some local address.
> We have this on our James server, and they should not been deleted.
> (Our mail server does not have mailboxes, it routes everything to
> exchange.)
>
> Just my "operating experience".
> Bernd
>
> -Ursprüngliche Nachricht-
> Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> Gesendet: Dienstag, 12. August 2014 15:30
> An: James Users List
> Betreff: Re: Ignore email after processing
>
> Thanks Stefano and Bernd. I am aware of the functionality of the mailets.
> Somehow I missed the GHOST state. Yes thats what I want. May be in the
> transport processor, I can have my custom Mailet instead of the following
> local delivery element..
>
> 
>
> And have my mailet take a decision on setting the state as GHOST/ERROR or
> something else based on the processing. Rite ?
>
> Thanks
> Mahesh
>
>
> On Tue, Aug 12, 2014 at 6:44 PM, Bernd Waibel  wrote:
>
> > Hello Mahesh,
> >
> > if you would like to use Mailets, you could change the state of the
> > mail (the mail object).
> > - If you set it to "GHOST", it will be deleted and not stored.
> > - If you set it to "ERROR", it will be transported to the "error"
> > processor (may store it, may deleted, whatever configured in config.xml).
> >
> >
> > There are some existing mailets which could help you, too. They are
> > configured in config.xml.
> > You could define if a mail "match" something, it could be "handled by
> > a mailet class" somehow.
> > That means for example:
> >  
> >  transport 
> >  
> > Or
> >  
> >  file://var/mail/error/
> >  
> > There are a lot of existing mailets, and examples in the default
> > config.xml.
> > Also here is a overview of mailets:
> > http://james.apache.org/mailet/standard/mailet-report.html
> >
> >
> > Furthermore there is also a concept of bouncing back the mail (DSN
> > bounce) you may have a look at, depends on your needs.
> > But I think bouncing back mails is not what you would like to.
> >
> > Greetings,
> > Bernd
> >
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> > Gesendet: Dienstag, 12. August 2014 14:15
> > An: James Users List
> > Betreff: Ignore email after processing
> >
> > Hi,
> >
> >  In certain mail servers like sendmail, we can pipe the incoming
> > message to a script. Till the execution of the script, the mail will
> > be stored in the spool queue. The mail will not get moved to the inbox
> > after the script is run. So in effect the mail is deleted/ignored
> > after the processing. If I want to implement this in JAMES using
> > mailets how do I do it ? Can I prevent the email from going to the
> > inbox of a user after processing the business logic in Mailets or can I
> delete it right after the processing ?.
> > I don't want my inbox to grow. To give a background,  I am
> > implementing an email application platform; so there is no real users
> > associated with this email server who want to manage their emails
> > using any email client. And this is not meant to be a relay server as
> > well. The email JAMES is going to recieve is forwarded from an
> Enterprise Email server.
> >
> > Please provide your comments/suggestions.
> >
> > Thanks
> > Mahesh
> >
>


Re: Ignore email after processing

2014-08-12 Thread Mahesh Sivarama Pillai
Thanks Stefano and Bernd. I am aware of the functionality of the mailets.
Somehow I missed the GHOST state. Yes thats what I want. May be in the
transport processor, I can have my custom Mailet instead of the following
local delivery element..



And have my mailet take a decision on setting the state as GHOST/ERROR or
something else based on the processing. Rite ?

Thanks
Mahesh


On Tue, Aug 12, 2014 at 6:44 PM, Bernd Waibel  wrote:

> Hello Mahesh,
>
> if you would like to use Mailets, you could change the state of the mail
> (the mail object).
> - If you set it to "GHOST", it will be deleted and not stored.
> - If you set it to "ERROR", it will be transported to the "error"
> processor (may store it, may deleted, whatever configured in config.xml).
>
>
> There are some existing mailets which could help you, too. They are
> configured in config.xml.
> You could define if a mail "match" something, it could be "handled by a
> mailet class" somehow.
> That means for example:
>  
>  transport 
>  
> Or
>  
>  file://var/mail/error/
>  
> There are a lot of existing mailets, and examples in the default
> config.xml.
> Also here is a overview of mailets:
> http://james.apache.org/mailet/standard/mailet-report.html
>
>
> Furthermore there is also a concept of bouncing back the mail (DSN bounce)
> you may have a look at, depends on your needs.
> But I think bouncing back mails is not what you would like to.
>
> Greetings,
> Bernd
>
>
>
> -Ursprüngliche Nachricht-
> Von: Mahesh Sivarama Pillai [mailto:srm...@gmail.com]
> Gesendet: Dienstag, 12. August 2014 14:15
> An: James Users List
> Betreff: Ignore email after processing
>
> Hi,
>
>  In certain mail servers like sendmail, we can pipe the incoming message
> to a script. Till the execution of the script, the mail will be stored in
> the spool queue. The mail will not get moved to the inbox after the script
> is run. So in effect the mail is deleted/ignored after the processing. If I
> want to implement this in JAMES using mailets how do I do it ? Can I
> prevent the email from going to the inbox of a user after processing the
> business logic in Mailets or can I delete it right after the processing ?.
> I don't want my inbox to grow. To give a background,  I am implementing an
> email application platform; so there is no real users associated with this
> email server who want to manage their emails using any email client. And
> this is not meant to be a relay server as well. The email JAMES is going to
> recieve is forwarded from an Enterprise Email server.
>
> Please provide your comments/suggestions.
>
> Thanks
> Mahesh
>


Ignore email after processing

2014-08-12 Thread Mahesh Sivarama Pillai
Hi,

 In certain mail servers like sendmail, we can pipe the incoming message to
a script. Till the execution of the script, the mail will be stored in the
spool queue. The mail will not get moved to the inbox after the script is
run. So in effect the mail is deleted/ignored after the processing. If I
want to implement this in JAMES using mailets how do I do it ? Can I
prevent the email from going to the inbox of a user after processing the
business logic in Mailets or can I delete it right after the processing ?.
I don't want my inbox to grow. To give a background,  I am implementing an
email application platform; so there is no real users associated with this
email server who want to manage their emails using any email client. And
this is not meant to be a relay server as well. The email JAMES is going to
recieve is forwarded from an Enterprise Email server.

Please provide your comments/suggestions.

Thanks
Mahesh


Re: File Repository James 2.3.2

2014-08-10 Thread Mahesh Sivarama Pillai
Thanks a lot Eric. That gives me more confidence on V2. I have built
Postage from source and did a sanity run for a minute. I downloaded the
source from
http://svn.apache.org/repos/asf/james/postage/tags/james-2_20120613/ as
opposed to the trunk mentioned in the wiki entry for Postage. Trunk doesn't
have all the jars in lib. I will share the results once I do a load test
with my expected load. And please expect more questions from me as I
progress. Thanks again for the help/inputs so far.

Thanks
Mahesh


On Sun, Aug 10, 2014 at 4:40 PM, Eric Charles  wrote:

> No limitation nor constraint at all to run your use case on V2, and even
> maybe recommended as V3 mailetcontainer certainly still needs more
> tuning, while V2 is stable and tested.
>
> Benchmarking V2 vs V3 should give interesting figures, but we didn't do
> anything yet.
>
> You may also need support to use Postage which has no release so far.
>
>
> On 08/10/2014 12:37 PM, Mahesh Sivarama Pillai wrote:
> > I will definitely evaluate v3. But our use case doesn't need IMAP. Its
> not
> > a mail server which many users are going to access from their local mail
> > clients. What we are planning is an email application platform where when
> > an email is received over SMTP, call a web service and store the
> attachment
> > in another cloud storage.The JAMES server will not relay the emails to
> any
> > external mail servers. The mail flow ends when it arrives at JAMES. We
> have
> > an enterprise email server forwarding the emails to this proposed James
> > server. The earlier implementation was using a perl script which was
> > configured through an alias file in SendMail. So essentially the
> > sendmail+perl is going to be replaced with JAMES+Mailets. I have setup
> > Postage and I am going to test the performance with the scenarios. But
> > wanted an expert advice before I start testing them. Do you foresee any
> > issues implementing this using JAMES 2.3.2 ? I know that the performance
> of
> > the whole flow will depend on the implementation of Mailet. I wanted to
> > know if there are any limitations or constraints etc with the out of the
> > box features of JAMES 2.3.2 considering my use case ?
> >
> > Thanks
> > Mahesh
> >
> >
> > On Sun, Aug 10, 2014 at 3:41 PM, Eric Charles  wrote:
> >
> >> For pure smtp relay, v2 is better tested and is known to work in various
> >> production deployments.
> >>
> >> It supports pop3 but not imap, so if you don't need imap and focus on
> >> smtp, v2 is the best choice.
> >>
> >> Simply be aware that if you face an issue and want a patch committed,
> >> and released, you will get that less easily than in v3.
> >>
> >> If I was you, I would take a bit more time to test both and see how they
> >> behave, assuming you have enough timeslots to put a test infrastructure
> >> in place.
> >>
> >> On 08/10/2014 09:18 AM, Mahesh Sivarama Pillai wrote:
> >>> Hi Eric,
> >>>
> >>>  Thanks. I see that issue is fixed. I am going to use 2.3.2 which is
> the
> >>> stable version. I cannot use v3 at this moment as its not stable and I
> >>> cannot convince the people around here to go ahead with v3. Do you
> still
> >>> see I would encounter these kind of issues with 2.3.2 ? What other
> >> options
> >>> that I can explore in 2.3.2 ? I have read in the mailing lists about
> >>> people using James 2.3.2 with huge load. Are you saying James is not a
> >>> candidate for the specific use case that I mentioned earlier ?
> >>>
> >>> Thanks
> >>> Mahesh
> >>>
> >>>
> >>> On Sun, Aug 10, 2014 at 12:37 PM, Eric Charles 
> wrote:
> >>>
> >>>> Probably because you risks errors like JAMES-612 - All mails are 2
> >>>> serialized files.
> >>>>
> >>>> Off the record, I guess a unreleased version is not the best for your
> >>>> project, but you will get more functionalities and support going to
> v3.
> >>>>
> >>>>
> >>>> On 08/10/2014 07:00 AM, Mahesh Sivarama Pillai wrote:
> >>>>> Hi All,
> >>>>>
> >>>>>  In the James v2 documentation it is mentioned as
> >>>>> "File repositories are not recommended for large or
> >> performance-critical
> >>>>> configurations."
> >>>>>
> >>>>> I am planning to use James 2.3.2 for a large and performance crit

Re: File Repository James 2.3.2

2014-08-10 Thread Mahesh Sivarama Pillai
I will definitely evaluate v3. But our use case doesn't need IMAP. Its not
a mail server which many users are going to access from their local mail
clients. What we are planning is an email application platform where when
an email is received over SMTP, call a web service and store the attachment
in another cloud storage.The JAMES server will not relay the emails to any
external mail servers. The mail flow ends when it arrives at JAMES. We have
an enterprise email server forwarding the emails to this proposed James
server. The earlier implementation was using a perl script which was
configured through an alias file in SendMail. So essentially the
sendmail+perl is going to be replaced with JAMES+Mailets. I have setup
Postage and I am going to test the performance with the scenarios. But
wanted an expert advice before I start testing them. Do you foresee any
issues implementing this using JAMES 2.3.2 ? I know that the performance of
the whole flow will depend on the implementation of Mailet. I wanted to
know if there are any limitations or constraints etc with the out of the
box features of JAMES 2.3.2 considering my use case ?

Thanks
Mahesh


On Sun, Aug 10, 2014 at 3:41 PM, Eric Charles  wrote:

> For pure smtp relay, v2 is better tested and is known to work in various
> production deployments.
>
> It supports pop3 but not imap, so if you don't need imap and focus on
> smtp, v2 is the best choice.
>
> Simply be aware that if you face an issue and want a patch committed,
> and released, you will get that less easily than in v3.
>
> If I was you, I would take a bit more time to test both and see how they
> behave, assuming you have enough timeslots to put a test infrastructure
> in place.
>
> On 08/10/2014 09:18 AM, Mahesh Sivarama Pillai wrote:
> > Hi Eric,
> >
> >  Thanks. I see that issue is fixed. I am going to use 2.3.2 which is the
> > stable version. I cannot use v3 at this moment as its not stable and I
> > cannot convince the people around here to go ahead with v3. Do you still
> > see I would encounter these kind of issues with 2.3.2 ? What other
> options
> > that I can explore in 2.3.2 ? I have read in the mailing lists about
> > people using James 2.3.2 with huge load. Are you saying James is not a
> > candidate for the specific use case that I mentioned earlier ?
> >
> > Thanks
> > Mahesh
> >
> >
> > On Sun, Aug 10, 2014 at 12:37 PM, Eric Charles  wrote:
> >
> >> Probably because you risks errors like JAMES-612 - All mails are 2
> >> serialized files.
> >>
> >> Off the record, I guess a unreleased version is not the best for your
> >> project, but you will get more functionalities and support going to v3.
> >>
> >>
> >> On 08/10/2014 07:00 AM, Mahesh Sivarama Pillai wrote:
> >>> Hi All,
> >>>
> >>>  In the James v2 documentation it is mentioned as
> >>> "File repositories are not recommended for large or
> performance-critical
> >>> configurations."
> >>>
> >>> I am planning to use James 2.3.2 for a large and performance critical
> use
> >>> case. I am expecting around 100K emails a day with a maximum attachment
> >>> size of 20 MB (not all attachments will have 20 MB size). I have to
> strip
> >>> off the attachments from the email and store in a File storage cloud.
> The
> >>> above line about File repository really worries me. If not File
> >> repository,
> >>> which other repository gives high performance and reliability. I don't
> >>> think storing emails with large attachments in DB is a good idea.
> Please
> >>> provide your inputs and guidance.
> >>>
> >>> Thanks
> >>> Mahesh
> >>>
> >>
> >> -
> >> 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: File Repository James 2.3.2

2014-08-10 Thread Mahesh Sivarama Pillai
Hi Eric,

 Thanks. I see that issue is fixed. I am going to use 2.3.2 which is the
stable version. I cannot use v3 at this moment as its not stable and I
cannot convince the people around here to go ahead with v3. Do you still
see I would encounter these kind of issues with 2.3.2 ? What other options
that I can explore in 2.3.2 ? I have read in the mailing lists about
people using James 2.3.2 with huge load. Are you saying James is not a
candidate for the specific use case that I mentioned earlier ?

Thanks
Mahesh


On Sun, Aug 10, 2014 at 12:37 PM, Eric Charles  wrote:

> Probably because you risks errors like JAMES-612 - All mails are 2
> serialized files.
>
> Off the record, I guess a unreleased version is not the best for your
> project, but you will get more functionalities and support going to v3.
>
>
> On 08/10/2014 07:00 AM, Mahesh Sivarama Pillai wrote:
> > Hi All,
> >
> >  In the James v2 documentation it is mentioned as
> > "File repositories are not recommended for large or performance-critical
> > configurations."
> >
> > I am planning to use James 2.3.2 for a large and performance critical use
> > case. I am expecting around 100K emails a day with a maximum attachment
> > size of 20 MB (not all attachments will have 20 MB size). I have to strip
> > off the attachments from the email and store in a File storage cloud. The
> > above line about File repository really worries me. If not File
> repository,
> > which other repository gives high performance and reliability. I don't
> > think storing emails with large attachments in DB is a good idea. Please
> > provide your inputs and guidance.
> >
> > Thanks
> > Mahesh
> >
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


File Repository James 2.3.2

2014-08-09 Thread Mahesh Sivarama Pillai
Hi All,

 In the James v2 documentation it is mentioned as
"File repositories are not recommended for large or performance-critical
configurations."

I am planning to use James 2.3.2 for a large and performance critical use
case. I am expecting around 100K emails a day with a maximum attachment
size of 20 MB (not all attachments will have 20 MB size). I have to strip
off the attachments from the email and store in a File storage cloud. The
above line about File repository really worries me. If not File repository,
which other repository gives high performance and reliability. I don't
think storing emails with large attachments in DB is a good idea. Please
provide your inputs and guidance.

Thanks
Mahesh


Re: Extend JAMES 2.3.2 JMX

2014-08-06 Thread Mahesh Sivarama Pillai
Thanks Bernd. That was really helpful. I haven;t started anything as of now
with JMX. I was trying to findout what is there out of the box and what I
need to implement to monitor the inbox and other folders. Once I do that, I
will definitely share the approach I took in this mailing list..

Thanks
Mahesh


On Wed, Aug 6, 2014 at 1:43 PM, Mahesh Sivarama Pillai 
wrote:

> Thanks Ozgur. I connected to to the 2.3.2 instance through jconsole. But I
> couldn't find the MailboxManager MBean. Is it available in 2.3.2 ?
>
> Thanks
> Mahesh
>
>
> On Wed, Aug 6, 2014 at 1:06 PM, Özgür EROĞLU 
> wrote:
>
>> Hi Mahesh,
>>
>> You can list, add, delete users and change their passwords using
>> UsersRepositoryManagementMBean, also using MailboxManagerManagementMBean
>> you can delete all mailboxes or list them. You can again add, delete, etc.
>> domains using DomainListManagementMBean.
>>
>> But as far as I know there are no MBeans to do 2 and 3. Of course someone
>> can correct me If I am wrong.
>>
>> There is the Bond project to manage, configure and monitor the server (I
>> just run it for testing, so I am not sure if it is completely functional),
>> but I also need to use JMX for most of my tasks, so I am also trying to
>> find my way on code to add similar capabilities.
>>
>> Ozgur
>>
>>
>> On 08/06/2014 09:02 AM, Mahesh Sivarama Pillai wrote:
>>
>>> Hi,
>>>
>>>   Can we extend the JMX capabilities of JAMES by adding more MBeans ? The
>>> capabilities I wanted to start with is;
>>>
>>> 1. List the users
>>> 2. List the number of files in the Inbox/Error folder etc.
>>> 3. Move files from one folder to another
>>>
>>> Have someone done similar things ? Please share your thoughts.
>>>
>>> Thanks
>>> Mahesh
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-user-h...@james.apache.org
>>
>>
>


Re: Extend JAMES 2.3.2 JMX

2014-08-06 Thread Mahesh Sivarama Pillai
Thanks Ozgur. I connected to to the 2.3.2 instance through jconsole. But I
couldn't find the MailboxManager MBean. Is it available in 2.3.2 ?

Thanks
Mahesh


On Wed, Aug 6, 2014 at 1:06 PM, Özgür EROĞLU  wrote:

> Hi Mahesh,
>
> You can list, add, delete users and change their passwords using
> UsersRepositoryManagementMBean, also using MailboxManagerManagementMBean
> you can delete all mailboxes or list them. You can again add, delete, etc.
> domains using DomainListManagementMBean.
>
> But as far as I know there are no MBeans to do 2 and 3. Of course someone
> can correct me If I am wrong.
>
> There is the Bond project to manage, configure and monitor the server (I
> just run it for testing, so I am not sure if it is completely functional),
> but I also need to use JMX for most of my tasks, so I am also trying to
> find my way on code to add similar capabilities.
>
> Ozgur
>
>
> On 08/06/2014 09:02 AM, Mahesh Sivarama Pillai wrote:
>
>> Hi,
>>
>>   Can we extend the JMX capabilities of JAMES by adding more MBeans ? The
>> capabilities I wanted to start with is;
>>
>> 1. List the users
>> 2. List the number of files in the Inbox/Error folder etc.
>> 3. Move files from one folder to another
>>
>> Have someone done similar things ? Please share your thoughts.
>>
>> Thanks
>> Mahesh
>>
>>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Extend JAMES 2.3.2 JMX

2014-08-05 Thread Mahesh Sivarama Pillai
Hi,

 Can we extend the JMX capabilities of JAMES by adding more MBeans ? The
capabilities I wanted to start with is;

1. List the users
2. List the number of files in the Inbox/Error folder etc.
3. Move files from one folder to another

Have someone done similar things ? Please share your thoughts.

Thanks
Mahesh


Re: Email to Cloud Use case

2014-08-04 Thread Mahesh Sivarama Pillai
Yes Eric.. thats exactly I was planning to do; having the external service
interaction before the mail is locally delivered. Spool will act as Queue
in this case and Mailet will do the business logic and external service
call etc.. and once the processing is done, the mail will be available in
Inbox or Error based on the process outcome in the Mailet. I thought you
were referring to implementing an internal queue (something like
LinkedBlockingQueue) in the Mailet. Btw, I am planning to use 2.3.2 because
its the stable version..

Thanks
Mahesh


On Mon, Aug 4, 2014 at 10:55 PM, Eric Charles  wrote:

> When received, the mail is kind-of "queued" in the mailet container [1].
> We also have specific queues for the RemoteDelivery case, but in that
> case, the dequeing is not managed by the mailet lifecycle.
>
> Wherever you plan to have an external queuing system (JMS or whatever),
> you need to take care on the communication between the mailet (a custom
> one you will have to write) and the system you are calling. Timeout and
> worth, infinite socket, can put your james server down.
>
> When you say, "if I have an email in Inbox", you must realize that at
> that time, the whole processing by the mailet container is already done.
> You just have to configure so that your mailet in called before the mail
> is delivered locally.
>
> [1] http://james.apache.org/server/3/feature-mailetcontainer.html
>
> On 08/04/2014 12:05 PM, Mahesh Sivarama Pillai wrote:
> > Thanks Eric. A queuing system definitely makes sense here. I am trying
> > to understand bit more on the design considerations while using James.
> > Spool itself is a queue. If I have enough storage space and the SLA
> > expectation for processing the email is within a reasonable amount of
> > time say 5 seconds, Can I have this functionality as part of the main
> > processor itself ? Means, if I have an email in Inbox, that means the
> > cloud service have been called for that email. Otherwise I can see the
> > email in the error folder or something like that.. What are your
> thoughts ?
> >
> > Thanks
> > Mahesh
> >
> >
> > On Sun, Aug 3, 2014 at 1:43 PM, Eric Charles  > <mailto:e...@apache.org>> wrote:
> >
> > You have to implement your self the queing system, a bit like the
> > RemoteDelivery mailet.
> >
> > Having an abstraction for this feature would be indeed cool.
> >
> > On 07/25/2014 04:59 PM, Mahesh Sivarama Pillai wrote:
> > > Thanks Ozgur. We are planning to have a it forwarded it to an ESB
> > which has
> > > the queuing and other features in the next phase. If I implement
> the
> > > feature in the mailtet without a Queue, the messages will be
> > available in
> > > the spool and will move to the inbox only when the webservice call
> is
> > > completed. Yes, Spool directory will get piled up depending on the
> > > performance of the Mailet and the number of spool threads
> > configured. Do
> > > you see any other issue in this short term approach.
> > >
> > > If you don't mind, can you please share how you configured James
> > to handle
> > > the errors/timeout etc in the WebService call ? Like moving to the
> > error
> > > directory and reprocessing later etc ? What are the James related
> > design
> > > considerations and best practices that you followed ?
> > >
> > > Thanks
> > > Mahesh
> > >
> > >
> > > On Fri, Jul 25, 2014 at 1:09 AM, Özgür EROĞLU
> > mailto:oeroglu.c...@gmail.com>>
> > > wrote:
> > >
> > >> On 07/13/2014 11:16 PM, Mahesh Sivarama Pillai wrote:
> > >> Hi,
> > >>
> > >> It would be better to put mail  or its reference (if you use a db
> or
> > >> filesystem to save messages temporarily) to a message queue and
> > then at the
> > >> service side implement a consumer to get messages for processing.
> > This way
> > >> you will eliminate the constraint to have 7/24 alive service. We
> > did smt.
> > >> similar in a project by writing a mailet to forward messages to
> web
> > >> services.
> > >>
> > >> Ozgur Eroglu
> > >>
> > >>
> > >>  Hi,
> > >>>
> > >>>   I am planning to use James Server for a Mail-to-Cloud use
> > case. Here is
> > >>>

Re: Email to Cloud Use case

2014-08-04 Thread Mahesh Sivarama Pillai
Thanks Eric. A queuing system definitely makes sense here. I am trying to
understand bit more on the design considerations while using James. Spool
itself is a queue. If I have enough storage space and the SLA expectation
for processing the email is within a reasonable amount of time say 5
seconds, Can I have this functionality as part of the main processor itself
? Means, if I have an email in Inbox, that means the cloud service have
been called for that email. Otherwise I can see the email in the error
folder or something like that.. What are your thoughts ?

Thanks
Mahesh


On Sun, Aug 3, 2014 at 1:43 PM, Eric Charles  wrote:

> You have to implement your self the queing system, a bit like the
> RemoteDelivery mailet.
>
> Having an abstraction for this feature would be indeed cool.
>
> On 07/25/2014 04:59 PM, Mahesh Sivarama Pillai wrote:
> > Thanks Ozgur. We are planning to have a it forwarded it to an ESB which
> has
> > the queuing and other features in the next phase. If I implement the
> > feature in the mailtet without a Queue, the messages will be available in
> > the spool and will move to the inbox only when the webservice call is
> > completed. Yes, Spool directory will get piled up depending on the
> > performance of the Mailet and the number of spool threads configured. Do
> > you see any other issue in this short term approach.
> >
> > If you don't mind, can you please share how you configured James to
> handle
> > the errors/timeout etc in the WebService call ? Like moving to the error
> > directory and reprocessing later etc ? What are the James related design
> > considerations and best practices that you followed ?
> >
> > Thanks
> > Mahesh
> >
> >
> > On Fri, Jul 25, 2014 at 1:09 AM, Özgür EROĞLU 
> > wrote:
> >
> >> On 07/13/2014 11:16 PM, Mahesh Sivarama Pillai wrote:
> >> Hi,
> >>
> >> It would be better to put mail  or its reference (if you use a db or
> >> filesystem to save messages temporarily) to a message queue and then at
> the
> >> service side implement a consumer to get messages for processing. This
> way
> >> you will eliminate the constraint to have 7/24 alive service. We did
> smt.
> >> similar in a project by writing a mailet to forward messages to web
> >> services.
> >>
> >> Ozgur Eroglu
> >>
> >>
> >>  Hi,
> >>>
> >>>   I am planning to use James Server for a Mail-to-Cloud use case. Here
> is
> >>> what I am planning to do.
> >>>
> >>>   1. Receive email redirected from the Corporate Email Server to James
> >>> (100K
> >>> emails per day)
> >>>   2. Do some validation/filter etc on the received email
> >>>   3. Call the cloud web service with the email content and
> simultaneously,
> >>> upload the attachment(max size may be ~15 mb) in the mail to another
> file
> >>> storage cloud.
> >>>
> >>>   I am planning to implement a Mailet for implementing this use case.
> My
> >>> questions are;
> >>>
> >>>   1. What are all the design considerations that I should be looking at
> >>> while implementing this ?
> >>>   2. I may want to retry the emails which failed during the cloud
> >>> interaction. How can I do this ?
> >>>   3. Is anyone implemented a similar use case and can you please share
> >>> your
> >>> experiences ?
> >>>
> >>>   I want to use 2.3.2 because it is the stable version as 3.0 is still
> in
> >>> Beta and I cannot convince my company to use a software which is in
> beta
> >>> version.
> >>>
> >>>
> >>>   Highly appreciate your thoughts and inputs on these.
> >>>
> >>>   Thanks
> >>>   Mahesh
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> >> For additional commands, e-mail: server-user-h...@james.apache.org
> >>
> >>
> >
>


Commercial Support for JAMES ??

2014-07-30 Thread Mahesh Sivarama Pillai
Hi All,

 I know JAMES is an opensource server under Apache License. I am finding it
little bit difficult to convince my management to go with JAMES for our use
cases. Do we have any commercial support available for JAMES ? Is someone
providing or ready to provide the support. Please advice..

Thanks
Mahesh


Re: Email to Cloud Use case

2014-07-25 Thread Mahesh Sivarama Pillai
Thanks Ozgur. We are planning to have a it forwarded it to an ESB which has
the queuing and other features in the next phase. If I implement the
feature in the mailtet without a Queue, the messages will be available in
the spool and will move to the inbox only when the webservice call is
completed. Yes, Spool directory will get piled up depending on the
performance of the Mailet and the number of spool threads configured. Do
you see any other issue in this short term approach.

If you don't mind, can you please share how you configured James to handle
the errors/timeout etc in the WebService call ? Like moving to the error
directory and reprocessing later etc ? What are the James related design
considerations and best practices that you followed ?

Thanks
Mahesh


On Fri, Jul 25, 2014 at 1:09 AM, Özgür EROĞLU 
wrote:

> On 07/13/2014 11:16 PM, Mahesh Sivarama Pillai wrote:
> Hi,
>
> It would be better to put mail  or its reference (if you use a db or
> filesystem to save messages temporarily) to a message queue and then at the
> service side implement a consumer to get messages for processing. This way
> you will eliminate the constraint to have 7/24 alive service. We did smt.
> similar in a project by writing a mailet to forward messages to web
> services.
>
> Ozgur Eroglu
>
>
>  Hi,
>>
>>   I am planning to use James Server for a Mail-to-Cloud use case. Here is
>> what I am planning to do.
>>
>>   1. Receive email redirected from the Corporate Email Server to James
>> (100K
>> emails per day)
>>   2. Do some validation/filter etc on the received email
>>   3. Call the cloud web service with the email content and simultaneously,
>> upload the attachment(max size may be ~15 mb) in the mail to another file
>> storage cloud.
>>
>>   I am planning to implement a Mailet for implementing this use case. My
>> questions are;
>>
>>   1. What are all the design considerations that I should be looking at
>> while implementing this ?
>>   2. I may want to retry the emails which failed during the cloud
>> interaction. How can I do this ?
>>   3. Is anyone implemented a similar use case and can you please share
>> your
>> experiences ?
>>
>>   I want to use 2.3.2 because it is the stable version as 3.0 is still in
>> Beta and I cannot convince my company to use a software which is in beta
>> version.
>>
>>
>>   Highly appreciate your thoughts and inputs on these.
>>
>>   Thanks
>>   Mahesh
>>
>>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Email to Cloud Use case

2014-07-13 Thread Mahesh Sivarama Pillai
Hi,

 I am planning to use James Server for a Mail-to-Cloud use case. Here is
what I am planning to do.

 1. Receive email redirected from the Corporate Email Server to James (100K
emails per day)
 2. Do some validation/filter etc on the received email
 3. Call the cloud web service with the email content and simultaneously,
upload the attachment(max size may be ~15 mb) in the mail to another file
storage cloud.

 I am planning to implement a Mailet for implementing this use case. My
questions are;

 1. What are all the design considerations that I should be looking at
while implementing this ?
 2. I may want to retry the emails which failed during the cloud
interaction. How can I do this ?
 3. Is anyone implemented a similar use case and can you please share your
experiences ?

 I want to use 2.3.2 because it is the stable version as 3.0 is still in
Beta and I cannot convince my company to use a software which is in beta
version.


 Highly appreciate your thoughts and inputs on these.

 Thanks
 Mahesh