Re: James 3.2.0 JPA version

2019-09-26 Thread Saibabu Vallurupalli
Hi Benoit,

No, I don't see any additional logs other than this one error. Also,
where I should look in smtpserver.xml for this setting?
Please advise.

Thank you,
Sai

On Thu, Sep 26, 2019 at 10:34 PM Tellier Benoit  wrote:
>
> Hi,
>
> Do you see additional logs?
>
> Do you require SMTP clients to authenticate within smtpserver.xml
> configuration file?
>
> Cheers,
>
> Benoit
>
> On 26/09/2019 19:42, Saibabu Vallurupalli wrote:
> > Hi All,
> >
> > I am able to send messages but unable to receive, when someone tries
> > to send message they are seeing "smtp 535 5.7.3 authentication
> > unsuccessful ".
> >
> > What am I missing  in the configurations?
> >
> > Please advise.
> >
> > Thank you,
> > Sai
> >
> > -
> > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> > For additional commands, e-mail: server-user-h...@james.apache.org
> >
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>

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



James 3.2.0 JPA version

2019-09-26 Thread Saibabu Vallurupalli
Hi All,

I am able to send messages but unable to receive, when someone tries
to send message they are seeing "smtp 535 5.7.3 authentication
unsuccessful ".

What am I missing  in the configurations?

Please advise.

Thank you,
Sai

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



Re: JMX Access?

2019-09-26 Thread Saibabu Vallurupalli
es-cli.sh files have those two parameters already specified in the
> JAVA command.  So I don't think that could be what's wrong.
>
> Any idea what is causing the exception?
>
> And just out of curiosity, if you are on James 3.3.0, do any of the log
> files in the logs directory have any data in them?  Even out of the box,
> with every log level set to DEBUG, for me the only file that doesn't
> have zero bytes is james-server-log.  My bigger problem than JMX is that
> all of the logging data is being discarded.
>
> Jerry
>
> On 9/26/2019 12:21 AM, Saibabu Vallurupalli wrote:
> > Hi Jerry,
> >
> > you need to add JVM options before starting the James server. See the
> > two parameters below:
> > Edit james.sh in vi editor or whichever you are comfortable with and
> > then add  "-Dcom.sun.management.jmxremote=true" and
> > "-Dcom.sun.management.jmxremote.authenticate=false", see below the way
> > how I did.
> >
> > case "$1" in
> >  start)
> >  echo Starting James
> >  nohup java -classpath
> > "james-server-jpa-guice.jar:james-server-jpa-guice.lib/*:james-server-jpa-guice.lib"
> > -javaagent:james-server-jpa-guice.lib/openjpa-3.0.0.jar
> > -Dcom.sun.management.jmxremote=true
> > -Dcom.sun.management.jmxremote.authenticate=false
> > -Dlogback.configurationFile=conf/logback.xml -Dworking.directory=.
> > org.apache.james.JPAJamesServerMain > /dev/null 2>&1  &
> >
> > Do the same for restart) option too just in case if you restart you
> > may loose JMX option.
> >
> > Then the JMX gets enabled. The script has issues, these parameters
> > should be available by default.
> >
> > Hope this helps and you can meet your deadline now :-)
> >
> > Let me know how it goes.
> >
> > Thanks,
> > Sai
> >
> > On Thu, Sep 26, 2019 at 1:11 AM Jerry Malcolm  
> > wrote:
> >> I figure if I keep asking questions, sooner or later I'm going to hit
> >> one that SOMEBODY can help me with  The issues keep backing up.  And
> >> my deadline is way too close Is anyone using James 3.3.0?  Yet I'm
> >> the only one having these out-of-the-box problems?  This migration has
> >> been an absolute nightmare.
> >>
> >> I still have absolutely NO way to see any logging data for the mailets,
> >> smtp, imap, etc logs.   So I decided to use JMX to see if there were any
> >> MBeans exposed that might help me figure out why there is no logging.
> >> And, of course with the way everything else has gone, I can't connect to
> >> James JMX.  JConsole will not connect.  It works fine accessing Tomcat
> >> using the same approach. But nothing with James.  I'm using a PuTTY
> >> tunnel directly to the Amazon EC2 instance.
> >>
> >> I went back to an absolute pristine install of JAMES 3.3.0 right out of
> >> the downloaded zip file.  I made absolutely zero changes to the
> >> install/config.  Just unpack and run.  No JMX access with out-of-the-box
> >> James either.  JConsole hangs for about a minute, and gives me an error
> >> that it can't connect.
> >>
> >> Then I made one change to log4j.properties and bumped everything to
> >> DEBUG.  Thankfully, the one log file that actually works in this release
> >> is James-server.log.  I see the following error when James is apparently
> >> starting up JMX.  The 172.31 IP address it's failing on is my EC2
> >> public IP.  But the jmx.properties file says to connect to
> >> 127.0.0.1:.  I never explicitly configured the 172.31... address
> >> anywhere in James.
> >>
> >> What's causing this:
> >>
> >> INFO  04:29:47,638 |
> >> org.springframework.remoting.rmi.RmiRegistryFactoryBean | Looking for
> >> RMI registry at port '', using custom socket factory
> >> DEBUG 04:29:47,642 |
> >> org.springframework.remoting.rmi.RmiRegistryFactoryBean | RMI registry
> >> access threw exception
> >> java.rmi.ConnectException: Connection refused to host: 172.31.32.236;
> >> nested exception is:
> >>   java.net.ConnectException: Connection refused (Connection 
> >> refused)
> >>   at
> >> sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
> >>   at
> >> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
> >>   at
> >> sun.rmi.transport.tcp.TCPChannel.n

Re: JMX Access?

2019-09-25 Thread Saibabu Vallurupalli
Hi Jerry,

you need to add JVM options before starting the James server. See the
two parameters below:
Edit james.sh in vi editor or whichever you are comfortable with and
then add  "-Dcom.sun.management.jmxremote=true" and
"-Dcom.sun.management.jmxremote.authenticate=false", see below the way
how I did.

case "$1" in
start)
echo Starting James
nohup java -classpath
"james-server-jpa-guice.jar:james-server-jpa-guice.lib/*:james-server-jpa-guice.lib"
-javaagent:james-server-jpa-guice.lib/openjpa-3.0.0.jar
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.authenticate=false
-Dlogback.configurationFile=conf/logback.xml -Dworking.directory=.
org.apache.james.JPAJamesServerMain > /dev/null 2>&1  &

Do the same for restart) option too just in case if you restart you
may loose JMX option.

Then the JMX gets enabled. The script has issues, these parameters
should be available by default.

Hope this helps and you can meet your deadline now :-)

Let me know how it goes.

Thanks,
Sai

On Thu, Sep 26, 2019 at 1:11 AM Jerry Malcolm  wrote:
>
> I figure if I keep asking questions, sooner or later I'm going to hit
> one that SOMEBODY can help me with  The issues keep backing up.  And
> my deadline is way too close Is anyone using James 3.3.0?  Yet I'm
> the only one having these out-of-the-box problems?  This migration has
> been an absolute nightmare.
>
> I still have absolutely NO way to see any logging data for the mailets,
> smtp, imap, etc logs.   So I decided to use JMX to see if there were any
> MBeans exposed that might help me figure out why there is no logging.
> And, of course with the way everything else has gone, I can't connect to
> James JMX.  JConsole will not connect.  It works fine accessing Tomcat
> using the same approach. But nothing with James.  I'm using a PuTTY
> tunnel directly to the Amazon EC2 instance.
>
> I went back to an absolute pristine install of JAMES 3.3.0 right out of
> the downloaded zip file.  I made absolutely zero changes to the
> install/config.  Just unpack and run.  No JMX access with out-of-the-box
> James either.  JConsole hangs for about a minute, and gives me an error
> that it can't connect.
>
> Then I made one change to log4j.properties and bumped everything to
> DEBUG.  Thankfully, the one log file that actually works in this release
> is James-server.log.  I see the following error when James is apparently
> starting up JMX.  The 172.31 IP address it's failing on is my EC2
> public IP.  But the jmx.properties file says to connect to
> 127.0.0.1:.  I never explicitly configured the 172.31... address
> anywhere in James.
>
> What's causing this:
>
> INFO  04:29:47,638 |
> org.springframework.remoting.rmi.RmiRegistryFactoryBean | Looking for
> RMI registry at port '', using custom socket factory
> DEBUG 04:29:47,642 |
> org.springframework.remoting.rmi.RmiRegistryFactoryBean | RMI registry
> access threw exception
> java.rmi.ConnectException: Connection refused to host: 172.31.32.236;
> nested exception is:
>  java.net.ConnectException: Connection refused (Connection refused)
>  at
> sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
>  at
> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
>  at
> sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
>  at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338)
>  at
> sun.rmi.registry.RegistryImpl_Stub.list(RegistryImpl_Stub.java:85)
>  at
> org.springframework.remoting.rmi.RmiRegistryFactoryBean.testRegistry(RmiRegistryFactoryBean.java:281)
>  at
> org.springframework.remoting.rmi.RmiRegistryFactoryBean.getRegistry(RmiRegistryFactoryBean.java:222)
>  at
> org.springframework.remoting.rmi.RmiRegistryFactoryBean.getRegistry(RmiRegistryFactoryBean.java:193)
>  at
> org.springframework.remoting.rmi.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:164)
>  at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
>  at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
>  at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>  at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>  at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>  at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
>  at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

