Re: Use the James blog to communicate about your uses of James
Hi Benoit, Congratulations! I think this is very helpful for the project and I think also for Linagora. Eugen On 07.06.2018 12:06, Benoit Tellier wrote: > Hi everyone, > > We took the decision, @Linagora, to be communicating more on our work on > the James project. We consider the best place to do so is to do it via a > blog post, for it to be more durable. > > Hence, you can be reading about May results and June plans: > http://james.apache.org/james/update/2018/06/06/linagora-june-nl.html > > Furthermore, anybody using James is encouraged to do some posts on the > same medium about your uses of James and work on it. To do so add a file > in this folder [1] then open a Pull Request on this repository [2]. > > Best regards, > > Benoit Tellier > > [1] https://github.com/apache/james-project/tree/master/src/homepage/_posts > [2] https://github.com/apache/james-project > > - > 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: Question
Hello David, I think you need to look at the JVM and not James specifically. James uses Netty 3.10 for the smtp (protocols project) and you should check the documentation for that. I suspect all you need to do is setup some JVM system properties like in the other link. I hope this helps, https://github.com/apache/james-project/blob/master/pom.xml https://blogs.oracle.com/java-platform-group/jdk-8-will-use-tls-12-as-default https://stackoverflow.com/questions/34609384/how-to-set-tls1-2-version-in-java On 12.04.2018 22:03, David Dale wrote: > Hello, > > I am using the latest James server and I only need it as an SMTP server. > However, I need to enforce TLS 1.2 on all deliveries or fail delivery. Is > there a way to do this using James? > > > David - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Linagora's James newsletter - March 2017
Hi Benoit, I am refering to memory consumption. Do you have any metrics on that? Regards, On 16.03.2017 17:32, Benoit Tellier wrote: > Hi, > > Thanks for your warm reply. > > What do you can "memory metrics"? > > Le 16/03/2017 à 19:10, Ioan Eugen Stan a écrit : >> Hello Benoit, >> >> Congratulations on all of your hard work and thenk you very much for >> this post and all the work you and Linagora are doing with James. >> >> Thank you for finally making James 3 a reality. >> >> How about memory metrics? >> >> Regards, >> >> On 16.03.2017 12:45, Benoit Tellier wrote: >>> Hello, >>> >>> It seems like that I can not share here the html version of this newsletter. >>> >>> Thus, I cross-posted the newsletter on Medium. When we will have the new >>> version of the website, this newsletter will deserve to be on the website. >>> >>> https://medium.com/p/8192f4522e4d >>> >>> Cheers, >>> >>> Benoit Tellier >>> >>> - >>> 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 > - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Linagora's James newsletter - March 2017
Hello Benoit, Congratulations on all of your hard work and thenk you very much for this post and all the work you and Linagora are doing with James. Thank you for finally making James 3 a reality. How about memory metrics? Regards, On 16.03.2017 12:45, Benoit Tellier wrote: > Hello, > > It seems like that I can not share here the html version of this newsletter. > > Thus, I cross-posted the newsletter on Medium. When we will have the new > version of the website, this newsletter will deserve to be on the website. > > https://medium.com/p/8192f4522e4d > > Cheers, > > Benoit Tellier > > - > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: JAMES website?
I just read an email from Eric Charles. He moved the website to gitpubsub and was working on publishing it. Maybe this is the reason? On 25.09.2016 19:39, Jerry Malcolm wrote: > Is the JAMES website getting some work done? I get a 404 on > http://james.apache.org/ > > > - > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: apache-james project status?
Thanks for the time to make the videos. There are a lot of things needed at James, one of the biggest is a new Release. Hopefully I'll be able to dedicate some time to this next year and push James 3 out. Regards, 2014-10-21 4:09 GMT+03:00 Robert Munn robert.d.m...@gmail.com: OK, new videos up on Youtube. https://www.youtube.com/watch?v=g9ROGgazRWc - building from source with CLI https://www.youtube.com/watch?v=QinbImsKpGI - building from source with Eclipse On Oct 20, 2014, at 2:55 PM, Robert Munn robert.d.m...@gmail.com wrote: Thanks for your feedback. I will make new videos today with the updated instructions.I will also note the updated svn repository location based on the re-direct. Looks like the viewvc folder is meant only for browsing. Robert On Oct 20, 2014, at 10:13 AM, Mike lepore michael.lepore.w...@gmail.com wrote: I googled the error, and it looks Eric Charles suggested a while back to replace package with install. That seemed to work for me as well, and after that, I am now able use the maven package goal as well. I still have to come up to speed on Maven mvn clean install -DskipTests=true thanks, Mike Lepore On 10/20/2014 12:24 PM, Mike lepore wrote: Robert, thanks for help. Admittedly, I don't have too much experience with Maven. I've always just used Apache Ant by itself to make builds like this. So, this is helping me get more familiar with Maven I gave the build procedure a try, but had a couple of problems. I tried it on IBM linux, which is a dist of Red Hat RHEL, and also tried it on Ubuntu 14.04. Both builds failed, but IBM Linux also forced me to use a different repository for the svn checkout: IBM: [mike@oc0742025407 james]$ svn checkout http://svn.apache.org/viewvc/james/server/trunk/ svn: Repository moved permanently to 'http://svn.apache.org/repos/asf//james/server/trunk'; please relocate [mike@oc0742025407 james]$ uname -a Linux oc0742025407.ibm.com 2.6.32-431.30.1.el6.x86_64 #1 SMP Wed Jul 30 14:44:26 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux So I used the other repository as the command suggested which appears t be a slightly different version. However, when running maven I got this: [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.3.0:add-features-to-repo (add-features-to-repo) on project james-karaf-distribution: Error populating repository: /home/mike/.m2/repository/org/apache/james/karaf/james-karaf-features/3.0.0-beta5-SNAPSHOT/james-karaf-features-3.0.0-beta5-SNAPSHOT-features.xml (No such file or directory) - [Help 1] Ubuntu: the svn command you provided went ok, but still got the same mvn error [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.3.0:add-features-to-repo (add-features-to-repo) on project james-karaf-distribution: Error populating repository: /home/mike/.m2/repository/org/apache/james/karaf/james-karaf-features/3.0.0-beta5-SNAPSHOT/james-karaf-features-3.0.0-beta5-SNAPSHOT-features.xml (No such file or directory) - [Help 1] looks like there's probably a little more setup I need to do? Or maybe just a difference between mac and linux? -- Ioan Eugen Stan 0720 898 747 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Integrating web application login with James login
Yep, that's the right way to go. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Where to get the latest James server?
Hello, The latest release is available from [1] or from official website and is from feb 2013. You could get the sources and build the very latest from SVN [2] or Git mirror [3] [1] http://apache.org/dist/james/apache-james/3.0beta4/ [2] http://svn.apache.org/repos/asf/james/ [3] http://git.apache.org/ [4] http://github.com/apache/james - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: SSL/TLS imported third party cert
Another way is to use a proxy. I think Apache or Nginx can fit the bill and you can also use it as a load-balancer. [1] http://nginx.org/en/docs/mail/ngx_mail_ssl_module.html - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Exception while logging from mailet
Hello Prabu, I think this [1] explains it very well. By the way, why do you use James 2? If you're starting new I recommend you use James 3. Regards, [1] http://docs.oracle.com/javase/6/docs/api/java/lang/AbstractMethodError.html - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Generic problem for all mime4j people...
Hello Dennis, The correct URL for downloading is [1] . This should be updated on SVN in the download.html page [2]. Unfortunately I don't have the time right now. Patches are welcomed. Cheers, [1] http://apache.org/dist/james/ [2] http://svn.apache.org/repos/asf/james/site/trunk/www/ - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: SpamAssassin with James
Hi, It's not related to James. I personally don't have any expertise here. Sorry and good luck. Cheers, - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
[ANNOUNCE] Apache James Mailbox 0.5
Hello, The Apache James project [1] is pleased to announce the release of version 0.5 of Apache James Mailbox, a library providing a flexible Mailbox storage accessible by mail protocols (IMAP4, POP3, SMTP,...) and other protocols. It can also be embedded into your application to implement for example the Mailbox Pattern. The mailbox library supports different persistence mechanisms: MailDir, SQL Database via Apache OpenJPA, JCR (Java Content Repository based on Apache Jackrabbit) and Apache HBase. Apache James Mailbox can be downloaded from the following page [2]. Binary artifacts are published on Maven Central under Group Id org.apache.james . Please, remember to check the signature and fingerprint of the downloaded files. You can find the release notes next to the source artifacts [3]. Have a great day, Ioan-Eugen, on behalf of tha Apache James community [1] http://james.apache.org [2] http://www.apache.org/dist/james/mailbox/0.5/ [3] http://www.apache.org/dist/james/mailbox/0.5/RELEASE-NOTES.txt - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Trunk build fails
Hello Johnny, I've upgraded to the newly released mailbox-0.5. It should build now. https://issues.apache.org/jira/browse/JAMES-1488 Cheers, -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Incoming DKIM verification
Hello Martin, We currently have a shortage of man power. It would be great if we got some help with documentation/examples. Would you consider contributing some examples to James? Cheers, -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Incoming DKIM verification
Great, It is and it depends on your at what level do you wish to get involved. Basically any help is appreciated: documentation, code, user support on the mailing list. If you are interested in contributing code, join the server dev mailing list [1]. You can find more about contributing here: [2], [3]. People who commit code constantly are usually proposed as committers. You can view issues for James at [4] Since you don't have commit right yet, just raise an issue in JIRA and I will commit it for you. If you have further questions, please ask. So what do you wish/can do? [1] http://james.apache.org/mail.html [2] http://james.apache.org/contribute.html [3] http://james.apache.org/guidelines.html [4] https://issues.apache.org/jira/browse/JAMES -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Broken sample config links
Hello Martin, It's fixed in commit http://svn.apache.org/r1453103 . I will update the website as soon as I remember how to do it. Thanks for reporting, -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Native libraries
Yes, it's fixed in beta5 https://issues.apache.org/jira/browse/JAMES-1451 On Fri, Feb 22, 2013 at 12:53 AM, Zach Cox zcox...@gmail.com wrote: I think I may have solved my own problem. In james 3.0-beta4 at the bottom of wrapper.conf is this line: wrapper.java.library.path=../lib That seems to override the previous wrapper.java.library.path.1 and wrapper.java.library.path.2 properties. I commented out that line and now the jvm can indeed find the native libs. Thanks, Zach On Thu, Feb 21, 2013 at 4:43 PM, Zach Cox zcox...@gmail.com wrote: Hi - our James app needs to use a native library through JNI (JMagick). I'm having trouble setting java.library.path. It seems like I should just set this in wrapper.conf: wrapper.java.library.path.2=/usr/lib However I still get this when trying to call the JNI methods: java.lang.UnsatisfiedLinkError: no JMagick in java.library.path I've also tried this, but get the same exception: wrapper.java.library.path.append_system_path=true Is there some other way to set java.library.path? Thanks, Zach -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James 3 exception loop
Hello Johnny, Thanks for reporting the problem. I've created an issue to track new information regarding it [1]. Do you think you have some time to write a test for this issue? It would mean a lot and we could commit it faster. [1] https://issues.apache.org/jira/browse/JAMES-1473 Thanks, -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Apache James 3.0 Beta5 (Trunk) class not found
Hello Johnny, Snapshot repos should be enabled and pointing to the right direction by default. You may experience issues with proxies, especially inside companies network. You can check the effective pom for them with $ mvn help:effective-pom Cheers, On Fri, Jan 11, 2013 at 1:02 AM, Johnny Minty joh...@minty.net.nz wrote: HI, Just following on from my previous post what entries do I need to add to my pom to be able to address the SNAPSHOT repositories? From: joh...@minty.net.nz To: server-user@james.apache.org Subject: RE: Apache James 3.0 Beta5 (Trunk) class not found Date: Fri, 11 Jan 2013 11:04:36 +1300 Hi Eric, Done and done this time I was able to start JAMES successfully once I change the following section in the POM. From : parent artifactIdjames-project/artifactId groupIdorg.apache.james/groupId version1.8.2-SNAPSHOT/version relativePath/ /parent To : parent artifactIdjames-project/artifactId groupIdorg.apache.james/groupId version1.8.1/version relativePath/ /parent Date: Thu, 10 Jan 2013 06:27:24 + From: e...@apache.org To: server-user@james.apache.org Subject: Re: Apache James 3.0 Beta5 (Trunk) class not found Thx for reporting. Should be solved with https://issues.apache.org/jira/browse/JAMES-1467 Could you svn up and try again? Thx, Eric On 09/01/2013 22:37, Johnny Minty wrote: Hi Guys, I'm trying to use the source @ http://svn.apache.org/repos/asf/james/server/trunk everything is great it compiles perfect however when I try to launch the mail server using sh /bin/run.sh I receive : java.lang.ClassNotFoundException: org.apache.james.transport.matches.All After tracking the class down it appears this exists in the org.apache.james.mailet.standard.matchers.All. So I updated the mailet configuration to reference the full path of org.apache.james.mailet.standard.matchers.All now I receive : java.lang.ClassNotFoundException: org.apache.james.transport.mailets.PostmasterAlias Which appears to be the same issue which would lead me to believe the org.apache.james.transport.matches and org.apache.james.transport.mailets has been re factored to org.apache.james.mailet.standard.* Please advise the best way around this issue? Is there a patch available? Kind regards, Johnny Minty - 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Where are MessageManager IdRanges built from?
Hello Martin, Looking at the stack trace it looks like the range is built inside AbstractMailboxProcessor#messageRange [1] . The processing path depends on the IMAP command you issue. Hope this helps, [1] https://github.com/apache/james-protocols/blob/trunk/imap/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java On Wed, Jan 2, 2013 at 6:03 AM, Martin Hewitt martin.hew...@gmail.com wrote: Hi all, I'm working on a custom MessageManager and I've reached the point where I'm fetching individual messages from my mailboxes. I did have the UIDs indexed from 0, and that worked fine on Sparrow and over Telnet, but sent Mac Mail into a tailspin. Assuming that IMAP should always be indexed from 1, I adjusted all my counters to work with 1-indexed UIDs, but, when I run ? FETCH 1 uid I get: ? BAD FETCH failed. Invalid messageset. In my console output I have: DEBUG 03:56:26,506 | james.imapserver | ID=1390464457 Fetch failed for mailbox #private:test@localhost:INBOX because of invalid sequence-set [Lorg.apache.james.imap.api.message.IdRange;@359172db org.apache.james.mailbox.exception.MessageRangeException: No message found with msn -1 I've put the full stack trace here: https://gist.github.com/4432055 So my question is: where does the IdRange in the debug message get built? How can I control what it thinks is a valid range? Thanks, Martin -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Where are MessageManager IdRanges built from?
Hello Martin, Compliments are always appreciated :). We are doing our best to make James better and welcome new contributors. Cheers, On Wed, Jan 2, 2013 at 7:57 PM, Martin Hewitt martin.hew...@gmail.com wrote: Hi Eric, Ioan, Yup, I checked out the imap and protocol modules from SVN and dug around - there was a mismatch between my counters. I must say, James is great fun to build on, and the accessibility of all the code is incredibly useful. Martin On 2 January 2013 17:12, Eric Charles e...@apache.org wrote: Don't forget james maintain an internal mapping between UID - MSN (so MSN is not UID) Thx, Eric On 02/01/2013 15:40, Ioan Eugen Stan wrote: Hello Martin, Looking at the stack trace it looks like the range is built inside AbstractMailboxProcessor#**messageRange [1] . The processing path depends on the IMAP command you issue. Hope this helps, [1] https://github.com/apache/**james-protocols/blob/trunk/** imap/src/main/java/org/apache/**james/imap/processor/** AbstractMailboxProcessor.javahttps://github.com/apache/james-protocols/blob/trunk/imap/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java On Wed, Jan 2, 2013 at 6:03 AM, Martin Hewitt martin.hew...@gmail.com wrote: Hi all, I'm working on a custom MessageManager and I've reached the point where I'm fetching individual messages from my mailboxes. I did have the UIDs indexed from 0, and that worked fine on Sparrow and over Telnet, but sent Mac Mail into a tailspin. Assuming that IMAP should always be indexed from 1, I adjusted all my counters to work with 1-indexed UIDs, but, when I run ? FETCH 1 uid I get: ? BAD FETCH failed. Invalid messageset. In my console output I have: DEBUG 03:56:26,506 | james.imapserver | ID=1390464457 Fetch failed for mailbox #private:test@localhost:INBOX because of invalid sequence-set [Lorg.apache.james.imap.api.**message.IdRange;@359172db org.apache.james.mailbox.**exception.**MessageRangeException: No message found with msn -1 I've put the full stack trace here: https://gist.github.com/**4432055https://gist.github.com/4432055 So my question is: where does the IdRange in the debug message get built? How can I control what it thinks is a valid range? Thanks, Martin --**--**- To unsubscribe, e-mail: server-user-unsubscribe@james.**apache.orgserver-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-help@james.apache.**orgserver-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
[ANNOUNCE] Apache Mailet 2.5.0 available
29 December 2012, Apache James™ Mailet 2.5.0 available The Apache James PMC is pleased to announce the release of Apache Mailet 2.5.0. A mailet is an email processing agent described by the Mailet API. Mailets are both flexible and powerful. So they can be used for a very wide range of purposes. The James email server factors most of it's mail processing functionality into mailets. These mailets can be used independently in any compatible Mailet container. Apache Mailet 2.5.0 is the latest release and can be downloaded from Maven Central or [1] This release is a major release that merges all the Mailet projects (API, Base, Crypto, etc) under the same project. The project uses a unique release version for all artifacts and more consistent naming. All artifacts are also OSGi bundles. Apache Mailet 2.5.0 Release Highlights: * Unique version (2.5.0) across all Mailet artifacts: API, Base, Crypto, Standard, AI * Consistent naming: all artifact names use 'apache-mailet' prefix * All artifacts are OSGi bundles * Moved to Java 1.6 * Bug fixes and improvements Note: The Apache Software Foundation uses an extensive mirroring network for distributing releases. It is possible that the mirror you are using may not have replicated the release yet. If that is the case, please try another mirror. This also goes for Maven access. Happy holidays and happy email processing, Apache James developers [1] http://james.apache.org/download.cgi#Apache_Mailet -- Ioan Eugen Stan - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Building James in Eclipse
Hello Martin, Thanks for pointing that out. I'm not an Eclipse user but I always thought Maven was a preferred way to import a project in Eclipse. Cheers, On Thu, Dec 27, 2012 at 2:58 PM, Martin Hewitt martin.hew...@gmail.com wrote: Hi all, I've just been through the process of configuring Eclipse to build and run James, following the instructions here: http://james.apache.org/server/3/dev-build.html The only addition I needed to get it working was to download open-jpa from http://openjpa.apache.org/downloads.html and add in -javaagent:/path/to/extracted/binary/openjpa-2.1.0.jar to my Eclipse Run Configuration in the VM arguments field. Not sure if this is unique to my configuration or not, but it might be worth adding it into the dev-build page above, if this is the right way to do it! Martin -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: OSGI app/mailet integration question
Hello Nate, There has been some work done on James towards moving it to OSGi. I'm working on making James run inside Karaf[1] but it's very early work, not all components/dependencies are OSGi ready yet. It will take some time. I'm not sure I fully understand what you are trying to achieve. Are you going for a full James-Karaf integration or run James as a separate service and integrate over sockets? I think integrating over sockets would be faster right now (I'm new to OSGi). I could use a helping hand in moving James-Karaf forward and I think it would benefit you too. I know James structure and could use help with OSGi. Care to help? [1] https://github.com/ieugen/james-karaf On Fri, Nov 30, 2012 at 7:45 PM, nate.mor...@conceptaware.com wrote: Hey all, I'm developing an OSGI-based application where we'd like to tie in mail sending/receiving for our app users. Ultimately, I'd like to have a mailet that has access to to the OSGI services on our Karaf instance, but I'm not sure how to go about it. Also, we're going to need some way to keep users and domains synchronized between our app and James. Should I try to extend and run James as an OSGI service or is there a simpler way to tie things together? Thanks! Nate Morrow Concept Aware, Inc. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: OSGI app/mailet integration question
Hi, On Fri, Nov 30, 2012 at 9:23 PM, nate.mor...@conceptaware.com wrote: Basically, we're doing some early research into being an email provider for our application users. So there are a couple of things I'm trying to figure out: 1. How do I tie together James authentication and our application authentication so I don't have to manage two user sets? You should look into james server [1] for that - go over the data-* stuff - it's responsible for user and domain management. We have API + implementations for LDAP, DB, file, etc. James App is a project that binds all James Project email components into the email server. It's Spring based. You can get a sense of how things work together by looking at the beans. 2. How do I hook a mailet into our application for things like email notifications? I was hoping that the mailet could use our existing OSGi services, but we may be able to get around it some other way -- like sockets or maybe polling from the application instead of pushing from the mail server. Mailets are designed to do email processing into a mailet container, so the easiest thing would be to expose a service from your app via plain socket/HTTP. It would be nice to run in Karaf, but I think a lot of my problems can be solved just by getting a better understanding for how James works. And I'd definitely be interested in helping, but I'm not sure how much time I can give. What do you mostly need help with? Making things OSGi ready and checking to see if they are ok (package exports/imports and all of that). Any help would be appreciated, even issue reporting/testing. Also see if [2] is of any help. Cheers, [1] http://svn.apache.org/repos/asf/james/server/trunk/ [2] http://berlinbuzzwords.de/sessions/apache-james-more-emails-cloud -Original Message- From: Ioan Eugen Stan stan.ieu...@gmail.com Sent: Friday, November 30, 2012 1:17pm To: James Users List server-user@james.apache.org Subject: Re: OSGI app/mailet integration question Hello Nate, There has been some work done on James towards moving it to OSGi. I'm working on making James run inside Karaf[1] but it's very early work, not all components/dependencies are OSGi ready yet. It will take some time. I'm not sure I fully understand what you are trying to achieve. Are you going for a full James-Karaf integration or run James as a separate service and integrate over sockets? I think integrating over sockets would be faster right now (I'm new to OSGi). I could use a helping hand in moving James-Karaf forward and I think it would benefit you too. I know James structure and could use help with OSGi. Care to help? [1] https://github.com/ieugen/james-karaf On Fri, Nov 30, 2012 at 7:45 PM, nate.mor...@conceptaware.com wrote: Hey all, I'm developing an OSGI-based application where we'd like to tie in mail sending/receiving for our app users. Ultimately, I'd like to have a mailet that has access to to the OSGI services on our Karaf instance, but I'm not sure how to go about it. Also, we're going to need some way to keep users and domains synchronized between our app and James. Should I try to extend and run James as an OSGI service or is there a simpler way to tie things together? Thanks! Nate Morrow Concept Aware, Inc. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - 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 -- Ioan Eugen Stan / CTO / http://axemblr.com - 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 Architecture
Hello Jason, James has a modular design and you should be able to do that. I gave a presentation about James and maybe you can find more stuff there [1]. You should be able to write a Mailbox implementation (see James Mailbox [2] sub-project) that accesses your custom back-end. Then you can plug in your custom implementation inside James App [3] (Spring based app that assembles a full working server from all components). I think James App can give you a good overview of how components interact since all main components are exposed as beans. I'm working on making James available in Apache Karaf [4] but that's a long way from being usable right now. Good luck and please share more about your use-case. Cheers, [1] http://berlinbuzzwords.de/sessions/apache-james-more-emails-cloud [2] http://james.apache.org/mailbox/index.html [3] http://svn.apache.org/repos/asf/james/app/trunk/ [4] https://github.com/ieugen/james-karaf On Fri, Nov 30, 2012 at 12:51 AM, Trieu, Jason T trieu.ja...@con-way.com wrote: Hi all, We have a custom message/mail repository that we need to provide IMAP4 access to. From my research so far, James seems to be a good candidate for us to use as the IMAP4 layer with us providing the implementation to handle translation between IMAP4 and our repository. Is my understanding correct? Can James be customized for this? Also I am trying to understand the architecture of James 3.0 but I can't read the current Technical Architecture diagram (http://james.apache.org/server/3/dev.html). The font is just too small even when I enlarge the diagram. Is there other sources where I can get this document? Any other sources for information on James 3.0? I am trying to get some good understanding of the design/architecture to figure out where to drop in our custom classes. Thanks in advance. Jason. -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: How to retrieve UID of a message during send message
Hello Rajesh, I think the short answer is you can't. Bellow you can find my arguments. On Wikipedia [1] you can find a summary of what an UID is supposed to be and do. In James, UID's are unique and unique per mailbox and are generated as an increasing sequence. You can see the code that generates them in [2],[3],[4]. They are generated whenever an operation is attempted on a mailbox (new message, copy, etc) so you can't control the value that get's assigned to it. If the operation fails the UID will be skipped so you can have missing UIDs. Hope this helps, [1] http://en.wikipedia.org/wiki/Message-ID [2] https://github.com/apache/james-mailbox/blob/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAUidProvider.java [3] https://github.com/apache/james-mailbox/blob/trunk/memory/src/main/java/org/apache/james/mailbox/inmemory/mail/InMemoryUidProvider.java [4] https://github.com/apache/james-mailbox/blob/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRUidProvider.java On Thu, Nov 22, 2012 at 4:55 PM, Rajesh Bansal rajesh.ban...@telemune.net wrote: Hi Eric, Is it possible thru any type of mailet configuration to send same message with same UID to another user. From which I can retrieve with POP access. Rajesh Bansal, Project Manager Telemune Software Solutions Pvt. Ltd. M. No. +91-9871791327 www.telemune.net From: Rajesh Bansal [mailto:rajesh.ban...@telemune.net] Sent: Thursday, November 22, 2012 8:20 PM To: 'Eric Charles'; 'server-user@james.apache.org' Subject: How to retrieve UID of a message during send message Hi Friends, I am sending a mail to a user (JAMES Server) by using SMTP. I want to retrieve UID of this mail from james so that I can provide to my IMAP client for fetching this particular UID message. Its very much urgent for me. Can you guys please help me in this regard. How I can make this happen. I am new to James and Java . So kindly help me with little more detail. I will really appreciate your help. Thanks in advance. Rajesh Bansal, Project Manager Telemune Software Solutions Pvt. Ltd. M. No. +91-9871791327 www.telemune.net -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: cannot get message's date
Hello, It looks to me like the code is from java mail. So better try asking on the java-mail list or try using mime4j for parsing: http://james.apache.org/mime4j/usage.html Good luck, On Fri, Nov 2, 2012 at 5:52 AM, daijun 16360...@qq.com wrote: I'm trying to get a message's date. But both getSenderDate() and getReceivedDate() are null. My code is as below: Store store = session.getStore(); store.connect(); Folder root = store.getDefaultFolder(); Folder inbox = root.getFolder(inbox); inbox.open(Folder.READ_WRITE); Message[] msgs = inbox.getMessages(); I can getFrom and getContent... but when I was trying to get date by: msgs[i].getSentDate() msg[i].getReceivedDate() I got null. How can I get the message's date? Thank you in advance. Best Regards D. J. -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James slowness
Hello Joshua, James Mailbox is implemented with JPA and has a small OpenJpa wrapper. http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/openjpa/ I think you may implement a wrapper that uses hibernate or another JPA provider with better wupportfor your DBA. Please consider contributing it back to James if you chose to do so. Good luck, On Tue, Oct 9, 2012 at 3:52 PM, Joshua Armstrong jarmstr...@centonline.com wrote: On 10/9/2012 7:26 AM, Joshua Armstrong wrote: On 10/9/2012 3:26 AM, Eric Charles wrote: So you are stressing directly the james-mailbox project, not the james-server? If you persist in a database via JPA, set openjpa.streaming to true in james-database.properties, it will put less pressure on the memory and gc, especially for large attachments. Thx, Eric snip Actually, both but that's a good tip. I'll flip that flag and see what our nightly build gives us tomorrow. Just checked. openjpa.streaming is not supported on SolidDB because it doesn't really support BLOBs directly. SolidDB is a weird hybrid memory/disk database engine so its handling of things is a bit different from most RDBMS systems. :/ -- Joshua M. Armstrong Software Engineer Centurion, Inc. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James slowness
That's great Joshua, I believe James to be a great project but not enough active devs (me included). Good luck and please share also your success stories. Cheers, On Wed, Oct 10, 2012 at 3:31 PM, Joshua Armstrong jarmstr...@centonline.com wrote: On 10/10/2012 4:45 AM, Ioan Eugen Stan wrote: Hello Joshua, James Mailbox is implemented with JPA and has a small OpenJpa wrapper. http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/openjpa/ I think you may implement a wrapper that uses hibernate or another JPA provider with better wupportfor your DBA. Please consider contributing it back to James if you chose to do so. Good luck, snip I would like to contribute back to James and, in fact, the ability to continue participating in the open source community was one of the sticking points of my employment contract. If/when we finish this project (November?) and do our final review, I will submit a request to the VP to allow us to open source some parts of it, the James changes/additions included (we have indeed made some changes to suit our unique situation to use James as a backend for a distributed voicemail system). -- Joshua M. Armstrong Software Engineer Centurion, Inc. -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James slowness
Apache James trunk has jetm monitoring implemented as a profile. I think you can use it to find out more about what is happening. You can checkout trunk app project from [1] and build it with $mvn clean install -Pwith-jetm . Jetm is not that grat as it computes just averages (90% lines are more usefull) but it should get you insight into how much time each method call is taking. You could also add jetm by hand to beta4. It's not that hard. I've wrote an article about it [2] [1] http://svn.apache.org/repos/asf/james/app/ [2] http://ieugen.blogspot.ro/2012/05/jetm-performance-monitoring-for-apache.html [3] http://jetm.void.fm/ Hope this helps, On Mon, Oct 8, 2012 at 5:49 PM, Joshua Armstrong jarmstr...@centonline.com wrote: On 10/8/2012 9:37 AM, Ioan Eugen Stan wrote: Hello Joshua, I don't know what might cause the slowness but could you tell us which version of James are you using and detail your setup a bit more? This could help. Cheers, snip Also, running on J2SE v. 1.6 from Oracle on Windows Server 2003 32 bit, on a VMWare slice. on top of an 8-core server with 16GB of RAM. Not sure what each VM slice is allocated. -- Joshua M. Armstrong Software Engineer Centurion, Inc. -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: S/MIME Encryption?
Hello Matt, Have a look at: http://james.apache.org/mailet/crypto/ http://james.apache.org/mailet/crypto/apidocs/org/apache/james/transport/mailets/smime/package-summary.html https://svn.apache.org/repos/asf/james/mailet/crypto/trunk/ Cheers, On Thu, Sep 27, 2012 at 5:02 PM, Matt Pryor pr...@international-presence.com wrote: Hi there, I'm a new user to James so please be gentle with me. I wondered if anyone could tell me whether there's a mailet out there to encrypt a mail message using S/MIME or is it only signing messages that's supported at present? Many thanks, Matt - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Getting to know James
Hello Aladin, Please see my response below. On Sat, Sep 8, 2012 at 7:27 AM, Aladin Dajani aladin_daj...@hotmail.com wrote: Hello List, WARNING: long-winded description below. I am building a web site that sends emails to users with respect certain items in the application. Users then may respond to the email, which should result in updating the item.To give you an analogy, when you receive a facebook e-mail notification of a post, you may respond to this email with a comment that will be added to the post. From what I read about James, I think the mailet architecture would allow me to write a custom mailet to process inbound email and then contact/run some API against my application to update the item. Also, since my web app runs on Tomcat, I am interested in a mail server that also runs on tomcat . The James download page contains several components, but little in terms of explanation which I should download and how to put them all together. Less so regarding running on Tomcat. I downloaded what appears to be the source tree for building James as a Jar, but when I added this as an eclipse project, there were several compilation errors (e.g. unresolved reference to SocketFactory). First Question: Does James fit the bill for what I just described? Yes, you can use James for that. I recommend you use James 3. Second Question: Where can I find decent documentation describing how the roles of various components and how they fit together and how to deploy James on Tomcat. See this thread and maybe others on the mailing list archive: http://mail-archives.apache.org/mod_mbox/james-server-user/201103.mbox/%3Cop.vsh7qfzz8335lu@localhost%3E See documentation: http://james.apache.org/server/3/index.html Third Question: Is there any documentation for building James in eclipse? This one is kind of old: http://james.apache.org/server/3/dev-build.html , James App is a project that builds the war and the zip available for distribution. It depends on all other artifacts and downloads them from a repository (remote or local). Hope this helps, Thanks... Aladin -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: configure on Ubuntu for port 25
On Thu, Aug 16, 2012 at 11:22 AM, Thufir hawat.thu...@gmail.com wrote: On 08/16/2012 12:49 AM, Eric Charles wrote: use ./run.sh to see any exception. If you don't get back the prompt, James is running. Read the following lines: * We ship in the conf foler template configuration files. * You can override the default configuration : Copy the conf folder any ...-template... you need and update according to your needs. Thx, Eric When I run the james console I see: jvm 1| INFO 01:19:40,316 | james.smtpserver | SMTP Service bound to: 0.0.0.0:25 but cannot find that IP address in smtpserver-template.conf unfortunately. Shouldn't that be 127.0.0.1:25? I also see many 0.0.0.0 IP addresses in that config file. Why aren't they set to localhost? I changed them, but still get that error. Hi Thufir, I'd recommend you read a good network book for a clearer picture. In short: 0.0.0.0 is the ALL network interface, it means James will accept connection on all public interfaces (IP addresses). quick: http://en.wikipedia.org/wiki/0.0.0.0 If you set James to listen to localhost you will not be able to accept connections from other machines. thanks, Thufir - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: hello world
Hi Thufir, James is an email server and can talk SMTP, IMAP, POP3. These are the email protocols used on the internet. Returning to Listing 4, the java client is configured with the host that James runs on, and also the protocol to use (SMTP). The protocol informs the client it must connect to port 25. See [1] and [2] for details and exact description of SMTP. [1] http://en.wikipedia.org/wiki/Smtp [2] http://tools.ietf.org/html/rfc5321 On Wed, Aug 15, 2012 at 6:16 AM, Thufir hawat.thu...@gmail.com wrote: I downloaded James 3, and, wow, there are many JAR's. Looking at: Listing 4. MailClient: Simulating the basic functionality of an e-mail client http://www.ibm.com/developerworks/java/library/j-james1/index.html I surely don't need all those JAR's in my classpath, do I? I only need: import java.io.*; import java.util.*; import javax.mail.*; import javax.mail.internet.*; and then you make session: session = Session.getInstance(props, this); now, nowhere in any of that code do I see connect to James. How do you know that you're connecting to James and not something else? Here is the code that configures java-mail client with James's address, port and the user. POP3 and IMAP are for retrieval, SMTP is for sending. props.put(mail.user, user); props.put(mail.host, host); props.put(mail.debug, debug ? true : false); props.put(mail.store.protocol, pop3); props.put(mail.transport.protocol, smtp); Is James like Apache httpd where you need it always running as a service? Or, can you maybe start (?) James from within MailClient? You need to start and configure James. Please read James User Manual from [3] [3] http://james.apache.org/server/3/quick-start.html thanks, Thufir - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James shell script fails on Solaris
Hello Michael, Which version of James are you using, 2.3 or 3.0beta4? Regards, 2012/8/2 Michael Saladin michael.sala...@adnovum.ch: Hi all, ps -ef is truncated on Solaris to consist of maximal 80 characters, e.g. see: http://stackoverflow.com/questions/4892516/getting-around-truncated-ps Therefore, the james shell script fails on Solaris when james is located in a directory with a too long path, I needed to adapt the james.sh file like this: Instead of this: --- if [ $DIST_OS = macosx ]; then pidtest=`$PSEXE_COMPLEX -p $pid -o command -ww | grep $WRAPPER_CMD | tail -1` else pidtest=`$PSEXE_COMPLEX -p $pid -o args | grep $WRAPPER_CMD | tail -1` fi --- I had to do this: --- if [ $DIST_OS = macosx ]; then pidtest=`$PSEXE_COMPLEX -p $pid -o command -ww | grep $WRAPPER_CMD | tail -1` elif [ $DIST_OS = solaris ]; then pidtest=`$PSEXE_COMPLEX awwx $pid | grep $WRAPPER_CMD | tail -1` else pidtest=`$PSEXE_COMPLEX -p $pid -o args | grep $WRAPPER_CMD | tail -1` fi --- whereas I defined $PSEXE_COMPLEX to be $PSEXE, and in case of Solaris it is /usr/ucb/ps. This works fine for me. Any chance to integrate this into the final product? Best regards Michael here is the diff: saladin@adnws194:~/projects/adnjames/etc/CorrectedJamesScript diff james /share/java/jpository/apache/james/3.0-beta4/bin/james 148d147 PSEXE_COMPLEX=$PSEXE 155d153 PSEXE_COMPLEX=/usr/ucb/ps 373,377c371,373 pidtest=`$PSEXE_COMPLEX -p $pid -o command -ww | grep $WRAPPER_CMD | tail -1` elif [ $DIST_OS = solaris ]; then pidtest=`$PSEXE_COMPLEX awwx $pid | grep $WRAPPER_CMD | tail -1` else pidtest=`$PSEXE_COMPLEX -p $pid -o args | grep $WRAPPER_CMD | tail -1` --- pidtest=`$PSEXE -p $pid -o command -ww | grep $WRAPPER_CMD | tail -1` else pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1` - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Where are the inbox in 3.0
Hi Merve, Port 25 is for SMTP = sending to a recipient. To read you need a client for POP3 or IMAP or directly access the store (which is database, HBase, JCR, etc. ). Chers, 2012/7/17 Merve Temizer mervet2...@gmail.com: Hello, I installed James Server try to telnet localhost 25 ehlo localhost try to send some mail to one user to another but how can i read them? -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: logging code style
Hi, Not sure is off-topic but maybe this could help a bit: - http://stackoverflow.com/questions/2763740/log4j-log-output-of-a-specific-class-to-a-specific-appender - http://stackoverflow.com/questions/1460740/log4j-for-per-class-how-is-precedence-determined Good luck, 2012/7/13 timprepscius timprepsc...@piratemail.se: So I'm running into a set of problems while trying to manipulate the apache james logs. I'm not sure if I'm approaching the solution incorrectly or whether the way you're passing around the session log is going to make things pretty difficult. Basically I need to shut off some logs, and keep others on. But I'm finding that I basically have on/off for entire services. So you know how there are logs for SMTP: StringBuilder infoBuffer = new StringBuilder(256).append(Successfully spooled mail ).append(mail.getName()).append( fro I need to turn off all logs which have identifying information. But. I want to keep some, like for instance, connection from ip. In the future I want to turn these off as well, but I need to know something of what is happening :-) How I was thinking I would do this, is lookup which classes the logs were originating from and then scuttle those classes via log4j. But it seems with the session log being passed around this becomes impossible? So I'm going to have to turn the log4j everything to FATAL and then go in and change the code for all the logs I actually want. Or am I missing something here :-) I probably am. I hope I am actually. I was hoping to keep the code changes to a bare minimum. -tim - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: logging code style
2012/7/13 timprepscius timprepsc...@piratemail.se: Yah, this is exactly what I wanted to do. However I'm not sure this is possible because of session.getLog(); Anyhow, it's no big deal. I'll just put custom static Log log = LogFactory.getLogger(TheClassImIn.class) in the files for which I want logging. Hi, I think it's a good reason for that. I'm too tired to look at the code right now but my guess is to keep the log consistent. Not really sure, tired. Cheers, If in a later design you have the choice of not doing the session.getLog(), perhaps it would be the better choice? (or there is still a chance I am completely missing the boat here) -tim On Jul 13, 2012, at 3:13 PM, Ioan Eugen Stan wrote: Hi, Not sure is off-topic but maybe this could help a bit: - http://stackoverflow.com/questions/2763740/log4j-log-output-of-a-specific-class-to-a-specific-appender - http://stackoverflow.com/questions/1460740/log4j-for-per-class-how-is-precedence-determined Good luck, 2012/7/13 timprepscius timprepsc...@piratemail.se: So I'm running into a set of problems while trying to manipulate the apache james logs. I'm not sure if I'm approaching the solution incorrectly or whether the way you're passing around the session log is going to make things pretty difficult. Basically I need to shut off some logs, and keep others on. But I'm finding that I basically have on/off for entire services. So you know how there are logs for SMTP: StringBuilder infoBuffer = new StringBuilder(256).append(Successfully spooled mail ).append(mail.getName()).append( fro I need to turn off all logs which have identifying information. But. I want to keep some, like for instance, connection from ip. In the future I want to turn these off as well, but I need to know something of what is happening :-) How I was thinking I would do this, is lookup which classes the logs were originating from and then scuttle those classes via log4j. But it seems with the session log being passed around this becomes impossible? So I'm going to have to turn the log4j everything to FATAL and then go in and change the code for all the logs I actually want. Or am I missing something here :-) I probably am. I hope I am actually. I was hoping to keep the code changes to a bare minimum. -tim - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - 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 -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: just wondering when is the next release schedule for?
2012/7/12 timprepscius timprepsc...@piratemail.se: I'm doing this: http://piratemail.se Interesting. I don't know much about mail administration so I can't give you any advises. All I can say is good luck! So, amazingly, some bot is already testing users and passwords ERROR 23:44:13,966 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:16,242 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:18,901 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:21,257 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:23,658 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:26,089 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:28,184 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:31,299 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:33,635 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:35,945 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:38,500 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:41,246 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:43,727 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:45,928 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 ERROR 23:44:48,186 | james.smtpserver | Id='19066555' User='' AUTH method LOGIN failed from @177.1.87.207 I figure it is searching for logins which work. Is there an appropriate setting to prevent this sort of thing? I've been looking through the SMTP configuration and can't find one, yet. It seems to me that if I get too many login failures it should block the ip for a while? You could check out smtp-hooks: http://james.apache.org/server/3/feature-smtp-hooks.html . You can tap into the login command and do some stuff there. Eric probably knows abetter way t do this but he's on vacation for another week or so. In the mean time Good luck with your project. Another option open to me is shutting down all LOGINs. And communicate the mails via different pathway altogether and then shuttle them to james via 127.0.0.1.. Would this be possible? (I know I could run two instances of james with different binds ports, but I would rather not do this if possible) -tim On Jul 11, 2012, at 11:37 AM, Ioan Eugen Stan wrote: 2012/7/11 Timothy Prepscius timprepsc...@gmail.com: I apologize for spamming :-) I understand the volunteer nature. You guys are awesome actually. My project would not be possible with your project. So.. etc etc. Or it would, but it would much more work. :-) Glad to hear that. Could you tell us how you're using James? Fix for website: http://james.apache.org/server/3/index.html snapshot icon link links to empty directory. click on the link inside that page and it takes you to an error. We have a lot of problems with the website and they are getting worse since people (mostly java devs with little inclination towards site design) don't find the time to take care of it. Sorry for that. -tim On Jul 11, 2012, at 4:03 AM, Ioan Eugen Stan wrote: Hi Timothy, Beta5 is not released yet. You should be ok with it. As many open-source project this is volunteer work and things don't move as predictable as some may hope. Things are out when they are ready. Sometimes faster, sometimes slower. During summer most people are on vacation so expect things to move slower. Cheers, 2012/7/10 Timothy Prepscius timprepsc...@gmail.com: ok, I now see that there is in fact a beta 5, but it's not referenced on the web site. also it seems that it fixed the senderislocal problem, that I guess I duplicated. it would be nice if the website made some mention of the newest version. http://james.apache.org/download.cgi anyhow, -tim /spammy On Jul 10, 2012, at 12:28 PM, Timothy Prepscius wrote: sorry to be spammy on this. do you guys have any sort of release schedule? I'm just wondering whether I should assume I should have a trunk build going on or not. -tim On Jul 9, 2012, at 9:58 PM, Timothy Prepscius wrote: I'm wondering whether I should go to trunk to get the date/time fix or whether to wait for beta5 or is it already out somewhere? - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen
Re: just wondering when is the next release schedule for?
Hi Timothy, Beta5 is not released yet. You should be ok with it. As many open-source project this is volunteer work and things don't move as predictable as some may hope. Things are out when they are ready. Sometimes faster, sometimes slower. During summer most people are on vacation so expect things to move slower. Cheers, 2012/7/10 Timothy Prepscius timprepsc...@gmail.com: ok, I now see that there is in fact a beta 5, but it's not referenced on the web site. also it seems that it fixed the senderislocal problem, that I guess I duplicated. it would be nice if the website made some mention of the newest version. http://james.apache.org/download.cgi anyhow, -tim /spammy On Jul 10, 2012, at 12:28 PM, Timothy Prepscius wrote: sorry to be spammy on this. do you guys have any sort of release schedule? I'm just wondering whether I should assume I should have a trunk build going on or not. -tim On Jul 9, 2012, at 9:58 PM, Timothy Prepscius wrote: I'm wondering whether I should go to trunk to get the date/time fix or whether to wait for beta5 or is it already out somewhere? - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: updated embedded server example
2012/7/11 timprepscius timprepsc...@piratemail.se: Wow, I just noticed. This project is hosted by people with multiple first names. Stan and Charles are last names actually, but I do have two first names: Ioan Eugen. The project is hosted by Apache Software Foundation. We are committers/ pmc. You can learn more about it here: http://apache.org/foundation/how-it-works.html Eric Charles. Loan Stan. (What language is this Loan name based in?) It's Romanian for John, Jean, etc. It's Ioan with capital 'i'. I don't know why people always confuse capital 'i' with small 'L' . It's unusual for names to start with small caps. Cheers, Which is fitting for apache *James*. Lol, ok, I'll go away now. :-| I'm being annoying I know. Beta5 is running like a charm, -tim On Jul 9, 2012, at 5:17 PM, Ioan Eugen Stan wrote: Hi, Please call me Ioan or Eugen. Spring is not quite Java EE but it is a container. More specifically a IoC container. You can start the components by calling the respective constructors. In essence that's what Spring does for you. Only you say it in XML that you can edit/change without recompile, instead of code. What part of James are you interested in? Cheers, 2012/7/9 C Potter cabin.pot...@gmail.com: Hi Stan, Thank you for the quick response. I'm glad there seems to be an alternative to Avalon, I guess documentation is still in the work for the new embedded mode (?) In either case, the only JamesAppSpringMain I could find in Maven was under http://grepcode.com/file/repo1.maven.org$maven2@org.apache.james$apache-james@3.0-beta4@org$apache$james$app$spring$JamesAppSpringMain.java --- and this appears to be a JavaEE application, which is not really conducive to our runtime since we are NOT a JavaEE app server ;-) Or am I missing something? Thanks, C On Mon, Jul 9, 2012 at 12:15 PM, Ioan Eugen Stan stan.ieu...@gmail.com wrote: Hello Cabin, I recommend James 3.0 betta4. It's based on Spring framework. Have a look at James App project, especially this: http://svn.apache.org/repos/asf/james/app/trunk/src/main/java/org/apache/james/app/spring/JamesAppSpringMain.java It builds James by defining Spring beans inside spring-server.xml, one bean for each component (SMTP, LMTP, etc. ). You can comment some of them out and they won't start. Some Spring knowledge required. Cheers, 2012/7/9 C Potter cabin.pot...@gmail.com: Hi, I am looking for an updated example of embedding James in an existing server application. Is the current 3.0 beta4 still based on the avalon approach documented here: http://wiki.apache.org/james/Embedded ? I've been having a great deal of trouble getting the 2.3.2 version up and running on MacOsX. Here is my error after following the readme.txt, up to run.sh: Running Phoenix: Phoenix 4.2 James Mail Server 2.3.2 Remote Manager Service started plain:4555 org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named pop3server failed to pass through the Starting stage. (Reason: java.net.BindException: Permission denied). at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354) at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226) at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478) at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409) at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180) at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376) at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268) at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198) at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184
Re: just wondering when is the next release schedule for?
2012/7/11 Timothy Prepscius timprepsc...@gmail.com: I apologize for spamming :-) I understand the volunteer nature. You guys are awesome actually. My project would not be possible with your project. So.. etc etc. Or it would, but it would much more work. :-) Glad to hear that. Could you tell us how you're using James? Fix for website: http://james.apache.org/server/3/index.html snapshot icon link links to empty directory. click on the link inside that page and it takes you to an error. We have a lot of problems with the website and they are getting worse since people (mostly java devs with little inclination towards site design) don't find the time to take care of it. Sorry for that. -tim On Jul 11, 2012, at 4:03 AM, Ioan Eugen Stan wrote: Hi Timothy, Beta5 is not released yet. You should be ok with it. As many open-source project this is volunteer work and things don't move as predictable as some may hope. Things are out when they are ready. Sometimes faster, sometimes slower. During summer most people are on vacation so expect things to move slower. Cheers, 2012/7/10 Timothy Prepscius timprepsc...@gmail.com: ok, I now see that there is in fact a beta 5, but it's not referenced on the web site. also it seems that it fixed the senderislocal problem, that I guess I duplicated. it would be nice if the website made some mention of the newest version. http://james.apache.org/download.cgi anyhow, -tim /spammy On Jul 10, 2012, at 12:28 PM, Timothy Prepscius wrote: sorry to be spammy on this. do you guys have any sort of release schedule? I'm just wondering whether I should assume I should have a trunk build going on or not. -tim On Jul 9, 2012, at 9:58 PM, Timothy Prepscius wrote: I'm wondering whether I should go to trunk to get the date/time fix or whether to wait for beta5 or is it already out somewhere? - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - 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 -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: updated embedded server example
(POP3Server.java:116) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200) ... 22 more rethrown from java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.init(ServerSocket.java:194) at org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory.createServerSocket(DefaultServerSocketFactory.java:74) at org.apache.james.core.AbstractJamesService.initialize(AbstractJamesService.java:337) at org.apache.james.pop3server.POP3Server.initialize(POP3Server.java:116) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200) at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478) at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409) at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180) at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376) at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268) at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198) at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184) at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135) at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84) - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: tis issues.
Thanks for sharing Timothy! If I remember right this should become an issue on JIRA / somewhere else. Is there any other information that you could share on this so we can best describe it for other people? Thanks, 2012/7/9 Timothy Prepscius timprepsc...@gmail.com: Okay, I just literally spent 10 hours on one bug. If, you do all your ssl certificate stuff, and you are getting nowhere with ssl actually working. you're getting some no peer certificate error… and no negotiation is occurring check to see if you are running IceTea java. if you are get rid of it, and use sun. http://askubuntu.com/questions/56104/how-can-i-install-oracle-java-jre-7 Apparently this is an ice tea issue.. -tim - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: how to get source code of James 3.0-beta4
Hi Gamliela, That's because they are separate containers. Server is also a component. To build the James server binaries we use 'app' project. http://svn.apache.org/repos/asf/james/app/ . If you need the sources then chances are you're a developer and things are not that confusing. If you have a specific question, please ask. Cheers , 2012/6/28 gamliela gamli...@hotmail.com: http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta4/ but it would be nice to have it organized in http://james.apache.org/download.cgi as well... -- View this message in context: http://old.nabble.com/how-to-get-source-code-of-James-3.0-beta4-tp34086851p34087222.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 -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: how to get source code of James 3.0-beta4
Eric pointed out the best way to get trunk version of all project artifacts. If you need a specific version look at james svn root: http://svn.apache.org/repos/asf/james/ and grab the tag that you wish from every component. 2012/6/28 Eric Charles e...@apache.org: svn co https://svn.apache.org/repos/asf/james/current will bring the full James trunk on your disk. Thx, Eric On 06/28/2012 06:55 PM, Ioan Eugen Stan wrote: Hi Gamliela, That's because they are separate containers. Server is also a component. To build the James server binaries we use 'app' project. http://svn.apache.org/repos/asf/james/app/ . If you need the sources then chances are you're a developer and things are not that confusing. If you have a specific question, please ask. Cheers , 2012/6/28 gamlielagamli...@hotmail.com: http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta4/ but it would be nice to have it organized in http://james.apache.org/download.cgi as well... -- View this message in context: http://old.nabble.com/how-to-get-source-code-of-James-3.0-beta4-tp34086851p34087222.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 -- eric | http://about.echarles.net | @echarles - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James quits shortly after startup for unknown reason
Hello Gufiya, It should be fixed in 3.0-beta5 (unreleased). To fix bet4 change wrapper.conf and add conf/lib to the classpath (or use run.sh to start james which builds the classpath ok). https://issues.apache.org/jira/browse/JAMESAPP-8 Cheers, 2012/6/26 gufiya guf...@gmail.com: I have the same problem here. Here is a flow to reproduce it: 1. Download James3-beta4 2. Update james-database.properties to use MySQL 3. Put mysql-connector-java-5.1.18-bin.jar in conf/lib dir 4. Install service with james install script 5. Run James with james start script 5. Same problem happens: 5a. James start and stops after 2 seconds 5b. nothing relevant appears in logfile (only if you turn on debug mode, as people here mentioned). 6. My machine: 6a. Windows 7 with all updates 6b. JDK6 update 30 6c. JAVA_HOME, JDK\bin PATH and admin privileges were all set Can you please check it out? This version is simply useless for me if I want to use MySQL. -- View this message in context: http://old.nabble.com/James-quits-shortly-after-startup-for-unknown-reason-tp33510703p34070895.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 -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Starting James Service in Debug Mode?
Hi Mohit, Did you try the log settings in conf/wrapper.conf ? 2012/6/24 mohit gupta motgu...@gmail.com: Hi All, I am run James 2.3.2 server as window service. Can i configure it to run in debug? Thanks -- Ioan Eugen Stan / CTO / http://axemblr.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: MX record peference not being honored?
Hi Cole, I have no experience with 2.3 branch but the code responsible for routing is loacated in: http://svn.apache.org/repos/asf/james/server/branches/v2.3/src/java/org/apache/james/dnsserver/DNSServer.java . Namely: getSMTPHostAddresses, findMXRecords and findMXRecordsRaw. The javadoc for findMXRecords shows: Sorting is done in findMXRecordsRaw: public List findMXRecordsRaw(String hostname) { Record answers[] = lookup(hostname, Type.MX); List servers = new ArrayList(); if (answers == null) { return servers; } MXRecord mxAnswers[] = new MXRecord[answers.length]; for (int i = 0; i answers.length; i++) { mxAnswers[i] = (MXRecord)answers[i]; } Arrays.sort(mxAnswers, mxComparator); for (int i = 0; i mxAnswers.length; i++) { servers.add(mxAnswers[i].getTarget ().toString ()); getLogger().debug(new StringBuffer(Found MX record ).append(mxAnswers[i].getTarget ().toString ()).toString()); } return servers; } MX sorting and randomization is done via: /* RFC 2821 section 5 requires that we sort the MX records by their * preference, and introduce a randomization. This Comparator does * comparisons as normal unless the values are equal, in which case * it tosses a coin, randomly speaking. * * This way MX record w/preference 0 appears before MX record * w/preference 1, but a bunch of MX records with the same preference * would appear in different orders each time. * * Reminder for maintainers: the return value on a Comparator can * be counter-intuitive for those who aren't used to the old C * strcmp function: * * 0 == a b * = 0 == a = b * 0 == a b */ private static class MXRecordComparator implements Comparator { private final static Random random = new Random(); public int compare (Object a, Object b) { int pa = ((MXRecord)a).getPriority(); int pb = ((MXRecord)b).getPriority(); return (pa == pb) ? (512 - random.nextInt(1024)) : pa - pb; } } Most likely the problems come from here. Hope this helps, Cheers, 2012/5/9 Cole Ferrier c...@coleferrier.com: Recycle of James did not work, it is still equally using all 6 of the mail servers, even though they are at a different preference levels. Any Ideas? Cole On Tue, May 8, 2012 at 3:03 PM, Cole Ferrier c...@coleferrier.com wrote: talking with our internal mail system people, all 6 servers had a priority of 10 the last time apache James was restarted. Does James cache this data for the life of it running? or is there a time to live? or? I will schedule a recycle of james to see if it stops using the servers that now have a lower preference. Let me know if you have any ideas in the mean time. Cole On Tue, May 8, 2012 at 9:42 AM, Cole Ferrier c...@coleferrier.com wrote: We have an internal mail system that has 6 MX records 3 at priority 10 (new servers recently added) and 3 at priority 20 (old servers that where previously at 10). and it appears that apache james 2.3 is sending mail to all of them about equally? i was instructed that it should only connect to the 20's when all of the 10s are unavailable? any help would be appreciated? (or is there any need to restart James? aka, how long does it cache its data about the MX preferences?) Cole -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: MX record peference not being honored?
Hi again, First have a look at RemoteDelivery mailet that sends the email (check the deliver method). It calls getGatewaySMTPHostAddresses which calls the stuff from DNSServer.java. http://svn.apache.org/repos/asf/james/server/branches/v2.3/src/java/org/apache/james/transport/mailets/RemoteDelivery.java If you read the javadoc you should notice some randomization in the MX records. 2012/5/10 Ioan Eugen Stan stan.ieu...@gmail.com: Hi Cole, I have no experience with 2.3 branch but the code responsible for routing is loacated in: http://svn.apache.org/repos/asf/james/server/branches/v2.3/src/java/org/apache/james/dnsserver/DNSServer.java . Namely: getSMTPHostAddresses, findMXRecords and findMXRecordsRaw. The javadoc for findMXRecords shows: Sorting is done in findMXRecordsRaw: public List findMXRecordsRaw(String hostname) { Record answers[] = lookup(hostname, Type.MX); List servers = new ArrayList(); if (answers == null) { return servers; } MXRecord mxAnswers[] = new MXRecord[answers.length]; for (int i = 0; i answers.length; i++) { mxAnswers[i] = (MXRecord)answers[i]; } Arrays.sort(mxAnswers, mxComparator); for (int i = 0; i mxAnswers.length; i++) { servers.add(mxAnswers[i].getTarget ().toString ()); getLogger().debug(new StringBuffer(Found MX record ).append(mxAnswers[i].getTarget ().toString ()).toString()); } return servers; } MX sorting and randomization is done via: /* RFC 2821 section 5 requires that we sort the MX records by their * preference, and introduce a randomization. This Comparator does * comparisons as normal unless the values are equal, in which case * it tosses a coin, randomly speaking. * * This way MX record w/preference 0 appears before MX record * w/preference 1, but a bunch of MX records with the same preference * would appear in different orders each time. * * Reminder for maintainers: the return value on a Comparator can * be counter-intuitive for those who aren't used to the old C * strcmp function: * * 0 == a b * = 0 == a = b * 0 == a b */ private static class MXRecordComparator implements Comparator { private final static Random random = new Random(); public int compare (Object a, Object b) { int pa = ((MXRecord)a).getPriority(); int pb = ((MXRecord)b).getPriority(); return (pa == pb) ? (512 - random.nextInt(1024)) : pa - pb; } } Most likely the problems come from here. Hope this helps, Cheers, 2012/5/9 Cole Ferrier c...@coleferrier.com: Recycle of James did not work, it is still equally using all 6 of the mail servers, even though they are at a different preference levels. Any Ideas? Cole On Tue, May 8, 2012 at 3:03 PM, Cole Ferrier c...@coleferrier.com wrote: talking with our internal mail system people, all 6 servers had a priority of 10 the last time apache James was restarted. Does James cache this data for the life of it running? or is there a time to live? or? I will schedule a recycle of james to see if it stops using the servers that now have a lower preference. Let me know if you have any ideas in the mean time. Cole On Tue, May 8, 2012 at 9:42 AM, Cole Ferrier c...@coleferrier.com wrote: We have an internal mail system that has 6 MX records 3 at priority 10 (new servers recently added) and 3 at priority 20 (old servers that where previously at 10). and it appears that apache james 2.3 is sending mail to all of them about equally? i was instructed that it should only connect to the 20's when all of the 10s are unavailable? any help would be appreciated? (or is there any need to restart James? aka, how long does it cache its data about the MX preferences?) Cole -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: MX record peference not being honored?
Hi again, I took a look at the code in James 3 to see if there are ig changes and I have found https://issues.apache.org/jira/browse/JAMES-913 . Take a look and see if this will help you. Bye, 2012/5/10 Eric Charles e...@apache.org: Quick note; the behavior in 3.0 should be the same than in 2.3 (except if it has been updated since then, didn't take time to check this.). @Coley From the code Ioan pointed, it seems that the priority should be managed, and for a same priority, we should have randomization. If this is not the expected or effective behavior, please open a JIRA. The fix would be for 3.0, but you could easily fix the 2.3 without having to recompile everything (simply declaring your own class). Thx, Eric On 05/10/2012 10:32 AM, Ioan Eugen Stan wrote: Hi again, First have a look at RemoteDelivery mailet that sends the email (check the deliver method). It calls getGatewaySMTPHostAddresses which calls the stuff from DNSServer.java. http://svn.apache.org/repos/asf/james/server/branches/v2.3/src/java/org/apache/james/transport/mailets/RemoteDelivery.java If you read the javadoc you should notice some randomization in the MX records. 2012/5/10 Ioan Eugen Stanstan.ieu...@gmail.com: Hi Cole, I have no experience with 2.3 branch but the code responsible for routing is loacated in: http://svn.apache.org/repos/asf/james/server/branches/v2.3/src/java/org/apache/james/dnsserver/DNSServer.java . Namely: getSMTPHostAddresses, findMXRecords and findMXRecordsRaw. The javadoc for findMXRecords shows: Sorting is done in findMXRecordsRaw: public List findMXRecordsRaw(String hostname) { Record answers[] = lookup(hostname, Type.MX); List servers = new ArrayList(); if (answers == null) { return servers; } MXRecord mxAnswers[] = new MXRecord[answers.length]; for (int i = 0; i answers.length; i++) { mxAnswers[i] = (MXRecord)answers[i]; } Arrays.sort(mxAnswers, mxComparator); for (int i = 0; i mxAnswers.length; i++) { servers.add(mxAnswers[i].getTarget ().toString ()); getLogger().debug(new StringBuffer(Found MX record ).append(mxAnswers[i].getTarget ().toString ()).toString()); } return servers; } MX sorting and randomization is done via: /* RFC 2821 section 5 requires that we sort the MX records by their * preference, and introduce a randomization. This Comparator does * comparisons as normal unless the values are equal, in which case * it tosses a coin, randomly speaking. * * This way MX record w/preference 0 appears before MX record * w/preference 1, but a bunch of MX records with the same preference * would appear in different orders each time. * * Reminder for maintainers: the return value on a Comparator can * be counter-intuitive for those who aren't used to the old C * strcmp function: * * 0 == a b * = 0 == a = b * 0 == a b */ private static class MXRecordComparator implements Comparator { private final static Random random = new Random(); public int compare (Object a, Object b) { int pa = ((MXRecord)a).getPriority(); int pb = ((MXRecord)b).getPriority(); return (pa == pb) ? (512 - random.nextInt(1024)) : pa - pb; } } Most likely the problems come from here. Hope this helps, Cheers, 2012/5/9 Cole Ferrierc...@coleferrier.com: Recycle of James did not work, it is still equally using all 6 of the mail servers, even though they are at a different preference levels. Any Ideas? Cole On Tue, May 8, 2012 at 3:03 PM, Cole Ferrierc...@coleferrier.com wrote: talking with our internal mail system people, all 6 servers had a priority of 10 the last time apache James was restarted. Does James cache this data for the life of it running? or is there a time to live? or? I will schedule a recycle of james to see if it stops using the servers that now have a lower preference. Let me know if you have any ideas in the mean time. Cole On Tue, May 8, 2012 at 9:42 AM, Cole Ferrierc...@coleferrier.com wrote: We have an internal mail system that has 6 MX records 3 at priority 10 (new servers recently added) and 3 at priority 20 (old servers that where previously at 10). and it appears that apache james 2.3 is sending mail to all of them about equally? i was instructed that it should only connect to the 20's when all of the 10s are unavailable? any help would be appreciated? (or is there any need to restart James? aka, how long does it cache its data about the MX preferences?) Cole -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** -- eric | http://about.echarles.net | @echarles - To unsubscribe, e-mail
James threads support
Hello, Does James have some way of returning threads to the user? This is more client related (hupa), but some things can be done in server. Cheers,
Re: James threads support
2012/5/8 Eric Charles e...@apache.org: Hi Ioan, The short answer is no. Which use case are you thinking to? Eric Well, the most obvious is to use it Hupa to provide thread view. Since we could store messages in james mailbox we could turn it into a comment system like disqus, and provide thread view and reply via email. On 05/08/2012 10:25 AM, Ioan Eugen Stan wrote: Hello, Does James have some way of returning threads to the user? This is more client related (hupa), but some things can be done in server. Cheers, -- eric | http://about.echarles.net | @echarles - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: NNTP Administration
2012/5/4 Anton Shepelev anton@gmail.com: Ioan Eugen Stan: I have the following questinons about James's NNTP module: 1. What settings are responsible for how long it takes for a posted article to appear on the server? 2. Does James support article expiration and, if it does, where can it be configured? I don't know the answer to your questions but NNTP is only available in James 2.3 Yep, I am using it. I wish NNTP were not discontin- ued. I may take some time to port NNTP to 3.0 this summer. I'm taking some time off and will be working on James . -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: FakeMailetConfig
Hello Dinyar, 2012/5/8 Dinyar Rabady dinyar.rab...@catalysts.cc: Hi! I would like to use FakeMailetConfig and the related classes in my unit tests, but I can't seem to use the package org.apache.mailet.base.test even after including apache-mailet-base in my pom.xml (I'm using maven). Try adding the test classifier so it will get on the test classpath: http://maven.apache.org/guides/mini/guide-attached-tests.html Should this be working? Best regards, Dinyar -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Cannot add files to classpath
Hello Audrey, See https://issues.apache.org/jira/browse/JAMESAPP-8 .You should be able to use run.sh or modify ./conf/wrapper.conf to add conf/lib to the classpath, just after ./conf is added. Both of them are needed, in this order as conf contains the overrrides for config files and conf/lib the new libs. Cheers, p.s. In the future please report problems as soon as you encounter them so we can take action. Pe 07.05.2012 15:40, Cobelia - Audrey Cuny a scris: Hello everybody, I have the same proble. I used to add my jars into the conf/lib repository of James 3 Beta 3 and it worked very well, so when I migrated on Beta 4 I did the same, but it refuses to pick up them. I tried to put my jars into the /conf/lib repository and the /lib/ repository, and almost every where, but impossible to run James Beta 4. I absolutely didn't change anything to the name or the classpath of my own matchers and mailets. Does anybody encountered and resolved this problem ? Thank you so much. Audrey Le 31/03/2012 10:47, Eric Charles a écrit : You can simply add the jar in conf/lib and it will be picked up into the classpath without any additional configuration. Thx, Eric On 30/03/12 21:38, Saibabu Vallurupalli wrote: 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_kpaulkrasu...@yahoo.com 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 -- Ioan Eugen Stan http://ieugen.blogspot.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James quits shortly after startup for unknown reason
': public void org.apache.james.queue.library.AbstractMailQueueFactory.destroy() DEBUG 08:54:58,545 | org.springframework.beans.factory.support.DisposableBeanAdapter | Invoking destroy() on bean with name 'jmsConnectionFactory' DEBUG 08:54:58,545 | org.springframework.beans.factory.support.DefaultListableBeanFactory | Retrieved dependent beans for bean '(inner bean)#3': [amqConnectionFactory] DEBUG 08:54:58,545 | org.springframework.context.annotation.CommonAnnotationBeanPostProcessor | Invoking destroy method on bean 'broker': public void org.apache.activemq.xbean.XBeanBrokerService.destroy() throws java.lang.Exception INFO 08:54:58,545 | org.apache.activemq.broker.BrokerService | ActiveMQ Message Broker (james, ID:direct-49713-1331823297045-0:1) is shutting down INFO 08:54:59,326 | org.apache.activemq.broker.TransportConnector | Connector tcp://localhost:0 Stopped INFO 08:54:59,326 | org.apache.activemq.store.kahadb.plist.PListStore | PListStore:..\var\store\activemq\brokers\james\tmp_storage stopped DEBUG 08:54:59,326 | org.apache.activemq.store.amq.AMQPersistenceAdapter | Waitng for checkpoint to complete. DEBUG 08:54:59,326 | org.apache.activemq.store.amq.AMQPersistenceAdapter | Checkpoint started. DEBUG 08:54:59,326 | org.apache.activemq.store.amq.AMQPersistenceAdapter | Checkpoint done. DEBUG 08:54:59,342 | org.apache.activemq.store.amq.AMQPersistenceAdapter | Journal close INFO 08:54:59,357 | org.apache.activemq.broker.BrokerService | ActiveMQ JMS Message Broker (james, ID:direct-49713-1331823297045-0:1) stopped DEBUG 08:54:59,357 | org.springframework.context.annotation.CommonAnnotationBeanPostProcessor | Invoking destroy method on bean 'broker': public void org.apache.activemq.broker.BrokerService.stop() throws java.lang.Exception DEBUG 08:54:59,357 | org.springframework.beans.factory.support.DefaultListableBeanFactory | Retrieved dependent beans for bean '(inner bean)': [broker] DEBUG 08:54:59,357 | org.springframework.beans.factory.support.DefaultListableBeanFactory | Retrieved dependent beans for bean 'amq:policyEntry#22d166': [(inner bean)] DEBUG 08:54:59,357 | org.springframework.beans.factory.support.DisposableBeanAdapter | Invoking destroy() on bean with name 'jamesCamelContext' INFO 08:54:59,357 | org.apache.camel.impl.DefaultCamelContext | Apache Camel 2.5.0 (CamelContext:jamesCamelContext) is shutting down INFO 08:54:59,357 | org.apache.camel.impl.DefaultShutdownStrategy | Starting to graceful shutdown 0 routes (timeout 300 seconds) DEBUG 08:54:59,373 | org.apache.camel.impl.DefaultExecutorServiceStrategy | Created new single thread pool for source: org.apache.camel.impl.DefaultShutdownStrategy@6399ae with name: ShutdownTask. - java.util.concurrent.Executors$FinalizableDelegatedExecutorService@fe9ad1 DEBUG 08:54:59,373 | org.apache.camel.impl.DefaultShutdownStrategy | There are 0 routes to shutdown INFO 08:54:59,373 | org.apache.camel.impl.DefaultShutdownStrategy | Graceful shutdown of 0 routes completed in 0 seconds INFO 08:54:59,373 | org.apache.camel.impl.DefaultCamelContext | Uptime: not started INFO 08:54:59,373 | org.apache.camel.impl.DefaultCamelContext | Apache Camel 2.5.0 (CamelContext: jamesCamelContext) is shutdown in 0.016 seconds -- eric | http://about.echarles.net | @echarles - 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 -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: NNTP Administration
Hello Anton, I don't know the answer to your questions but NNTP is only available in James 2.3 2012/5/4 Anton Shepelev anton@gmail.com: Hello all, I have the following questinons about James's NNTP module: 1. What settings are responsible for how long it takes for a posted article to appear on the server? 2. Does James support article expiration and, if it does, where can it be configured? -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Capturing System.err or System.out?
Have you tried redirecting standard out and standard err? ./run.sh std_out_capture.txt ./run.sh 2 std_err_capture.txt http://stackoverflow.com/questions/2297536/how-do-i-capture-all-of-my-compilers-output-to-a-file 2012/4/25 paul.krasu...@thomsonreuters.com: My james does not start. There is a lot of dependencies in my custom mailets and matchers. I am trying to figure out where is the problem, but the stack trace from Spring is not helpful. How can I capture stderr and stdout streams to find out errors during start-up? Any other suggestions? I am getting: NYCV12EMAIL02:/opt/mailer/bin # ./run.sh /usr/bin/java Exception in thread main org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [context/james-server-context.xml]; nested exception is java.lang.NullPointerException... Spring is trying to instantiate object of some class and I would like to find out what is the class. Nowhere in the stack trace there is any indication. I would really appreciate any suggestions on how to find out what causes the errors... Thanks, -Paul This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters. -- Ioan Eugen Stan http://ieugen.blogspot.com/ - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: turning off unused services
2012/4/16 paul.krasu...@thomsonreuters.com: I use james as a gateway to XMPP messaging. I don't need anything stored on the server, I just need to be able to send my mail and use mailets/matchers engine to process incoming mail (all incoming mail is either discarded or immediately converted to XMPP and sent to XMPP server). System works, but there are many components that are not used and I'd prefer to have them disabled. I disabled imap and pop3 in config files. How can I disable other components that (as far as I know (?)) are not used in my set-up i.e. jackrabbit, activemq, derby? Thanks, -Paul This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters. Hello Paul, I think you could comment out the respective configs. I will have to test to give you specifics. Could you be more precise as to which components are you referring?The mail-store and spam things come to my mind. Thanks, -- Ioan Eugen Stan http://ieugen.blogspot.com/ - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: IMAP with Lotus Notes client
Pe 30.03.2012 12:51, Eric Charles a scris: On 28/03/12 17:32, Ioan Eugen Stan wrote: Like a protocol dump that we can enable? If not maybe we can discuss about implementing one. Hi Ioan, I use wireshark to go deep in the communication. A 'protocol-dumper' would be a nice feature for James. Agree, I think we can make one to save the server-client responses in a way that we can use them to build integration tests. I'm thinking of mailbox-integration-test script files here that have S: and C: lines. This way we can easily add integration test cases that match real client configs when we find them. I'll put up a jira for this. -- Ioan Eugen Stan http://ieugen.blogspot.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: IMAP with Lotus Notes client
Pe 28.03.2012 16:46, Eric Charles a scris: Hi, We have created some time ago a page on our Wiki to register working/non-working clients. http://wiki.apache.org/james/Server3ClientCompatibility It may be the first time someone try with Lotus Notes. Do you see any messages/exceptions in the server log? (btw, which version?) Thx, Eric Hello Eric, Is there a way we can enable James to provide more info in such cases? Like a protocol dump that we can enable? If not maybe we can discuss about implementing one. Regards, -- Ioan Eugen Stan http://ieugen.blogspot.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Retrieve body of the message
Pe 06.03.2012 08:52, Jentu Jain a scris: Hi, When a message is moved into IMAP folder, how to retrieve the message text only (no attachments only the mail body as text)? Regards Jentu Jain | Datacert, Inc. Why are major companies rapidly migrating to Passport? Find Out Herehttp://www.datacert.com/ [Description: cid:image001.gif@01CBF2C7.283B26D0]http://www.datacert.com/feed.xml[Description: cid:image002.gif@01CBF2C7.283B26D0]http://twitter.com/datacert Hello Jentu, The mailstore implementations for james provides a getBodyContent of type InputStream. This gets all the message. I think it's the IMAP processor's responsibility to parse (with mime4j) the message and give you access to the parts you need. The IMAP command is FETCH with TEXT argument [1]. I don't know the status of it's implementation in James. [1] http://tools.ietf.org/html/rfc3501#section-6.4.5 p.s. I may be wrong. Cheers, -- Ioan Eugen Stan http://ieugen.blogspot.com - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Retrieve body of the message
2012/3/6 Jentu Jain jentu.j...@datacert.com: Thanks Stan. Hi, Please call me Ioan, Stan is my family name. The method getBodyContent() gives MIME message but I need the parsed MIME message. The message may have say images, attachments, text etc.. I just want to get the text(plain or html) part of the message. Use mime4j to parse the message and get the parts that you need [1]. James does the same if it implements the above mentioned IMAP FETCH command. Looking at class FetchCommandParser from protocols package I believe James supports partial fetch with text see method addNextElement(). You can find examples of IMAP FETCH commands (with TEXT argument) in the mailbox-integration-tester package. Check the scripts at [2], especially the ones with Fetch*. They are examples of how an imap session between client and server takes place. I don't know which IMAP FETCH command and args will give you what you need (you'll find out in the RFC :) [3] ) but I think it's possible to get what you need by sending the appropriate IMAP commands, without implementing your own parsing. If not, please consider adding support for those commands to James. Regards, [1] http://james.apache.org/mime4j/usage.html [2] http://svn.apache.org/repos/asf/james/mailbox-integration-tester/trunk/src/main/resources/org/apache/james/imap/ [3] http://tools.ietf.org/html/rfc3501#section-6.4.5 -- Ioan Eugen Stan http://ieugen.blogspot.com/ - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Persist IMAP messages
Pe 23.02.2012 09:00, Jentu Jain a scris: Hi, I want to persist the emails that are moved to IMAP mailbox to another application's database as a file. What should be the format of the file that would hold the message so that it can be saved/retrieved to/from the application? Regards Jentu Jain | Datacert, Inc. Why are major companies rapidly migrating to Passport? Find Out Herehttp://www.datacert.com/ [Description: cid:image001.gif@01CBF2C7.283B26D0]http://www.datacert.com/feed.xml[Description: cid:image002.gif@01CBF2C7.283B26D0]http://twitter.com/datacert Hi Jentu, I think the best way to save the message is in it' original form, as a standard Internet message format (http://tools.ietf.org/html/rfc2822). You can get the original stream of bytes (Message object has a getContent method and getBody() that provide InputStream's) and you can persist them. You can then use mime4j to parse the message and get the parts that you wish. Either dynamic, on request, or save offsets for each part of the message (the message does not change). Depends on your needs but the first should be all you need. Cheers, -- Ioan Eugen Stan http://ieugen.blogspot.com - 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 beta4 version
2012/2/11 Eric Charles e...@apache.org: I will launch the release process next week. Before releasing server, we have to release imap and mailbox, so yet a little patience (but it's coming). Thx again, Eric Thats great news Eric. I will try to tidy up things on my part of mailbox. I'm planning to bump HBase to 0.92, hadoop to 1.0.0 and some small changes. Cheers. -- Ioan Eugen Stan http://ieugen.blogspot.com/ - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org