Re: A MySQL connection setup issue

2019-01-04 Thread Saibabu Vallurupalli
your configurations are incorrect is what the error shows and I see
you have got:

vendorAdapter.database=MYSQL

This should be :
vendorAdapter.database=MARIADB

Try changing this.

Thanks,
Sai

On Fri, Jan 4, 2019 at 2:39 AM Marc Chamberlin  wrote:
>
> (Thanks Benoit, Saibabu, and Simon for taking the time/trouble to answer
> my previous question on MySQL. It helped a lot!)
>
> I have managed to get a little further setting up James 3.2.0 Spring
> with MySQL/MariaDB but have ran into a problem which Google is not being
> helpful.
>
> I appear to be having troubles with getting a connection going between
> James and the MariaDB server. I will provide a description of what I
> have done and then I will show the exception message I am getting which
> is stopping James from starting up...
>
> First of all I downloaded the MariaDB Connector/J .jar file from
> https://downloads.mariadb.org/connector-java/ and installed it in the
> conf/lib directory within the James installation.
>
> I then set up a database and user in MariaDB as follows -
>
> > mysql --user=root -p
>
> MariaDB [mysql]> create database mail;
> MariaDB [mysql]> create user 'james'@'localhost' identified by 'apassword';
> MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';
>
> I also created a system user for james and assigned it the same password.
>
> Next I edited the james-database.properties file as follows -
>
> database.driverClassName=org.mariadb.jdbc.Driver
> database.url=jdbc:mariadb://127.0.0.1:3306/mail
> database.username=james
> database.password=apassword
> vendorAdapter.database=MYSQL
> openjpa.streaming=false
> datasource.testOnBorrow=true
> datasource.validationQueryTimeoutSec=2
> datasource.validationQuery=select 1
>
> Telnetting to localhost port 3306 does show that the mariadb server is
> responding but hard to say exactly what is being communicated because a
> lot of the text has non-printable characters. I assume it is working OK...
>
> Upon starting up James I am getting exceptions with a huge amount of
> stack walkback messages, but I will try to capture just what appears to
> be relevant -
>
> INFO  22:03:05,852 | org.apache.james.domainlist.lib.AbstractDomainList
> | Set autodetectIP to: true
> WARN  22:03:06,000 |
> org.apache.james.container.spring.context.JamesServerApplicationContext
> | Exception encountered during context initial
> ization - cancelling refresh attempt:
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'auth
> enticator' defined in class path resource
> [META-INF/org/apache/james/spring-mailbox-authenticator.xml]:
> Unsatisfied dependency expressed th
> rough constructor argument with index 0 of type
> [org.apache.james.user.api.UsersRepository]: : Error creating bean with
> name 'usersreposito
> ry': Invocation of init method failed; nested exception is
> 
> org.apache.openjpa.persis
> tence.PersistenceException: There were errors initializing your
> configuration:  org.apache.
> openjpa.util.UserException: A connection could not be obtained for
> driver class "null" and URL "null".  You may have specified an invalid U
> RL.
> at
> org.apache.openjpa.jdbc.schema.DataSourceFactory.newConnectException(DataSourceFactory.java:272)
> at
> org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:258)
> at
> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:735)
> ... (Lots more trace back messages followed by -)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory (Access denied for user 'james@localhost'@'l
> ocalhost' (using password: YES))
> at
> org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
> at
> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
> at
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
>
> and these exceptions/stack trace walkbacks repeat several time in the
> log file. Kinda hard for this poor soul to grok and I sure would
> appreciate it if wiser eyes could provide me with some ideas/pointers. I
> would be willing to send the entire log file if that would help, but
> warning it is a LOT! I am missing something simple probably  Thanks
> again in advance for helping me over this bump...
>
>Marc...
>
>
>
> Linux Counter

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



Re: MySQL documentation?

2019-01-03 Thread Saibabu Vallurupalli
Follow the instructions in this link:
https://james.apache.org/server/archive/usingJDBC_v2.0.html

Hope this helps.

Thanks,
Sai

On Thu, Jan 3, 2019 at 2:40 AM Marc Chamberlin  wrote:
>
> Can some kind soul send me, or point me to a link describing how to
> configure the james-database.properties for James 3.2.0 with Spring
> wiring for MySQL/MariaDB databases?  I seem unable to find it...  Thanks
> in advance...
>
>  Marc..
>
>
> --
> Linux Counter

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



Re: James 3 new install problem

2014-02-25 Thread Saibabu Vallurupalli
What is your James version?
On Feb 25, 2014 6:23 PM, "Jerry M"  wrote:

> Is anybody at home at JAMES? There has been no response to my questions.
>  I'm dead in the water.  I really need somebody from development to help me
> get this resolved.
>
> Thanks.
>
> Jerry
>
>
> On 2/25/2014 9:17 AM, Jerry M wrote:
>
>> I am really baffled by what is happening.  I wiresharked this and watched
>> a complete, successful packet exchange at the TCP level between the client
>> and JAMES over the SMTP port.  The data in the exchange contained the
>> message that it couldn't process the request.  But at the TCP/port level,
>> everything appears to be fine. Yet I get the exception in the logs that
>> JAMES can't get a connection.  This really confuses me.  Requesting a
>> connection implies an outbound request.   Aside from why it is not able to
>> connect, why is JAMES trying to set up an outbound connection to my
>> server's IP address while it is processing an inbound SMTP request? Doesn't
>> seem necessary as part of standard SMTP protocol. Is this some sort of
>> reporting to JMX that is failing?
>>
>> What port is JAMES trying to connect to on the local server's IP address,
>> and what is supposed to be listening at that port that isn't there?
>>
>> Thx
>>
>> Jerry
>>
>>
>> -
>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-user-h...@james.apache.org
>>
>>
>>
>> -
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2014.0.4335 / Virus Database: 3705/7124 - Release Date: 02/25/14
>>
>>
>>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Re: James Installation

2014-02-25 Thread Saibabu Vallurupalli
Apache James is not dependent on PHP or MySQL. Unless you wanted to
integrate with MySQL database. Default settings always uses Derby database.

You can see this configuration under $JAMES_HOME/conf/ folder.

Thanks,
Sai


On Tue, Feb 25, 2014 at 9:24 AM, Patwardhan, Kaustubh <
kaustubh.patward...@capgemini.com> wrote:

>  Team,
>
>
>
> Is it mandatory to install PHP and Mysql before installing James server
> component ?
>
>
>
> ___
>
> [image: Email_CBE.gif]*Kaustubh Patwardhan*
>
> NAR ITICS
>
>
>
> Capgemini India | Airoli
>
> Main: +91 22 6755 7000 ext.-2212345 | Cell: +91 9920467097
>
> Voip: 91-312-799- dial "#" extn 2212345
>
> www.capgemini.com
>
> E-mail : kaustubh.patward...@capgemini.com
>
> Fourth floor, Building no.8, Serene Estates,
>
> Mind Space SEZ Campus, Thane-Belapur Road,
>
> Airoli, Navi Mumbai - 400708
> *People matter, results count.*
>
> ___
>
>
>  This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>


Slow message delivery

2014-02-19 Thread Saibabu Vallurupalli
Hi Eric and Team,

We are using Apache James3 Beta3 in our production and found for some
reason the messages were delivered very slow. If I send a message now it is
sitting in queue until I send a new message. Once the new message is sent
then the old one is actually leave the queue and message is delivered. If
we send one and wait then it will be eventually delivered in an hour or so.

Any thoughts or suggestions. Please let me know.

Thanks & regards,
Sai


Unable to send messages using SSL/TLS on port 465

2013-12-23 Thread Saibabu Vallurupalli
We configured our James on Mac OS, we were able to successfully
send/receive message only on port 25.

Our James server required both the capabilities secure/un-secure so we
enabled port 25 as well as port 465.

James 3 Beta 3 always trying to use port 25 and fails on it instead of
using port 465 for secured connections.

Configuration done are:
- Updated smtpserver-ssl.xml as below:

smtpserver-ssl
0.0.0.0:465
200

file://conf/keystore
x

org.bouncycastle.jce.provider.BouncyCastleProvider
 
  360
  true
  127.0.0.0/8
  false
  0
  


 



Also, updated mailetcontainer.xml file to use RemoteDelovery Mailet
465

Also, updated ../context/james-server-context.xml


Appreciate any help towards this.

Thank you,
Sai


Re: Mail Delivery to Custom Folders

2013-12-09 Thread Saibabu Vallurupalli
Thanks Eric. We will try this option.




On Mon, Dec 9, 2013 at 1:22 PM, Eric Charles  wrote:

> Use the ToRepository mailet with passThrough set to true if you want to
> continue processing (e.g. delivery to inbox).
>
> http://james.apache.org/server/3/dev-provided-mailets.html
>
>
> On 12/09/2013 06:42 AM, drpal...@cim.vipahealth.com wrote:
>
>>
>> whenever this configuration comes to light please forward to me
>>
>> andres palomo
>>
>>  Hi Team,
>>>
>>> Is it possible to configure James to use customer folders for emails like
>>> mails received to Inbox to be saved to /var/mails/Sai/Received and mails
>>> sent to /var/mail/Sai/Sent Something like that. Can you point me to some
>>> references if it is possible.
>>>
>>> Thank you in advance.
>>>
>>> Regards,
>>> Sai
>>>
>>>
>>
>>
>> -
>> 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
>
>


Mail Delivery to Custom Folders

2013-12-08 Thread Saibabu Vallurupalli
Hi Team,

Is it possible to configure James to use customer folders for emails like
mails received to Inbox to be saved to /var/mails/Sai/Received and mails
sent to /var/mail/Sai/Sent Something like that. Can you point me to some
references if it is possible.

Thank you in advance.

Regards,
Sai


Issue with startTLS

2013-10-30 Thread Saibabu Vallurupalli
Hi All,

I configured my James server to use SSL/TLS and then I am trying to enable
startTLS=true my James is throwing exceptions:

***
INFO  19:24:19,929 | james.mailspooler | Run
org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-1
INFO  19:24:19,929 | james.mailspooler | Queue=MailQueue:spool
INFO  19:24:19,929 | james.mailspooler | Stop
org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-1
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smtpserver-ssl' defined in class path resource
[context/james-server-context.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.FatalBeanException: Unable to
execute lifecycle method on beansmtpserver-ssl; nested exception is
org.apache.commons.configuration.ConfigurationException: startTLS is only
supported when using plain sockets
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.FatalBeanException: Unable to execute
lifecycle method on beansmtpserver-ssl; nested exception is
org.apache.commons.configuration.ConfigurationException: startTLS is only
supported when using plain sockets
at
org.apache.james.container.spring.lifecycle.AbstractLifecycleBeanPostProcessor.postProcessBeforeInitialization(AbstractLifecycleBeanPostProcessor.java:65)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 13 more
Caused by: org.apache.commons.configuration.ConfigurationException:
startTLS is only supported when using plain sockets
at
org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer.configure(AbstractConfigurableAsyncServer.java:223)
at
org.apache.james.container.spring.lifecycle.ConfigurableBeanPostProcessor.executeLifecycleMethodBeforeInit(ConfigurableBeanPostProcessor.java:44)
at
org.apache.james.container.spring.lifecycle.ConfigurableBeanPostProcessor.executeLifecycleMethodBeforeInit(ConfigurableBeanPostProcessor.java:28)
at
org.apache.james.container.spring.lifecycle.AbstractLifecycleBeanPostProcessor.postProcessBeforeInitialization(AbstractLifecycleBeanPostProcessor.java:61)
... 16 more

*

Can you please suggest why I am unable to start TLS?

Thank you,
Sai


Unable to send mail using SSL/TLS

2013-10-30 Thread Saibabu Vallurupalli
Hi All,

I configured James 3 Beta 3 to use SSL/TLS followed the instructions (1)
and (2).

After starting the server , I am able to send receive emails on port 465
using SMTP on SSL/TLS.

If I try to send a mail to another server it is always trying to connect to
the remote server on port 25. The other server also uses port 465 and they
have blocked port 25.
So, my remote delivery is not happening. Is there any other configuration
with in James which uses secured port 465 and send email.

Also, Since I know the Remote server doesn't have port 25 open I can force
to use 465. In a real world scenarion is this not a default configuration
to try sending email on port 25 and then try other secured port like 465.

Please advise.

(1) : http://james.apache.org/server/3/config-ssl-tls.html
(2): http://james.apache.org/server/3/config-smtp-lmtp.html

Thank you,
Sai


Re: [GSOC2013] Bond project success - Congrats Emma!

2013-10-26 Thread Saibabu Vallurupalli
Congratulations Emma. I am sure community is badly needed such UI though
there are other ways to do having such user interface always adds value.

Wish you goodluck.

Thank you,
Sai



On Sat, Oct 26, 2013 at 3:45 AM, Eric Charles  wrote:

> Hi All,
>
> The James community is happy to announce Emma did succeed her GSOC project
> named "Bond". The project goal was to develop a basic administration
> console for James server on top of Hupa Web UI (GWT base).
>
> For more details, read the initial proposal [1], the project code
> repository and info [2] and the final code submission to google [3].
>
> Congrats Emma and Thx to Manolo for his great Mentor job!
>
> Eric
>
> [1] http://www.google-melange.com/**gsoc/proposal/review/google/**
> gsoc2013/emma/10001
> [2] 
> https://code.google.com/a/**apache-extras.org/p/bond/
> [3] http://www.google-melange.com/**gsoc/project/google/gsoc2013/**
> emma/16001
>
> --**--**-
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org
> For additional commands, e-mail: 
> server-user-help@james.apache.**org
>
>


Re: Folder Sync

2013-10-23 Thread Saibabu Vallurupalli
Thank you for the response Eric.

We are using RoudCube as WebMail client.

Regards,
Sai



On Wed, Oct 23, 2013 at 2:33 PM, Eric Charles  wrote:

> If you use IMAP, client will be able to synchronize the folders.
> For e.g. thunderbird, you need to manually ask to read the new folders.
>
>
> On 09/10/13 14:17, Saibabu Vallurupalli wrote:
>
>> Hi,
>>
>> Our James implementation uses different clients. Is there away we can
>> synchronize the folders between different clients?
>>
>> In our WebMail client if we create a folder this is not showing up in
>> Outlook client. For example if I send an email from my Outlook I can see
>> it
>> in sent folder of Outlook but not in my WebMail client.
>>
>> Is this configuration possible? Can someone give ideas on how you have
>> implemented?
>>
>> Thank you,
>> Sai
>>
>>


Folder Sync

2013-10-09 Thread Saibabu Vallurupalli
Hi,

Our James implementation uses different clients. Is there away we can
synchronize the folders between different clients?

In our WebMail client if we create a folder this is not showing up in
Outlook client. For example if I send an email from my Outlook I can see it
in sent folder of Outlook but not in my WebMail client.

Is this configuration possible? Can someone give ideas on how you have
implemented?

Thank you,
Sai


Re: Database Mail repository

2013-02-23 Thread Saibabu Vallurupalli
Hey,

Yes, body and header values are getting stored in BLOB. When you retrive
them you get actual values (readable content).

Thanks,
Sai


On Sat, Feb 23, 2013 at 1:30 AM, seyoum tesfay  wrote:

> Hi Saibabu,
>
> I understand now. I can see the columns James_Mail.Mail_Bytes and
> James_Mail.Header_Bytes. The value in these columns is given in something
> like [BLOB - 76B]
> But I was expecting the value to such columns to be exact textual value
> (like header value or body of email message). So, is the body and header
> values getting stored in just [BLOB-...] values?
>
> regards,
>
>
>
> *Seyoum T*.
>
>
>
> On Fri, Feb 22, 2013 at 1:37 PM, Saibabu Vallurupalli <
> saibabu.vallurupa...@gmail.com> wrote:
>
> > Hi Seyoum,
> >
> > What Eric means is Message is of type Blob and you can find this in table
> > JAMES_MAIL column MAIL_BYTES and MAIL_HEADER will have all email header
> > content.
> >
> > Hope this helps.
> >
> > Thanks,
> > Sai
> >
> >
> > On Fri, Feb 22, 2013 at 3:32 AM, seyoum tesfay 
> > wrote:
> >
> > > Hi Eric,
> > >
> > > Thank you for your reply but there is no MESSAGE.BLOB column in the
> > tables
> > > created by James server 3.0-beta4. There is no table called Message in
> > the
> > > tables.
> > >
> > > regards,
> > >
> > >
> > > *Seyoum T*.
> > >
> > >
> > >
> > > On Thu, Feb 21, 2013 at 3:26 PM, Eric Charles  wrote:
> > >
> > > > Hi,
> > > > Look at MESSAGE.BLOB for the body of the mail.
> > > > Thx, Eric
> > > >
> > > >
> > > > On 21/02/2013 05:53, seyoum tesfay wrote:
> > > >
> > > >> Hello,
> > > >>
> > > >> I am using James server 3.0-beta4 with MySql database as the mail
> and
> > > user
> > > >> repository. James users different table to store the mail and user
> > > >> information in the database such as james_user, james_domain,
> > > james_mail,
> > > >> james_mailbox, james_mail_property, etc.
> > > >>
> > > >> So, my question is where exactly is the actual mail message getting
> > > >> stored?
> > > >> the james_mail table stores metadata about the mail. But I couldn't
> > find
> > > >> where and how the user mails are getting stored.
> > > >>
> > > >> regards,
> > > >>
> > > >> *Seyoum T*.
> > > >>
> > > >>
> > > >
> > --**--**-
> > > > To unsubscribe, e-mail: server-user-unsubscribe@james.**apache.org<
> > > server-user-unsubscr...@james.apache.org>
> > > > For additional commands, e-mail: server-user-help@james.apache.
> **org<
> > > server-user-h...@james.apache.org>
> > > >
> > > >
> > >
> >
>


Re: Database Mail repository

2013-02-22 Thread Saibabu Vallurupalli
Hi Seyoum,

What Eric means is Message is of type Blob and you can find this in table
JAMES_MAIL column MAIL_BYTES and MAIL_HEADER will have all email header
content.

Hope this helps.

Thanks,
Sai


On Fri, Feb 22, 2013 at 3:32 AM, seyoum tesfay  wrote:

> Hi Eric,
>
> Thank you for your reply but there is no MESSAGE.BLOB column in the tables
> created by James server 3.0-beta4. There is no table called Message in the
> tables.
>
> regards,
>
>
> *Seyoum T*.
>
>
>
> On Thu, Feb 21, 2013 at 3:26 PM, Eric Charles  wrote:
>
> > Hi,
> > Look at MESSAGE.BLOB for the body of the mail.
> > Thx, Eric
> >
> >
> > On 21/02/2013 05:53, seyoum tesfay wrote:
> >
> >> Hello,
> >>
> >> I am using James server 3.0-beta4 with MySql database as the mail and
> user
> >> repository. James users different table to store the mail and user
> >> information in the database such as james_user, james_domain,
> james_mail,
> >> james_mailbox, james_mail_property, etc.
> >>
> >> So, my question is where exactly is the actual mail message getting
> >> stored?
> >> the james_mail table stores metadata about the mail. But I couldn't find
> >> where and how the user mails are getting stored.
> >>
> >> regards,
> >>
> >> *Seyoum T*.
> >>
> >>
> > --**--**-
> > To unsubscribe, e-mail: server-user-unsubscribe@james.**apache.org<
> server-user-unsubscr...@james.apache.org>
> > For additional commands, e-mail: server-user-help@james.apache.**org<
> server-user-h...@james.apache.org>
> >
> >
>


Re: SSL/TLS usage with James 3.0-beta4

2013-02-13 Thread Saibabu Vallurupalli
Eric,

So, do we need to modify smtpserver-template.conf to smtpserver.xml in
beta4?
I was under impression we need to rename the file as smtpserver.conf :-(

Thanks,
Sai


On Wed, Feb 13, 2013 at 7:11 AM, Eric Charles  wrote:

> Hi,
>
> smtpserver-ssl.conf is not read.
> You must put your confis in smtpserver.xml.
>
> Thx, Eric
>
>
> On 13/02/2013 11:51, seyoum tesfay wrote:
>
>> Hi Eric,
>> I have added another config file called smtpserver-ssl.conf and made
>> the necessary entries there.The original smtpserver.conf file is for
>> the plain smtp configuration from my previous working configuration
>> and is not changed.
>>
>> After restarting james, I am trying to test it from simple JavaMail
>> client program with the following properties set:
>>
>> final String SSL_FACTORY = "javax.net.ssl.**SSLSocketFactory";
>>  Properties props = System.getProperties();
>>
>>  props.setProperty("mail.smtp.**ssl.enable", "true");
>>  props.setProperty("mail.smtp.**ssl.required", "true");
>>  props.setProperty("mail.smtp.**starttls.enable", "true");
>>  props.setProperty("mail.smtp.**starttls.required", "true");
>>  props.setProperty("mail.smtp.**socketFactory.class",
>> SSL_FACTORY);
>>  props.setProperty("mail.smtp.**socketFactory.port", "465");
>>  props.setProperty("mail.smtp.**socketFactory.fallback",
>> "false");
>>
>> props.setProperty("mail.smtp.**host", "localhost");
>> //...code for sending mail
>>
>> But I am getting the following exception after running.
>>
>> Exception
>> javax.mail.MessagingException: Could not connect to SMTP host:
>> localhost, port: 465;
>>nested exception is:
>>  java.net.ConnectException: Connection refused: connect
>>  at com.sun.mail.smtp.**SMTPTransport.openServer(**
>> SMTPTransport.java:1706)
>>  at com.sun.mail.smtp.**SMTPTransport.protocolConnect(**
>> SMTPTransport.java:525)
>>  at javax.mail.Service.connect(**Service.java:291)
>>  at javax.mail.Service.connect(**Service.java:172)
>> .
>>
>> I am still quite not sure how to enable ssl/tls with james server and
>> create client programs for testing SMTPS, POP3S or IMAPS.
>>
>> regards,
>>
>> On 2/12/13, Eric Charles  wrote:
>>
>>> Hi,
>>> The logs should not change.
>>> Are you sure you point your mail client to the ssl socket?
>>> If you want more logs, raise the SMTP level to DEBUG in log4j.properties.
>>>
>>> Thx, Eric
>>>
>>>
>>> On 12/02/2013 14:01, seyoum tesfay wrote:
>>>
 Hi,

 I am using James 3.0-beta4 and I want to use SSL/TLS for sending and
 receiving emails with SMTPS, POP3S and IMAPS. I have gone through the
 james
 manual on [1] and created the necessary keystore file. I have edited the
 configuration files to include the >>> startTLS="true">
 entry with appropriate values.
 After restaring the James server, nothing related to SSL/TLS is
 happening.
 For instance, the log during the server startup doesn't show any thing
 related to SMTPS or so. And I have started to send and read mails and
 it's
 just using the plain SMTP and POP3.
 So, what do I need to do to make sure that I have properly configured
 SSL/TLS with James server 3.0-beta4?

 [1]. 
 http://james.apache.org/**server/3/config-ssl-tls.html


 *Seyoum T*.


>>> --**--**
>>> -
>>> To unsubscribe, e-mail: 
>>> server-user-unsubscribe@james.**apache.org
>>> For additional commands, e-mail: 
>>> server-user-help@james.apache.**org
>>>
>>>
>>>
>>
>>
> --**--**-
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org
> For additional commands, e-mail: 
> server-user-help@james.apache.**org
>
>


Re: Message Notifications

2012-11-14 Thread Saibabu Vallurupalli
Hi Eric,

Thank you for providing information about matcher.
Can you please give some details about Message Disposition Notifications?
The requirement we have is depending on the MDN status the sent folder
email should get status updated. If MDN is success, sent folder should have
that email status showing as success. If the MDN status is Failure in sent
folder that email status should have Failure.

Any information on this approach will be great.

Thank you,
Sai




On Wed, Nov 14, 2012 at 2:51 AM, Eric Charles  wrote:

> Hi Sai,
>
> The general information for matchers can be read on [1] and [2].
> Thx,
> Eric
>
> [1] 
> http://james.apache.org/**server/3/dev-extend-matcher.**html<http://james.apache.org/server/3/dev-extend-matcher.html>
> [2] 
> http://james.apache.org/**server/3/dev-provided-**matchers.html<http://james.apache.org/server/3/dev-provided-matchers.html>
>
>
>
> On 13/11/2012 17:20, Saibabu Vallurupalli wrote:
>
>> Hi All,
>>
>> I have this requirement to check the message coming in (Inbound) to Apache
>> James and check if the message is a disposition notification (Delivered
>> successfully, Failed to Deliver) route this to sent folder instead of
>> responding to sender as an acknowledgement to Inbox.
>> When MDN routed to sent folder it should match the original sent email and
>> update its status to failed/success.
>>
>> Now, I am planning to write a matcher to read the Inbound message. Where
>> can I get more information about matchers and if someone has already
>> implemented in James please let me know the approach you have considered
>> for this functionality.
>>
>> Thank you very much in advance.
>>
>> Thanks,
>> Sai
>>
>>
> --**--**-
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org
> For additional commands, e-mail: 
> server-user-help@james.apache.**org
>
>


Re: Loda balancing james 3

2012-10-23 Thread Saibabu Vallurupalli
Hi Daniele,

I copied this email to developer forums as well. My understanding of Apache
James is, there is no built in capability to do load balancing/clustering.
You need to reply on a load balance out side of Apache James and manager
traffic routing to different instances of Apache James pointing to same
database and configurations.

Eric,
Please correct me if I am wrong.

Thank you,
Sai



On Tue, Oct 23, 2012 at 3:38 PM, daniele185 wrote:

>
> Hi,
> I would like to know how to configure James 3 to have more instances of
> apache james server, for the load balancing or Fail-Safe of the pop3 and
> smtp services.
> Thanks.
> Daniele
> --
> View this message in context:
> http://old.nabble.com/Loda-balancing-james-3-tp34593381p34593381.html
> Sent from the James - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Re: Clustering James 2.3

2012-10-12 Thread Saibabu Vallurupalli
I think the approach you should consider is build James code and deploy in
a server which supports clustering.

Is this an option Eric?

Thank you,
Sai


On Fri, Oct 12, 2012 at 7:20 AM, Eric Charles wrote:

> What you describe is not possible.
> James 2.3 has no clustering option, nor James 3 a this time.
>
> Thx, Eric
>
>
> On 12/10/2012 09:57, Hamster wrote:
>
>> Hi lads,
>>
>> Will I hit any issues if I setup two James instances to access same file
>> based repository?
>>
>> Is it possible that outgoing emails will be set twice(under heavy load)?
>>
>> If it is not possible - if I switch to db based repositories - will it
>> solve my problems?
>>
>> Thanks for any help.
>> Cheers
>>
>>
> --
> @echarles
>
> --**--**-
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org
> For additional commands, e-mail: 
> server-user-help@james.apache.**org
>
>


Re: Running Apache James inside an Application Server

2012-08-02 Thread Saibabu Vallurupalli
Wilko,

WAR file is the one you need to deploy in your Application Server. Take the
WAR file in deploy in your JBoss server as a Web project. You should take
care of some library issues through before you get this running
successfully.

Thanks,
Sai

On Thu, Aug 2, 2012 at 7:54 AM, Oley, Wilko  wrote:

> Hi,
>
> I am currently trying to get apache-james-3.0-beta4 running in an
> Application Server. I found the sources in the repository and build the
> "app" on myself. I noticed that a WAR is assembled by the maven build.
>
> For which purpose is this WAR File? Is it meant to be running, as it is,
> in Jboss or any other Application Server?
>
> Thank you very much in advance!
>
> Wilko
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Re: Special Characters that should be excluded in the LDAP

2012-04-02 Thread Saibabu Vallurupalli
Hi Cindy,

I have limited knowledge on Apache James so I could be wrong but this is
more of an LDAP question. Open LDAP follows RFC2253 specification.

You can find the list of special characters here for common names:
http://www.rfc-editor.org/rfc/rfc2253.txt

Thanks,
Sai


On Mon, Apr 2, 2012 at 4:05 PM, Atherton, Cynthia wrote:

> Recently, we found an issue where James would fail to build the users list
> for an LDAP connection when James encountered a comma in the common name in
> the LDAP. Is there a known list of special characters that will cause
> problems when James attempts to connect or access the LDAP?
>
> Thanks,
>
> Cindy Atherton
> Software Engineer
> Harris Healthcare Solutions
> (321) 914-1406
>
>
>
>


Re: Cannot add files to classpath

2012-03-30 Thread Saibabu Vallurupalli
There are two ways you can start your James server. If you are setting
CLASSPATH_PREFIX you should be able to start server by using run.sh script:
#./run.sh &
If you are starting James using james script #./james start this uses
../conf/wrapper.conf you need to set the classpath with all your JAR.

Thanks, Sai


On Fri, Mar 30, 2012 at 3:30 PM, paul_k  wrote:

>
> I am using 3.0 beta3. After creating custom matchers I was trying to add my
> jars to the classpath, by setting CLASSPATH_PREFIX in setenv.sh or directly
> in the shell (and exporting). No luck, wrapper.log indicates that my
> classes
> are not found. What is the correct way of adding jars to james classpath? I
> am running on SUSE linux.
> Thanks.
> --
> View this message in context:
> http://old.nabble.com/Cannot-add-files-to-classpath-tp33544926p33544926.html
> Sent from the James - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>


Re: Subject line encrypted

2012-01-06 Thread Saibabu Vallurupalli
Thank you Eric and Alex.
We are not planning to have any other explicit encryption or any other
server. Planning to stick to tomcat and use SSL/TLS configurations.

Thank you,
Sai


On Fri, Jan 6, 2012 at 1:24 PM, Eric Charles  wrote:

> Hi,
>
> If you use/configure wire encryption with SSL (or TLS), all the traffic is
> encrypted. This is done once on the server and client sides, and the user
> does not have to take any further action when sending his email.
>
> However, if you ask your user to explicitely encrypt his mail each time
> with s/mime of PGP, only the content will be encrypted (the recipients, the
> subject and all the other mail headers will remain unencrypted).
>
> Thx,
> Eric
>
>
>
> On 06/01/12 17:03, Saibabu Vallurupalli wrote:
>
>> Hi Team,
>>
>> My understanding is when we are sending email during the transport the
>> email is Encrypted and also the Subject line. Can you please confirm me if
>> my understanding is correct?
>> If not is there any configuration that I need to set to make the transport
>> more secured.
>>
>> Thank you,
>> Sai
>>
>>
> --
> eric | http://about.echarles.net | @echarles
>
> --**--**-
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org
> For additional commands, e-mail: 
> server-user-help@james.apache.**org
>
>


Subject line encrypted

2012-01-06 Thread Saibabu Vallurupalli
Hi Team,

My understanding is when we are sending email during the transport the
email is Encrypted and also the Subject line. Can you please confirm me if
my understanding is correct?
If not is there any configuration that I need to set to make the transport
more secured.

Thank you,
Sai


Re: Domain name change

2011-12-15 Thread Saibabu Vallurupalli
Hi Eric,

Thank you for your response. Vanessa and I will try to do this in one of
our local boxes. Yes, we still have issues with maildir copy functionality
on Windows machines.

We will use your option 1 and option 2.

BTW: We heard that there is another way to use alias names for a domain. Is
it true? If we can use an alias name this simplifies our problem. Please
advise.

Thanks, Sai


On Thu, Dec 15, 2011 at 2:04 PM, Eric Charles  wrote:

> Hi Pao and Sai,
>
> With virtualhosting enabled, the username contain the domain which makes
> the things a bit more tricky.
>
> There are 2 manual options:
>
> 1. update the tables content (JAMES_DOMAIN.DOMAIN, JAMES_MAILBOX.NAME and
> also SUBSCRIPTION.MAILBOX) via a script (sql, or jdbc)
>
> 2. Copy to maildir, rename the ./var/store/maildir/your-**domain to
> ./var/store/maildir/your-new-**domain, reimport into a new database (with
> previous creation of needed users and domain).
>
> If I had to do it, I would copy via the maildir copy, but I think to
> remember from previous posts you had issues to restore. Is this still the
> case?
>
> Btw, the emails that users will find in their folders will not have a
> to-address that will map the the newly defined domain.
>
> Thx,
> Eric
>
>
> On 14/12/11 22:15, Saibabu Vallurupalli wrote:
>
>> Hi Eric, Also run JPA.
>>
>> On Wed, Dec 14, 2011 at 3:09 PM, Pao, Vanessa  wrote:
>>
>>  Hi,
>>> I work with Sai and was asked to answer the first question.
>>>
>>> We have the following settings in the following files:
>>> useresrepositorymysql.xml->  enableVirtualHosting set to true
>>> usersrepository23.xml ->  enableVirtualHosting set to false
>>> usersrepository.xml ->  enableVirtualHosting set to true
>>>
>>> I don't know when each xml file is used by Apache James, so I included
>>> them all.
>>>
>>> Thanks,
>>>
>>> Vanessa Pao
>>>
>>> -Original Message-
>>> From: Eric Charles [mailto:e...@apache.org]
>>> Sent: Wednesday, December 14, 2011 1:28 PM
>>> To: James Users List
>>> Subject: Re: Domain name change
>>>
>>> Hi Sai,
>>>
>>> Domain rename function is not available.
>>>
>>> Do you run with enableVirtualHosting set to true?
>>> Do you run jpa mailbox?
>>>
>>> Depending on these, manual operation could be done to get a successful
>>> domain rename.
>>>
>>> Thx,
>>>
>>> Eric
>>>
>>> On 12/12/11 22:15, Saibabu Vallurupalli wrote:
>>>
>>>> Hi All,
>>>>
>>>> Greetings.
>>>> I have posted the question below to James Users list now adding
>>>>
>>> Developers
>>>
>>>> list to get more inside of it.
>>>>
>>>> We have to rename the domain in our existing James server and Is there
>>>>
>>> away
>>>
>>>> to handle this scenario by porting the old emails to new domain etc.,
>>>>
>>>> Please advise.
>>>>
>>>> Thanks,
>>>> Sai
>>>>
>>>>
>>>>
>>>> On Wed, Dec 7, 2011 at 1:53 PM, Saibabu Vallurupalli<
>>>> saibabu.vallurupa...@gmail.com**>   wrote:
>>>>
>>>>  Hi All,
>>>>>
>>>>> Greetings.
>>>>>
>>>>> We have a new requirements due to organizational changes the domain
>>>>> name
>>>>> needs to be changed. Not sure how easy this is? Can someone point me to
>>>>>
>>>> the
>>>
>>>> right documentation or configuration to change the domain name and
>>>>>
>>>> still my
>>>
>>>> old emails gets converted without any issues?
>>>>>
>>>>> Please advise.
>>>>>
>>>>> Thanks, Sai
>>>>>
>>>>>
>>>>
>>> --
>>> Eric
>>> http://about.echarles.net
>>>
>>> --**--**
>>> -
>>> To unsubscribe, e-mail: 
>>> server-user-unsubscribe@james.**apache.org
>>> For additional commands, e-mail: 
>>> server-user-help@james.apache.**org
>>>
>>>
>>> --**--**
>>> -
>>> To unsubscribe, e-mail: 
>>> server-user-unsubscribe@james.**apache.org
>>> For additional commands, e-mail: 
>>> server-user-help@james.apache.**org
>>>
>>>
>>>
>>
> --
> Eric
> http://about.echarles.net
>
> --**--**-
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org
> For additional commands, e-mail: 
> server-user-help@james.apache.**org
>
>


Re: Domain name change

2011-12-14 Thread Saibabu Vallurupalli
Hi Eric, Also run JPA.

On Wed, Dec 14, 2011 at 3:09 PM, Pao, Vanessa  wrote:

> Hi,
> I work with Sai and was asked to answer the first question.
>
> We have the following settings in the following files:
> useresrepositorymysql.xml-> enableVirtualHosting set to true
> usersrepository23.xml -> enableVirtualHosting set to false
> usersrepository.xml -> enableVirtualHosting set to true
>
> I don't know when each xml file is used by Apache James, so I included
> them all.
>
> Thanks,
>
> Vanessa Pao
>
> -Original Message-
> From: Eric Charles [mailto:e...@apache.org]
> Sent: Wednesday, December 14, 2011 1:28 PM
> To: James Users List
> Subject: Re: Domain name change
>
> Hi Sai,
>
> Domain rename function is not available.
>
> Do you run with enableVirtualHosting set to true?
> Do you run jpa mailbox?
>
> Depending on these, manual operation could be done to get a successful
> domain rename.
>
> Thx,
>
> Eric
>
> On 12/12/11 22:15, Saibabu Vallurupalli wrote:
> > Hi All,
> >
> > Greetings.
> > I have posted the question below to James Users list now adding
> Developers
> > list to get more inside of it.
> >
> > We have to rename the domain in our existing James server and Is there
> away
> > to handle this scenario by porting the old emails to new domain etc.,
> >
> > Please advise.
> >
> > Thanks,
> > Sai
> >
> >
> >
> > On Wed, Dec 7, 2011 at 1:53 PM, Saibabu Vallurupalli<
> > saibabu.vallurupa...@gmail.com>  wrote:
> >
> >> Hi All,
> >>
> >> Greetings.
> >>
> >> We have a new requirements due to organizational changes the domain name
> >> needs to be changed. Not sure how easy this is? Can someone point me to
> the
> >> right documentation or configuration to change the domain name and
> still my
> >> old emails gets converted without any issues?
> >>
> >> Please advise.
> >>
> >> Thanks, Sai
> >>
> >
>
> --
> Eric
> http://about.echarles.net
>
> -
> 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: Domain name change

2011-12-12 Thread Saibabu Vallurupalli
Hi All,

Greetings.
I have posted the question below to James Users list now adding Developers
list to get more inside of it.

We have to rename the domain in our existing James server and Is there away
to handle this scenario by porting the old emails to new domain etc.,

Please advise.

Thanks,
Sai



On Wed, Dec 7, 2011 at 1:53 PM, Saibabu Vallurupalli <
saibabu.vallurupa...@gmail.com> wrote:

> Hi All,
>
> Greetings.
>
> We have a new requirements due to organizational changes the domain name
> needs to be changed. Not sure how easy this is? Can someone point me to the
> right documentation or configuration to change the domain name and still my
> old emails gets converted without any issues?
>
> Please advise.
>
> Thanks, Sai
>


Re: FW: Unable to move emails between folders with Encryption turned - on

2011-09-04 Thread Saibabu Vallurupalli
Hi Eric,

Can you point me to the fix? I wanted to integrate this fix to my 3.0-Beta2
version and test. The reason is we are ready to move forward with 3.0-Beta2
after all rounds of testing with our other products and updating it to
current might skip the dates. For now, I can take the fix and integrate to
3.0-Beta2 (Locally) for our needs and upgrade to current later.

Please point me to this source file in the trunk.

Thanks,
Sai


On Sun, Sep 4, 2011 at 11:32 AM, Eric Charles wrote:

> There was always an additional character at the end of all mail bodies.
> I retested with trunk, and now everything is fine.
>
> Thx Norman.
>
> Eric
>
> On 04/09/11 06:03, Norman Maurer wrote:
>
>> What you mean ?
>>
>> Bye,
>> Norman
>>
>>
>> 2011/9/4 Eric 
>> Charles
>> >:
>>
>>> Did you also see the a ')' at the end of the body?
>>> Eric
>>>
>>> On 04/09/11 01:57, Norman Maurer wrote:
>>>
>>>>
>>>> Just fixed.. now the separator is included again..
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>>
>>>> 2011/9/2 Eric 
>>>> Charles
>>>> >:
>>>>
>>>>>
>>>>> Hi Sai,
>>>>>
>>>>> It seems that your fix made the encryption work. Thx again!
>>>>>
>>>>> However, mail bodies are not more displayed by mail clients, although
>>>>> the
>>>>> source of the mail contains the body.
>>>>>
>>>>> The mail format seems strange: no separation before the body, a )
>>>>> ending
>>>>> the
>>>>> body.
>>>>>
>>>>> This is even the case if no encryption is used.
>>>>>
>>>>> I have to double-check all this, but I'm running out-of-time today, and
>>>>> tomorrow will also be a busy day. I hope to come back to it this
>>>>> weekend.
>>>>>
>>>>> Thx.
>>>>>
>>>>>
>>>>> On 01/09/11 08:39, Saibabu Vallurupalli wrote:
>>>>>
>>>>>>
>>>>>> What I have got it - mailbox-store 0.3 and mailbox-jpa from trunk do
>>>>>> you
>>>>>> think there is some inconsistency between these two modules? The
>>>>>> reason
>>>>>> behind is Norman integrated Encryption code to trunck so I have to
>>>>>> build
>>>>>> JPA
>>>>>> from Trunk and use it. Rest of the modules all are part of James 3.0
>>>>>> beta
>>>>>> 2
>>>>>> release.
>>>>>>
>>>>>> Thanks, Sai
>>>>>>
>>>>>> On Thu, Sep 1, 2011 at 11:19 AM, Eric
>>>>>> Charles
>>>>>> >wrote:
>>>>>>
>>>>>>  ouch, not sure if move is broken or not...
>>>>>>> Need more time to review this.
>>>>>>> Eric
>>>>>>>
>>>>>>>
>>>>>>> On 01/09/11 08:13, Eric Charles wrote:
>>>>>>>
>>>>>>>  Running with encryption gives issue while moving mails (at least
>>>>>>>> getting
>>>>>>>> the content of a folder after mails has been moved to it).
>>>>>>>>
>>>>>>>> I tried the same with standard (no encryption) and it gives the same
>>>>>>>> issue.
>>>>>>>>
>>>>>>>> There are no excpetion in log.
>>>>>>>>
>>>>>>>> The good news is that it's unrelated to encryption.
>>>>>>>> The bad news is that mail move seems broken in trunk.
>>>>>>>>
>>>>>>>> Sai, Can you reproduce this also (without encryption)?
>>>>>>>>
>>>>>>>> Thx.
>>>>>>>>
>>>>>>>> On 01/09/11 07:45, Eric Charles wrote:
>>>>>>>>
>>>>>>>>  Hi Sai,
>>>>>>>>> I took a little time to further look.
>>>>>>>>> No need to change code to return JPAEncryptedMessage.
>>>>>>>>> OpenJPAMailboxManager does it depending on the constructor called
>>>>>>>>> by
>>>>>>>>> spring (with a boolean or wit

Re: FW: Unable to move emails between folders with Encryption turned - on

2011-09-01 Thread Saibabu Vallurupalli
Hi Eric,

Thank you for all your support.

Since we have very tight dead lines, I integrated the Encryption code to
3.0-Beta2 and tested. It is working fine.

For sure we look forward to upgrade in future. It is 100% confirm that issue
is not with Email Encryption.

Thanks,
Sai


On Thu, Sep 1, 2011 at 7:16 PM, Eric Charles wrote:

> Hi Sai,
>
> It seems that your fix made the encryption work. Thx again!
>
> However, mail bodies are not more displayed by mail clients, although the
> source of the mail contains the body.
>
> The mail format seems strange: no separation before the body, a ) ending
> the body.
>
> This is even the case if no encryption is used.
>
> I have to double-check all this, but I'm running out-of-time today, and
> tomorrow will also be a busy day. I hope to come back to it this weekend.
>
> Thx.
>
>
>
> On 01/09/11 08:39, Saibabu Vallurupalli wrote:
>
>> What I have got it - mailbox-store 0.3 and mailbox-jpa from trunk do you
>> think there is some inconsistency between these two modules? The reason
>> behind is Norman integrated Encryption code to trunck so I have to build
>> JPA
>> from Trunk and use it. Rest of the modules all are part of James 3.0 beta
>> 2
>> release.
>>
>> Thanks, Sai
>>
>> On Thu, Sep 1, 2011 at 11:19 AM, Eric Charles> gmail.com >wrote:
>>
>>  ouch, not sure if move is broken or not...
>>> Need more time to review this.
>>> Eric
>>>
>>>
>>> On 01/09/11 08:13, Eric Charles wrote:
>>>
>>>  Running with encryption gives issue while moving mails (at least getting
>>>> the content of a folder after mails has been moved to it).
>>>>
>>>> I tried the same with standard (no encryption) and it gives the same
>>>> issue.
>>>>
>>>> There are no excpetion in log.
>>>>
>>>> The good news is that it's unrelated to encryption.
>>>> The bad news is that mail move seems broken in trunk.
>>>>
>>>> Sai, Can you reproduce this also (without encryption)?
>>>>
>>>> Thx.
>>>>
>>>> On 01/09/11 07:45, Eric Charles wrote:
>>>>
>>>>  Hi Sai,
>>>>> I took a little time to further look.
>>>>> No need to change code to return JPAEncryptedMessage.
>>>>> OpenJPAMailboxManager does it depending on the constructor called by
>>>>> spring (with a boolean or with a string).
>>>>>
>>>>> I have now changed
>>>>> https://svn.apache.org/repos/asf/james/mailbox/trunk/**<https://svn.apache.org/repos/**asf/james/mailbox/trunk/**>
>>>>> spring/src/main/resources/META-INF/org/apache/james/**
>>>>> spring-mailbox-jpa.xml>>>> james/mailbox/trunk/spring/**src/main/resources/META-INF/**
>>>>> org/apache/james/spring-**mailbox-jpa.xml<https://svn.apache.org/repos/asf/james/mailbox/trunk/spring/src/main/resources/META-INF/org/apache/james/spring-mailbox-jpa.xml>
>>>>> >
>>>>>
>>>>>
>>>>> to test and I'll report back the result.
>>>>>
>>>>> Thx.
>>>>>
>>>>> On 01/09/11 03:50, Eric Charles wrote:
>>>>>
>>>>>  Hi Sai,
>>>>>>
>>>>>> When you run the tests in the mailbox-jpa module, there are no
>>>>>> persistence.xml, but all the JPA properties are set via code.
>>>>>>
>>>>>> If you look at the 3 classes in
>>>>>> http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/**<http://svn.apache.org/repos/**asf/james/mailbox/trunk/jpa/**>
>>>>>> src/test/java/org/apache/james/mailbox/jpa/<http://svn.**
>>>>>> apache.org/repos/asf/james/**mailbox/trunk/jpa/src/test/**
>>>>>> java/org/apache/james/mailbox/**jpa/<http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/src/test/java/org/apache/james/mailbox/jpa/>
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> , you will see for example
>>>>>>
>>>>>> properties.put("openjpa.MetaDataFactory", "jpa(Types=" +
>>>>>> JPAMailbox.class.getName() + ";" +
>>>>>> AbstractJPAMessage.class.getName() + ";" +
>>>>>> JPAMessage.class.getName() + ";" +
>>>>>> JPAProperty.class.getName() + ";" +
>>&g

Re: FW: Unable to move emails between folders with Encryption turned - on

2011-09-01 Thread Saibabu Vallurupalli
I just retested one more time to make sure it works without Encryption and
it is working fine. Problem is with Encrypted code and store module I guess.

Thanks, Sai.

On Thu, Sep 1, 2011 at 11:13 AM, Eric Charles wrote:

> Running with encryption gives issue while moving mails (at least getting
> the content of a folder after mails has been moved to it).
>
> I tried the same with standard (no encryption) and it gives the same issue.
>
> There are no excpetion in log.
>
> The good news is that it's unrelated to encryption.
> The bad news is that mail move seems broken in trunk.
>
> Sai, Can you reproduce this also (without encryption)?
>
> Thx.
>
>
> On 01/09/11 07:45, Eric Charles wrote:
>
>> Hi Sai,
>> I took a little time to further look.
>> No need to change code to return JPAEncryptedMessage.
>> OpenJPAMailboxManager does it depending on the constructor called by
>> spring (with a boolean or with a string).
>>
>> I have now changed
>> https://svn.apache.org/repos/**asf/james/mailbox/trunk/**
>> spring/src/main/resources/**META-INF/org/apache/james/**
>> spring-mailbox-jpa.xml<https://svn.apache.org/repos/asf/james/mailbox/trunk/spring/src/main/resources/META-INF/org/apache/james/spring-mailbox-jpa.xml>
>> to test and I'll report back the result.
>>
>> Thx.
>>
>> On 01/09/11 03:50, Eric Charles wrote:
>>
>>> Hi Sai,
>>>
>>> When you run the tests in the mailbox-jpa module, there are no
>>> persistence.xml, but all the JPA properties are set via code.
>>>
>>> If you look at the 3 classes in
>>> http://svn.apache.org/repos/**asf/james/mailbox/trunk/jpa/**
>>> src/test/java/org/apache/**james/mailbox/jpa/<http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/src/test/java/org/apache/james/mailbox/jpa/>
>>>
>>> , you will see for example
>>>
>>> properties.put("openjpa.**MetaDataFactory", "jpa(Types=" +
>>> JPAMailbox.class.getName() + ";" +
>>> AbstractJPAMessage.class.**getName() + ";" +
>>> JPAMessage.class.getName() + ";" +
>>> JPAProperty.class.getName() + ";" +
>>> JPAUserFlag.class.getName() + ";" +
>>> JPASubscription.class.getName(**) + ")");
>>>
>>> This is where you have to change to add the JPAEncryptedMessage.
>>>
>>>
>>>
>>> When you run the server as a whole, you need to build the app module.
>>>
>>> In this case, the file to change is
>>> http://svn.apache.org/repos/**asf/james/app/trunk/src/main/**
>>> config/james/META-INF/**persistence.xml<http://svn.apache.org/repos/asf/james/app/trunk/src/main/config/james/META-INF/persistence.xml>
>>>
>>>
>>>
>>> You will do 'mvn package', and the generated zip/tar.gz will contain
>>> that file.
>>>
>>>
>>> I hope you can make it, even if I am a bit late for you work night.
>>>
>>> Thx.
>>>
>>>
>>> On 31/08/11 18:53, Saibabu Vallurupalli wrote:
>>>
>>>> Hi Eric,
>>>>
>>>> O.k.. I agree with you. But I need little bit more details regarding
>>>> what
>>>> should I do for the path. Since, I have the environment I can try this
>>>> locally and also deploy in our Test environment and perform quick
>>>> regression
>>>> testing.
>>>>
>>>> Path:
>>>> JPAMainboxManager.java is using JPAMessage object I need to modify the
>>>> code
>>>> to use JPAEncryptedMessage and return the same.
>>>>
>>>> I am trying this locally and the tests failed, Now my understanding is I
>>>> also need to change persistence.xml file. Since, I am not 100% used to
>>>> the
>>>> development environment I need to know how Maven uses this file and from
>>>> where this file will be picked?
>>>>
>>>> Can you please give me some insight about the path? I will be working
>>>> tonight to get this patch out. If you could help me I really
>>>> appreciate you.
>>>> I am in USA EST timezone.
>>>>
>>>> Thanks,
>>>> Sai
>>>>
>>>>
>>>> On Wed, Aug 31, 2011 at 7:27 PM, Eric
>>>> Charles
>>>> >wrote:
>>>>
>>>>  Hi Sai,
>>>>>
>>>>> If you change

Re: FW: Unable to move emails between folders with Encryption turned - on

2011-09-01 Thread Saibabu Vallurupalli
What I have got it - mailbox-store 0.3 and mailbox-jpa from trunk do you
think there is some inconsistency between these two modules? The reason
behind is Norman integrated Encryption code to trunck so I have to build JPA
from Trunk and use it. Rest of the modules all are part of James 3.0 beta 2
release.

Thanks, Sai

On Thu, Sep 1, 2011 at 11:19 AM, Eric Charles wrote:

> ouch, not sure if move is broken or not...
> Need more time to review this.
> Eric
>
>
> On 01/09/11 08:13, Eric Charles wrote:
>
>> Running with encryption gives issue while moving mails (at least getting
>> the content of a folder after mails has been moved to it).
>>
>> I tried the same with standard (no encryption) and it gives the same
>> issue.
>>
>> There are no excpetion in log.
>>
>> The good news is that it's unrelated to encryption.
>> The bad news is that mail move seems broken in trunk.
>>
>> Sai, Can you reproduce this also (without encryption)?
>>
>> Thx.
>>
>> On 01/09/11 07:45, Eric Charles wrote:
>>
>>> Hi Sai,
>>> I took a little time to further look.
>>> No need to change code to return JPAEncryptedMessage.
>>> OpenJPAMailboxManager does it depending on the constructor called by
>>> spring (with a boolean or with a string).
>>>
>>> I have now changed
>>> https://svn.apache.org/repos/**asf/james/mailbox/trunk/**
>>> spring/src/main/resources/**META-INF/org/apache/james/**
>>> spring-mailbox-jpa.xml<https://svn.apache.org/repos/asf/james/mailbox/trunk/spring/src/main/resources/META-INF/org/apache/james/spring-mailbox-jpa.xml>
>>>
>>> to test and I'll report back the result.
>>>
>>> Thx.
>>>
>>> On 01/09/11 03:50, Eric Charles wrote:
>>>
>>>> Hi Sai,
>>>>
>>>> When you run the tests in the mailbox-jpa module, there are no
>>>> persistence.xml, but all the JPA properties are set via code.
>>>>
>>>> If you look at the 3 classes in
>>>> http://svn.apache.org/repos/**asf/james/mailbox/trunk/jpa/**
>>>> src/test/java/org/apache/**james/mailbox/jpa/<http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/src/test/java/org/apache/james/mailbox/jpa/>
>>>>
>>>>
>>>> , you will see for example
>>>>
>>>> properties.put("openjpa.**MetaDataFactory", "jpa(Types=" +
>>>> JPAMailbox.class.getName() + ";" +
>>>> AbstractJPAMessage.class.**getName() + ";" +
>>>> JPAMessage.class.getName() + ";" +
>>>> JPAProperty.class.getName() + ";" +
>>>> JPAUserFlag.class.getName() + ";" +
>>>> JPASubscription.class.getName(**) + ")");
>>>>
>>>> This is where you have to change to add the JPAEncryptedMessage.
>>>>
>>>>
>>>>
>>>> When you run the server as a whole, you need to build the app module.
>>>>
>>>> In this case, the file to change is
>>>> http://svn.apache.org/repos/**asf/james/app/trunk/src/main/**
>>>> config/james/META-INF/**persistence.xml<http://svn.apache.org/repos/asf/james/app/trunk/src/main/config/james/META-INF/persistence.xml>
>>>>
>>>>
>>>>
>>>>
>>>> You will do 'mvn package', and the generated zip/tar.gz will contain
>>>> that file.
>>>>
>>>>
>>>> I hope you can make it, even if I am a bit late for you work night.
>>>>
>>>> Thx.
>>>>
>>>>
>>>> On 31/08/11 18:53, Saibabu Vallurupalli wrote:
>>>>
>>>>> Hi Eric,
>>>>>
>>>>> O.k.. I agree with you. But I need little bit more details regarding
>>>>> what
>>>>> should I do for the path. Since, I have the environment I can try this
>>>>> locally and also deploy in our Test environment and perform quick
>>>>> regression
>>>>> testing.
>>>>>
>>>>> Path:
>>>>> JPAMainboxManager.java is using JPAMessage object I need to modify the
>>>>> code
>>>>> to use JPAEncryptedMessage and return the same.
>>>>>
>>>>> I am trying this locally and the tests failed, Now my understanding
>>>>> is I
>>>>> also need to change persistence.xml file. Since, I am not 100% used to
>>>>> the
>>>>> development environment I n

Re: FW: Unable to move emails between folders with Encryption turned - on

2011-09-01 Thread Saibabu Vallurupalli
Without Encryption it works for us.

On Thu, Sep 1, 2011 at 11:19 AM, Eric Charles wrote:

> ouch, not sure if move is broken or not...
> Need more time to review this.
> Eric
>
>
> On 01/09/11 08:13, Eric Charles wrote:
>
>> Running with encryption gives issue while moving mails (at least getting
>> the content of a folder after mails has been moved to it).
>>
>> I tried the same with standard (no encryption) and it gives the same
>> issue.
>>
>> There are no excpetion in log.
>>
>> The good news is that it's unrelated to encryption.
>> The bad news is that mail move seems broken in trunk.
>>
>> Sai, Can you reproduce this also (without encryption)?
>>
>> Thx.
>>
>> On 01/09/11 07:45, Eric Charles wrote:
>>
>>> Hi Sai,
>>> I took a little time to further look.
>>> No need to change code to return JPAEncryptedMessage.
>>> OpenJPAMailboxManager does it depending on the constructor called by
>>> spring (with a boolean or with a string).
>>>
>>> I have now changed
>>> https://svn.apache.org/repos/**asf/james/mailbox/trunk/**
>>> spring/src/main/resources/**META-INF/org/apache/james/**
>>> spring-mailbox-jpa.xml<https://svn.apache.org/repos/asf/james/mailbox/trunk/spring/src/main/resources/META-INF/org/apache/james/spring-mailbox-jpa.xml>
>>>
>>> to test and I'll report back the result.
>>>
>>> Thx.
>>>
>>> On 01/09/11 03:50, Eric Charles wrote:
>>>
>>>> Hi Sai,
>>>>
>>>> When you run the tests in the mailbox-jpa module, there are no
>>>> persistence.xml, but all the JPA properties are set via code.
>>>>
>>>> If you look at the 3 classes in
>>>> http://svn.apache.org/repos/**asf/james/mailbox/trunk/jpa/**
>>>> src/test/java/org/apache/**james/mailbox/jpa/<http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/src/test/java/org/apache/james/mailbox/jpa/>
>>>>
>>>>
>>>> , you will see for example
>>>>
>>>> properties.put("openjpa.**MetaDataFactory", "jpa(Types=" +
>>>> JPAMailbox.class.getName() + ";" +
>>>> AbstractJPAMessage.class.**getName() + ";" +
>>>> JPAMessage.class.getName() + ";" +
>>>> JPAProperty.class.getName() + ";" +
>>>> JPAUserFlag.class.getName() + ";" +
>>>> JPASubscription.class.getName(**) + ")");
>>>>
>>>> This is where you have to change to add the JPAEncryptedMessage.
>>>>
>>>>
>>>>
>>>> When you run the server as a whole, you need to build the app module.
>>>>
>>>> In this case, the file to change is
>>>> http://svn.apache.org/repos/**asf/james/app/trunk/src/main/**
>>>> config/james/META-INF/**persistence.xml<http://svn.apache.org/repos/asf/james/app/trunk/src/main/config/james/META-INF/persistence.xml>
>>>>
>>>>
>>>>
>>>>
>>>> You will do 'mvn package', and the generated zip/tar.gz will contain
>>>> that file.
>>>>
>>>>
>>>> I hope you can make it, even if I am a bit late for you work night.
>>>>
>>>> Thx.
>>>>
>>>>
>>>> On 31/08/11 18:53, Saibabu Vallurupalli wrote:
>>>>
>>>>> Hi Eric,
>>>>>
>>>>> O.k.. I agree with you. But I need little bit more details regarding
>>>>> what
>>>>> should I do for the path. Since, I have the environment I can try this
>>>>> locally and also deploy in our Test environment and perform quick
>>>>> regression
>>>>> testing.
>>>>>
>>>>> Path:
>>>>> JPAMainboxManager.java is using JPAMessage object I need to modify the
>>>>> code
>>>>> to use JPAEncryptedMessage and return the same.
>>>>>
>>>>> I am trying this locally and the tests failed, Now my understanding
>>>>> is I
>>>>> also need to change persistence.xml file. Since, I am not 100% used to
>>>>> the
>>>>> development environment I need to know how Maven uses this file and
>>>>> from
>>>>> where this file will be picked?
>>>>>
>>>>> Can you please give me some insight about the path? I will be working
>>>>> tonight to get t