Re: James logo – the Vote is Open
+1 for logo 10. Thx to all contributors. On 26/09/16 16:04, Laura Royet wrote: Hi everyone, This emails opens the *single vote ballot* for *James log**o*. Below are the detailed explanation. **Who ca**n vote :* all the recipients of this email. Deadline :Monday, 3 October 2016 at 18:00 UTC*. *How to vo**te : **You have two options : **choosing**one of the **proposals between the 10 submitted *on : http://james.apache.org/#tabs-4 or *give a blank vote*. *So please complete the appropriate field below **:* * VOTE FOR LOGO NUMBER: * AGAINST PROPOSED LOGOS, WAIT MORE TIME FOR NEW CHOICES : The proposal collecting the most votes will become James new logo! Thank you in advance for participating. Regards, Laura - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: JAMES website?
Web site is atm available under http://james.apache.org/www Should be back under http://james.apache.org after next git pull. On Mon, Sep 26, 2016 at 8:39 AM, Matthieu Baechlerwrote: > Hi, > > You can retrieve sources and javadoc from maven is you only need that. > > Regards, > > -- > Matthieu Baechler > > Le 26/09/2016 à 05:48, Jerry Malcolm a écrit : > >> I understand how spf works. I need the javadoc to the jspf classes so I >> can program to them. >> >> >> On 9/25/2016 1:20 PM, Luuk wrote: >> >>> On 25-09-16 19:52, Jerry Malcolm wrote: >>> Thanks for the info. I'm curious, though, why the need to take the old site down before having the new site up. I'm trying to find the documentation for using jspf. Is there an alternate site that might have that documentation until the new james site is up? >>> not james specific, but specific to spf: >>> http://www.openspf.org/ >>> >>> >>> >>> - >>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org >>> For additional commands, e-mail: server-user-h...@james.apache.org >>> >>> >>> >>> - >>> No virus found in this message. >>> Checked by AVG - www.avg.com >>> Version: 2016.0.7797 / Virus Database: 4656/13081 - Release Date: >>> 09/25/16 >>> >> >> >> - >> 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: log doesn't show james start/stop
A log has been added some time ago to inform that james is starting. Can you ps -ef | grep james and see if the process is up? Default config are in the jars, but you can override them adding configuration file in the conf folder. On 10/02/16 13:09, Thufir Hawat wrote: Following the quickstart guide, I tried to start James: root@tleilax:/home/james# root@tleilax:/home/james# cat apache-james-3.0-beta4/log/james-server.log INFO 03:54:25,573 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@4333a88b: startup date [Wed Feb 10 03:54:25 PST 2016]; root of context hierarchy root@tleilax:/home/james# root@tleilax:/home/james# apache-james-3.0-beta4/bin/james start Starting Apache James Server App... root@tleilax:/home/james# root@tleilax:/home/james# apache-james-3.0-beta4/bin/james stop Stopping Apache James Server App... Stopped Apache James Server App. root@tleilax:/home/james# root@tleilax:/home/james# cat apache-james-3.0-beta4/log/james-server.log INFO 03:54:25,573 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@4333a88b: startup date [Wed Feb 10 03:54:25 PST 2016]; root of context hierarchy INFO 04:01:32,266 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@4333a88b: startup date [Wed Feb 10 04:01:32 PST 2016]; root of context hierarchy root@tleilax:/home/james# it's unclear that it's running. It started the once, but subsequent attempts to start james aren't reflected in the log...why? With regards to config, the config files are the jars? So they have to be extracted and then put back in?? (No, I haven't done any config, just wanted to start and stop the server, maybe telnet in. The connection is refused, probably because the FQDN, as well as anything else, like ports, hasn't been configured yet.) thanks, Thufir - 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
Apache James Server 2.3.2 security vulnerability fixed
Severity: Important Vendor: The Apache Software Foundation Versions Affected: James Server 2.3.2 Description: Apache James Server 2.3.2 has security issue that can let a user execute arbitrary system command for servers configured with file based user repositories. Mitigation: 2.3.2 users should upgrade to 2.3.2.1 to be downloaded from http://james.apache.org/download.cgi#Apache_James_Server Credit: This issue was discovered by Palaczynski Jakub(recorded as VU#988628 by CERT) - 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 definitions of DB indexes?
OpenJPA creates the SQL (for tables creation and also for queries, inserts...) On 04/27/2015 03:46 PM, Kohei Nozaki wrote: Hello, I'm using James3 which acquired from SVN trunk on Feburuary 2015, with JPA store + PostgreSQL. I can see following indexes are created automatically: james=# \d james_mail Table public.james_mail snip Indexes: james_mail_pkey PRIMARY KEY, btree (mailbox_id, mail_uid) i_jms_mil_mail_is_deleted btree (mail_is_deleted) i_jms_mil_mail_is_recent btree (mail_is_recent) i_jms_mil_mail_is_seen btree (mail_is_seen) i_jms_mil_mail_modseq btree (mail_modseq) But I'm not sure where are the code that creates DB indexes, or where any DDL script (create index ...) are placed. where are they? or does it uses some function of OpenJPA? Thanks. - 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: IMAP + PostgreSQL backend issues with Thunderbird
Seem like a postgres related issue. Can you confirm it is working fine with derby or any other database? On 04/27/2015 06:49 AM, Kohei Nozaki wrote: Hello, I'm running into exactly same problem to this: http://www.mail-archive.com/server-user%40james.apache.org/msg14715.html I'm using James3 which acquired from SVN trunk on Feburuary 2015, PostgreSQL 9.2.6 and Thunderbird 31.6.0. I have only around 20 message in INBOX, but every time Thunderbird gets different message list, and it never saved unread status properly. I'm trying to debug the problem, but curious if there are any further information about this issue already. I'd appreciated if you let me know any information related to this issue. Thanks. - 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: Invalid jDKIM signature on quoted-printable mails
Should we always set this property, or is it only valid in your specific case? On 02/08/2015 10:28 AM, Kohei Nozaki wrote: I sent this mail yesterday and I already found the solution. putting mail.smtp.allow8bitmimefalse/mail.smtp.allow8bitmime inside mailet match=All class=RemoteDelivery element solved the issue. the cause was that JavaMail converted quoted-printable to 8bit unexpectedly. Hello, I'm configuring James-3.0.0-beta5-SNAPSHOT to enable DKIM signing. it creates valid signature for plain text mails, but not for quoted-printable mails that made by Apple Mail. I also tried set forceCRLF=false to DKIMSign mailet but no effect. I'm investing this problem and suspecting logics in CRLFOutputStream or RemoteDelivery now but still the cause is unknown. Is anyone has any hints or ideas to solve this problem? Also I posted about details of my setup to my blog: http://www.nailedtothex.org/roller/kyle/entry/configuring-james-to-sign-dkim Thanks. - 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: Invalid jDKIM signature on quoted-printable mails
You are talking about RemoteDelivery and DKIMSign mailet. Which one is the cause of issue? The code of RemoteDelivery mailet (line 732) is // By setting this property to true the transport is allowed to // send 8 bit data to the server (if it supports the 8bitmime // extension). // 2006/03/01 reverted to false because of a javamail bug converting to // 8bit // messages created by an inputstream. props.setProperty(mail.smtp.allow8bitmime, true); The comment is not in line with the code (supposed to be false since 2006, but set to true). Where would you like to see that doc (in jdkim site, in server site, in javadoc...?) On 03/09/2015 12:34 AM, Kohei Nozaki wrote: I think we always should set this if we use DKIMSign mailet. adding some note to the documentation is reasonable. On Mar 9, 2015, at 2:49, Eric Charles e...@apache.org wrote: Should we always set this property, or is it only valid in your specific case? On 02/08/2015 10:28 AM, Kohei Nozaki wrote: I sent this mail yesterday and I already found the solution. putting mail.smtp.allow8bitmimefalse/mail.smtp.allow8bitmime inside mailet match=All class=RemoteDelivery element solved the issue. the cause was that JavaMail converted quoted-printable to 8bit unexpectedly. Hello, I'm configuring James-3.0.0-beta5-SNAPSHOT to enable DKIM signing. it creates valid signature for plain text mails, but not for quoted-printable mails that made by Apple Mail. I also tried set forceCRLF=false to DKIMSign mailet but no effect. I'm investing this problem and suspecting logics in CRLFOutputStream or RemoteDelivery now but still the cause is unknown. Is anyone has any hints or ideas to solve this problem? Also I posted about details of my setup to my blog: http://www.nailedtothex.org/roller/kyle/entry/configuring-james-to-sign-dkim Thanks. - 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: How to reference customized projects in pom.xml files?
Did you find your way in the james pom(s)? On 01/15/2015 08:15 PM, Tilman Ginzel wrote: Hey guys, I am a computer science student from Germany and I am working with James for a couple of weeks now for a project. My goal is to implement some code at the point where a user selects a mail-folder via any IMAP mail-client. With some logging I was able to find all relevant subprojects and classes I need to work with (at least I think so). I found out that these two classes are quiet important for that (among others): - org.apache.james.imap.processor.AbstractSelectionProcessor; - org.apache.james.mailbox.store.StoreMailboxManager; I checked out the following projects from the apache james repos: james-server james-protocols james-mailbox I imported the maven projects into Eclipse and I am able to build all projects separately. Now my problem: I am not able to correctly manipulate the dependencies in the pom.xml files to reference my local customized projects. I found 58 pom.xml files in these three projects (with all subprojects) and it is not really useful to simply trial and error tutorials I found on the web. It would be great if I simply could build james-server and it would automatically build my custom james-protocols and james-mailbox projects. Unfortunatetly maven is quiet new for me and James is a fairly huge project with many dependencies. I hope my question is understandable and it would be great if you could give me some hints. If you need more information, I will try to explain the problem with more details. Thanks in advance! Tilman - 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: Deadlock on JPAMessageMapper.expungeMarkedForDeletionInMailbox()
Can you open a JIRA and copy there that information. We had some deadlock we solved some time ago, but it seems there is still something to work out. On 03/03/2015 05:27 AM, Kohei Nozaki wrote: Hello, I'm running James3 in trunk with Apache Derby Embedded. today I found some weird log in wrapper.log. does it mean something went wrong? or can I safely ignore it? INFO | jvm 1| 2015/03/03 03:29:55 | Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: A lock could not be obtained due to a deadlock, cycle of locks and waiters is: INFO | jvm 1| 2015/03/03 03:29:55 | Lock : ROW, JAMES_MAIL, (735,6) INFO | jvm 1| 2015/03/03 03:29:55 | Waiting XID : {123722435, U} , APP, DELETE FROM APP.JAMES_MAIL WHERE EXISTS (SELECT 1 FROM APP.JAMES_MAIL t0 WHERE (t0.MAILBOX_ID = ? AND t0.MAIL_UID = ? AND t0.MAIL_IS_DELETED = ?) AND (t0.MAILBOX_ID = APP.JAMES_MAIL.MAILBOX_ID AND t0.MAIL_UID = APP.JAMES_MAIL.MAIL_UID)) INFO | jvm 1| 2015/03/03 03:29:55 | Granted XID : {123722454, X} INFO | jvm 1| 2015/03/03 03:29:55 | Lock : TABLE, JAMES_MAIL_PROPERTY, Tablelock INFO | jvm 1| 2015/03/03 03:29:55 | Waiting XID : {123722454, IX} , APP, INSERT INTO APP.JAMES_MAIL_PROPERTY (PROPERTY_ID, PROPERTY_LINE_NUMBER, PROPERTY_LOCAL_NAME, PROPERTY_NAME_SPACE, PROPERTY_VALUE, MAILBOX_ID, MAIL_UID) VALUES (?, ?, ?, ?, ?, ?, ?) INFO | jvm 1| 2015/03/03 03:29:55 | Granted XID : {123722435, X} INFO | jvm 1| 2015/03/03 03:29:55 | . The selected victim is XID : 123722435. {prepstmnt 239961255 DELETE FROM APP.JAMES_MAIL WHERE EXISTS (SELECT 1 FROM APP.JAMES_MAIL t0 WHERE (t0.MAILBOX_ID = ? AND t0.MAIL_UID = ? AND t0.MAIL_IS_DELETED = ?) AND (t0.MAILBOX_ID = APP.JAMES_MAIL.MAILBOX_ID AND t0.MAIL_UID = APP.JAMES_MAIL.MAIL_UID))} [code=3, state=40001] I acquired the source tree in February 4 of this year. $ pwd /Users/kyle/src/james-server $ svn info | grep Revision: Revision: 1657019 Related libraries: -rw--- 1 james james 118172 Feb 4 15:59 apache-james-mailbox-api-0.6-20150204.040032-612.jar -rw--- 1 james james 38208 Feb 4 16:05 apache-james-mailbox-cassandra-0.6-20150204.040425-162.jar -rw--- 1 james james 58663 Feb 4 16:05 apache-james-mailbox-jcr-0.6-20150204.040507-581.jar -rw--- 1 james james 78735 Feb 4 16:05 apache-james-mailbox-jpa-0.6-20150204.040524-579.jar -rw--- 1 james james 33190 Feb 4 16:05 apache-james-mailbox-lucene-0.6-20150204.040533-581.jar -rw--- 1 james james 75204 Feb 4 15:59 apache-james-mailbox-maildir-0.6-20150204.040556-576.jar -rw--- 1 james james 23255 Feb 4 15:59 apache-james-mailbox-memory-0.6-20150204.040602-577.jar -rw--- 1 james james 18574 Feb 4 16:05 apache-james-mailbox-spring-0.6-20150204.040621-568.jar -rw--- 1 james james 188973 Feb 4 15:59 apache-james-mailbox-store-0.6-20150204.040045-608.jar -rw--- 1 james james 25298 Feb 4 15:59 apache-james-mailbox-tool-0.6-20150204.040612-571.jar Full stacktrace: (My domain name is replaced by example.org). INFO | jvm 1| 2015/03/03 03:29:55 | INFO 03:29:54,514 | james.imapserver | ID=1358640821 Expunge failed for mailbox #private:k...@example.org:INBOX INFO | jvm 1| 2015/03/03 03:29:55 | org.apache.james.mailbox.exception.MailboxException: Search of MessageRange TYPE: ONE UID: 751:751 failed in mailbox Mailbox ( mailboxId = 1 name = INBOX uidValidity = 1950409796 ) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.mailbox.jpa.mail.JPAMessageMapper.expungeMarkedForDeletionInMailbox(JPAMessageMapper.java:262) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.mailbox.store.StoreMessageManager$7.run(StoreMessageManager.java:678) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.mailbox.store.StoreMessageManager$7.run(StoreMessageManager.java:675) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.mailbox.store.transaction.TransactionalMapper.execute(TransactionalMapper.java:37) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.mailbox.store.StoreMessageManager.deleteMarkedInMailbox(StoreMessageManager.java:675) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.mailbox.store.StoreMessageManager.expunge(StoreMessageManager.java:233) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.imap.processor.ExpungeProcessor.expunge(ExpungeProcessor.java:107) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.imap.processor.ExpungeProcessor.doProcess(ExpungeProcessor.java:75) INFO | jvm 1| 2015/03/03 03:29:55 | at org.apache.james.imap.processor.ExpungeProcessor.doProcess(ExpungeProcessor.java:47) INFO | jvm 1| 2015/03/03 03:29:55 | at
Re: James 3 b4 HELO Override Not Working?
Can you open a JIRA and upload your patches there? On 10/28/2014 12:11 AM, Robert Munn wrote: OK, I made an Eclipse patch for the RemoteDelivery issue. I also made a patch for a mod I made to ReadOnlyUsersLDAPRespository.java that filters LDAP users by an additional filter string specified in the ldap conf file. Details, and patches, available on my blog: http://blog.bonnydoonmedia.com/post.cfm/patches-for-apache-james-mail-server-3-0-beta5 On Oct 27, 2014, at 2:05 PM, Robert Munn cfmuns...@gmail.com wrote: Forgot one thing. Just above the try{} block, Transport transport is defined. I changed it to this: SMTPTransport transport = null; On Oct 27, 2014, at 1:54 PM, Robert Munn cfmuns...@gmail.com wrote: Here is my code. Import the SMTPTransport class, and replace this: transport = session.getTransport(outgoingMailServer); with this: transport = (SMTPTransport) session.getTransport(outgoingMailServer); transport.setLocalHost( props.getProperty(mail.smtp.localhost, heloName) ); I added: !-- Set the HELO/EHLO name to use when connectiong to remote SMTP-Server -- mail.smtp.localhostmail.legacyavatar.com/mail.smtp.localhost and I have confirmed that it is being picked up by props.getProperty(“mail.smtp.localhost”). On Oct 27, 2014, at 1:23 PM, Robert Munn cfmuns...@gmail.com wrote: Great stuff. I got the build working as well. I don’t like the fact that we’re forcing it to use SMTPTransport, ruling out using other transport providers, but if you look at the section of the code just below there, you see this: // if the transport is a SMTPTransport (from sun) some // performance enhancement can be done. if (transport.getClass().getName().endsWith(.SMTPTransport)) { so there is a section that is testing the class and adding extensions already. I might wrap the code in a class name check and only call setLocalHost() if I find org.apache.geronimo.javamail.transport.smtp.SMTPTransport. Also, you only need to import that class, not the entire org.apache.geronimo.javamail.transport.smtp.* package. Better for the memory footprint. I will help with jDKIM, I will need to set it up myself. Where to start? On Oct 27, 2014, at 12:29 PM, Jerry Malcolm techst...@malcolms.com wrote: Well, Robert, you get the prize It works (finally)! Two changes required to RemoteDelivery mailet: Add: import org.apache.geronimo.javamail.transport.smtp.*; Right after: transport = session.getTransport(outgoingMailServer); add: ((org.apache.geronimo.javamail.transport.smtp.SMTPTransport)transport).setLocalHost( mail.jwmhosting.com); or be more generic and get the value from props. The setLocalHost needs to be right after the object is instantiated since the HELO is sent on one of the first calls to transport. This fixes it (thank you so much for your help). But Geronimo is still not following the spec and honoring the property mail.smtp.localhost. It needs to be fixed in a subsequent release. Basically everybody using James 3 needs to add this fix to the mailet, at least if running on a Windows server. Or verify through mail-tester.com that the HELO is correct. Going back to the orig problem, gmail was not delivering tons of my mail due to this. Thanks again. Now anybody offer any help on getting jDKIM working? I've got it implemented and the DNS is set up. But mail-tester is telling me the signature is invalid. On to the next problem. Jerry On 10/27/2014 2:00 PM, Jerry Malcolm wrote: The mailet only sees 'transport' which is cast to generic javax.mail.Transport. The localhost methods and connection methods are all part of the geronimo impl. You'll need to cast the transport to the geronimo package for the class, then see if you can get the connection object from the transport. Might work. But non-trivial. I'll play around with that was well. Jerry On 10/27/2014 1:41 PM, Robert Munn wrote: Here is the base code. Note localHost is a property of the MailConnection class. Note also that there is a setLocalHost() method. I am going to try setting the localhost property from RemoteDelivery using setLocalHost( localHost ). public String getLocalHost() throws MessagingException { if (localHost == null) { try { localHost = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { // fine, we're misconfigured - ignore } if (localHost == null) { localHost = props.getProperty(MAIL_LOCALHOST); } if (localHost == null) { localHost = props.getSessionProperty(MAIL_LOCALHOST); } if (localHost == null) { throw new MessagingException(Can't get local hostname. + Please correctly configure JDK/DNS or set mail.smtp.localhost); } }
Re: Does james re-use messageID?
You should use msg.getMessageId() On 10/21/2014 07:35 AM, Girivaraprasad Nambari wrote: Hi Everyone, I have observed an interesting scenario today with James messageID, I received few hundred emails and all emails got incremented messageID. Today I deleted few old emails. The emails I received after cleaning up old emails got old message Id's. 1) Does james re-use messageID? If yes, is there anyway we can disable this feature? In my code I am using following statement to retrieve message ID: MimeMessage msg = (MimeMessage) cMsg; int messageNumber = msg.getMessageNumber(); As per mail specification, shouldn't messagenumber be unique? Any help appreciated. Thank you, Giri - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Apache James - Connect IMAP lib to backend
Look at how server module does https://svn.apache.org/repos/asf/james/server/trunk/protocols/protocols-imap4/ On 02/16/2015 11:31 PM, Pedro Teixeira wrote: Hi, I need to use Apache James IMAP Lib to create an interface that allow clients to connect through IMAP protocol. However I didn´t found documentation to create this, specially how to handle messages that server receives. I initialized the lib like this: IMAPServer imapServer = new IMAPServer(); XMLConfiguration conf = new XMLConfiguration(new File(C://imap.conf)); imapServer.setLog(LoggerFactory.getLogger(CMSContextListener.class)); imapServer.configure(conf); imapServer.init(); The question is, how can I handle the client requests? How can I store the client data to Database or HBase, etc… ? Thanks in advance, Pedro Teixeira. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: brotenet proposal
Can you upload the source (vector) on a jira? On 12/15/2014 10:02 AM, Michael Bailly wrote: Le 12/12/2014 08:09, Michalis Papachristoforou a écrit : Here is a GitHub link where you'll find some proposals: https://github.com/brotenet/james-call-for-logo They're nice ! Especially the second one... - 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 helping. We need you. Eric On 10/18/2014 05:27 AM, Robert Munn wrote: I should have said “Not a troll”. :-) I have just completed a build of the latest beta5 from trunk and I am going to make a Youtube video to demonstrate how to do it. Robert On Oct 17, 2014, at 2:54 PM, Robert Munn robert.d.m...@gmail.com wrote: I don’t know about the level of support from the official maintainers. I had some trouble getting my implementation running, but since I got it configured the way I wanted it I have had no trouble with it. Maybe that’s why the list isn’t very active - once you have it running, there isn’t much to do. At any rate, I am going to put up a bunch of material about James and share it with everyone else. Not that I am an expert in the source code or anything of the sort, but I will share my experiences with the product and examples of how to implement the software and basic features. Also, I have a stable build of beta 5, which is much improved over beta 4. If you would like a copy, feel free to email me off list. I will make it available online soon. If you would like to make sure I am a troll, you can see some of my work here: https://github.com/robertdmunn Robert On Oct 17, 2014, at 10:06 AM, Lee Chalupa lchal...@seelink.org wrote: Do you hear your voice's echo? I had a similar experience with James a couple of months ago. It took weeks to try to get on their mailing list. There are a couple of people that appear to be trying to answer inquiries but they are clearly overwhelmed. As for trying to find a James 3 version to use? The site says to use Beta 4. It did not work. I could not find any info on the James web site about this problem. I found the patch at the stackoverflow site. I thought I would try Beta 5, but this too I wasn't able to find nor was I able to determine what the release contained. My related posts went unanswered. No way was I going to risk trying to rely on this level of support. I no longer use James. I was willing to get involved and help support James but I found no help in trying to even get a foothold in the application. I hope your mileage will vary greatly from my experience. My intent is not to flame this project. I'm Just telling you what I remember about my experiences. Sorry I don't have better news to share with you. Lee On 10/17/2014 10:43 AM, anavg...@gmail.com wrote: Hi, Can any one please share status update? Or where to get status updates? Sent from my Windows Phone -Original Message- From: Mike lepore michael.lepore.w...@gmail.com Sent: 10/16/2014 10:30 PM To: server-user@james.apache.org server-user@james.apache.org Subject: apache-james project status? is the apache-james project still going? I've used james2.3 for many years and just recently considered switching to james3 because of some issues with verizon.net with SSL authentication with Remote Deliveries. However, it looks like there hasn't been a new release since Beta5 nightly update in 2012. What is the state of the project? It's not even clear how to get the latest source code and try to build it. I see some maven repositories, but it isn't clear whether that's the latest source code or not. - 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: IMAP server crashes after some time - looking for cause
beta4 was suffering from deadlocks which are fixed in trunk. On 10/11/2014 01:15 PM, Josip Almasi wrote: On 10/10/2014 04:24 PM, mathias.eck...@t-systems.com wrote: Hello Team, we are currently experiencing the same issues as described already here: http://www.mail-archive.com/server-user@james.apache.org/msg14761.html We are running james server beta 4 on a linux server with a oracle or a mysql database. After some time the we get timeouts when trying to connect with imap. The occurrence seems to be by chance. We couldn't reproduce the issue yet with tests (which is very important for us at the moment). What kind of tests? Does anybody know under what circumstances this issue occurs or what concrete activity triggers this issue? But in the mail archive link you provided, Eric Charles answered it's solved in beta5:) Regards... - 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: Urgent Spamhaus Help Needed - james 2.3.2
First check with a test toolthat the internet does not see you as open relay https://www.google.be/search?q=smtp+open+relay+test If OK, simply ask to spamhaus to remove your ip from their blacklist. On 09/17/2014 11:49 AM, Pete Williams wrote: Hi I have been successfully running a James email server for about the last 3 years. It is not an open relay. It checks clean with things like MX toolbox. Our fixed IP address keeps getting listed on Spamhaus. I am certain that we are not infected, and that James is configured OK. Our cloud based service sends emails that subscribers have asked for. It runs reports and emails them, and sends email notifications. They pay for this service, so this is stuff they want to see. I need to find out why we are being listed, and if these emails are being seen as spam by 'a trusted third party' as the spamhaus website puts it. If you can help at all, please do. I don't know how to proceed. Thanks Pete. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: JAMES based Applications/Products
Just create an account on https://wiki.apache.org/james/FrontPage?action=newaccount On 08/27/2014 03:55 PM, Girivaraprasad Nambari wrote: I think most of the write rights are with Eric. He needs to grant one of you authority to edit the Wiki. On Wed, Aug 27, 2014 at 9:26 AM, Fernando Cassia fcas...@gmail.com wrote: On Wed, Aug 27, 2014 at 1:32 AM, Mahesh Sivarama Pillai srm...@gmail.com wrote: I don't think I have permission to update the wiki page And who does?. That's worth investigating :) FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act - George Orwell - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
Seems like you hooked the imap protocol with your own implementation. mailreaderservice.MailReader$1.run(MailReader.java:121) If this is the case, you have to debug what's happening in this mailreaderservice. Can you share the configuration changes you made? On 08/12/2014 05:54 PM, Girivaraprasad Nambari wrote: Hi Eric, Thanks for responding. you are back, which is good news for James community. That is the full stack track I got after enable imap.debug. *wrong password?wrongly cased password?* I did couple of things to validate wrong password (or) wrong case password may not be the reason: 1) Manually updated password with james-cli.bat 2) Reverse hashed Password from James users table and that is exact match with what user entering Any other thoughts? Thanks for your time and help! On Tue, Aug 12, 2014 at 11:45 AM, Eric Charles e...@apache.org wrote: wrong password? wrongly cased password? can you paste the rest of the stacktrace (if any)? On 08/12/2014 05:34 AM, Girivaraprasad Nambari wrote: Hi Team, Out of all users we have, only one user having authentication issue with following debug trace. Can someone please help me with how I can solve this? Thanks for your time and help! DEBUG: JavaMail version 1.4.7 DEBUG: URL jar:file:/lib/imap.jar!/META-INF/javamail.providers DEBUG: successfully loaded resource: jar:file:/lib/imap.jar!/META-INF/javamail.providers DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle] DEBUG IMAP: mail.imap.fetchsize: 16384 DEBUG IMAP: mail.imap.ignorebodystructuresize: false DEBUG IMAP: mail.imap.statuscachetimeout: 1000 DEBUG IMAP: mail.imap.appendbuffersize: -1 DEBUG IMAP: mail.imap.minidletime: 10 DEBUG IMAP: protocolConnect returning false, host=imap.mailserver.com, user=authorizeduser, password=null DEBUG IMAP: trying to connect to host imap.mailserver.com, port 143, isSSL false * OK JAMES IMAP4rev1 Server Server WIN-64F7SVGJL3I is ready. A0 CAPABILITY * CAPABILITY SASL-IR IDLE LITERAL+ AUTH=PLAIN CONDSTORE ESEARCH CHILDREN UIDPLUS UNSELECT WITHIN ENABLE I18NLEVEL=1 SEARCHRES IMAP4rev1 NAMESPACE QRESYNC A0 OK CAPABILITY completed. DEBUG IMAP: AUTH: PLAIN DEBUG IMAP: protocolConnect login, host=imap.mailserver.com, user= usern...@mailserver.com, password=non-null DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed. Authentication failed. javax.mail.AuthenticationFailedException: AUTHENTICATE failed. Authentication failed. at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:661) at javax.mail.Service.connect(Service.java:317) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at mailreaderservice.MailReader$1.run(MailReader.java:121) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744
Re: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
wrong password? wrongly cased password? can you paste the rest of the stacktrace (if any)? On 08/12/2014 05:34 AM, Girivaraprasad Nambari wrote: Hi Team, Out of all users we have, only one user having authentication issue with following debug trace. Can someone please help me with how I can solve this? Thanks for your time and help! DEBUG: JavaMail version 1.4.7 DEBUG: URL jar:file:/lib/imap.jar!/META-INF/javamail.providers DEBUG: successfully loaded resource: jar:file:/lib/imap.jar!/META-INF/javamail.providers DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle] DEBUG IMAP: mail.imap.fetchsize: 16384 DEBUG IMAP: mail.imap.ignorebodystructuresize: false DEBUG IMAP: mail.imap.statuscachetimeout: 1000 DEBUG IMAP: mail.imap.appendbuffersize: -1 DEBUG IMAP: mail.imap.minidletime: 10 DEBUG IMAP: protocolConnect returning false, host=imap.mailserver.com, user=authorizeduser, password=null DEBUG IMAP: trying to connect to host imap.mailserver.com, port 143, isSSL false * OK JAMES IMAP4rev1 Server Server WIN-64F7SVGJL3I is ready. A0 CAPABILITY * CAPABILITY SASL-IR IDLE LITERAL+ AUTH=PLAIN CONDSTORE ESEARCH CHILDREN UIDPLUS UNSELECT WITHIN ENABLE I18NLEVEL=1 SEARCHRES IMAP4rev1 NAMESPACE QRESYNC A0 OK CAPABILITY completed. DEBUG IMAP: AUTH: PLAIN DEBUG IMAP: protocolConnect login, host=imap.mailserver.com, user= usern...@mailserver.com, password=non-null DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed. Authentication failed. javax.mail.AuthenticationFailedException: AUTHENTICATE failed. Authentication failed. at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:661) at javax.mail.Service.connect(Service.java:317) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at mailreaderservice.MailReader$1.run(MailReader.java:121) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: File Repository James 2.3.2
For pure smtp relay, v2 is better tested and is known to work in various production deployments. It supports pop3 but not imap, so if you don't need imap and focus on smtp, v2 is the best choice. Simply be aware that if you face an issue and want a patch committed, and released, you will get that less easily than in v3. If I was you, I would take a bit more time to test both and see how they behave, assuming you have enough timeslots to put a test infrastructure in place. On 08/10/2014 09:18 AM, Mahesh Sivarama Pillai wrote: Hi Eric, Thanks. I see that issue is fixed. I am going to use 2.3.2 which is the stable version. I cannot use v3 at this moment as its not stable and I cannot convince the people around here to go ahead with v3. Do you still see I would encounter these kind of issues with 2.3.2 ? What other options that I can explore in 2.3.2 ? I have read in the mailing lists about people using James 2.3.2 with huge load. Are you saying James is not a candidate for the specific use case that I mentioned earlier ? Thanks Mahesh On Sun, Aug 10, 2014 at 12:37 PM, Eric Charles e...@apache.org wrote: Probably because you risks errors like JAMES-612 - All mails are 2 serialized files. Off the record, I guess a unreleased version is not the best for your project, but you will get more functionalities and support going to v3. On 08/10/2014 07:00 AM, Mahesh Sivarama Pillai wrote: Hi All, In the James v2 documentation it is mentioned as File repositories are not recommended for large or performance-critical configurations. I am planning to use James 2.3.2 for a large and performance critical use case. I am expecting around 100K emails a day with a maximum attachment size of 20 MB (not all attachments will have 20 MB size). I have to strip off the attachments from the email and store in a File storage cloud. The above line about File repository really worries me. If not File repository, which other repository gives high performance and reliability. I don't think storing emails with large attachments in DB is a good idea. Please provide your inputs and guidance. Thanks Mahesh - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: File Repository James 2.3.2
No limitation nor constraint at all to run your use case on V2, and even maybe recommended as V3 mailetcontainer certainly still needs more tuning, while V2 is stable and tested. Benchmarking V2 vs V3 should give interesting figures, but we didn't do anything yet. You may also need support to use Postage which has no release so far. On 08/10/2014 12:37 PM, Mahesh Sivarama Pillai wrote: I will definitely evaluate v3. But our use case doesn't need IMAP. Its not a mail server which many users are going to access from their local mail clients. What we are planning is an email application platform where when an email is received over SMTP, call a web service and store the attachment in another cloud storage.The JAMES server will not relay the emails to any external mail servers. The mail flow ends when it arrives at JAMES. We have an enterprise email server forwarding the emails to this proposed James server. The earlier implementation was using a perl script which was configured through an alias file in SendMail. So essentially the sendmail+perl is going to be replaced with JAMES+Mailets. I have setup Postage and I am going to test the performance with the scenarios. But wanted an expert advice before I start testing them. Do you foresee any issues implementing this using JAMES 2.3.2 ? I know that the performance of the whole flow will depend on the implementation of Mailet. I wanted to know if there are any limitations or constraints etc with the out of the box features of JAMES 2.3.2 considering my use case ? Thanks Mahesh On Sun, Aug 10, 2014 at 3:41 PM, Eric Charles e...@apache.org wrote: For pure smtp relay, v2 is better tested and is known to work in various production deployments. It supports pop3 but not imap, so if you don't need imap and focus on smtp, v2 is the best choice. Simply be aware that if you face an issue and want a patch committed, and released, you will get that less easily than in v3. If I was you, I would take a bit more time to test both and see how they behave, assuming you have enough timeslots to put a test infrastructure in place. On 08/10/2014 09:18 AM, Mahesh Sivarama Pillai wrote: Hi Eric, Thanks. I see that issue is fixed. I am going to use 2.3.2 which is the stable version. I cannot use v3 at this moment as its not stable and I cannot convince the people around here to go ahead with v3. Do you still see I would encounter these kind of issues with 2.3.2 ? What other options that I can explore in 2.3.2 ? I have read in the mailing lists about people using James 2.3.2 with huge load. Are you saying James is not a candidate for the specific use case that I mentioned earlier ? Thanks Mahesh On Sun, Aug 10, 2014 at 12:37 PM, Eric Charles e...@apache.org wrote: Probably because you risks errors like JAMES-612 - All mails are 2 serialized files. Off the record, I guess a unreleased version is not the best for your project, but you will get more functionalities and support going to v3. On 08/10/2014 07:00 AM, Mahesh Sivarama Pillai wrote: Hi All, In the James v2 documentation it is mentioned as File repositories are not recommended for large or performance-critical configurations. I am planning to use James 2.3.2 for a large and performance critical use case. I am expecting around 100K emails a day with a maximum attachment size of 20 MB (not all attachments will have 20 MB size). I have to strip off the attachments from the email and store in a File storage cloud. The above line about File repository really worries me. If not File repository, which other repository gives high performance and reliability. I don't think storing emails with large attachments in DB is a good idea. Please provide your inputs and guidance. Thanks Mahesh - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: File Repository James 2.3.2
My pleasure. tag/james-2_20120613 uses ant against V2, while trunk uses maven against V3, that's why the jar are not in the lib folder. On 08/10/2014 01:43 PM, Mahesh Sivarama Pillai wrote: Thanks a lot Eric. That gives me more confidence on V2. I have built Postage from source and did a sanity run for a minute. I downloaded the source from http://svn.apache.org/repos/asf/james/postage/tags/james-2_20120613/ as opposed to the trunk mentioned in the wiki entry for Postage. Trunk doesn't have all the jars in lib. I will share the results once I do a load test with my expected load. And please expect more questions from me as I progress. Thanks again for the help/inputs so far. Thanks Mahesh On Sun, Aug 10, 2014 at 4:40 PM, Eric Charles e...@apache.org wrote: No limitation nor constraint at all to run your use case on V2, and even maybe recommended as V3 mailetcontainer certainly still needs more tuning, while V2 is stable and tested. Benchmarking V2 vs V3 should give interesting figures, but we didn't do anything yet. You may also need support to use Postage which has no release so far. On 08/10/2014 12:37 PM, Mahesh Sivarama Pillai wrote: I will definitely evaluate v3. But our use case doesn't need IMAP. Its not a mail server which many users are going to access from their local mail clients. What we are planning is an email application platform where when an email is received over SMTP, call a web service and store the attachment in another cloud storage.The JAMES server will not relay the emails to any external mail servers. The mail flow ends when it arrives at JAMES. We have an enterprise email server forwarding the emails to this proposed James server. The earlier implementation was using a perl script which was configured through an alias file in SendMail. So essentially the sendmail+perl is going to be replaced with JAMES+Mailets. I have setup Postage and I am going to test the performance with the scenarios. But wanted an expert advice before I start testing them. Do you foresee any issues implementing this using JAMES 2.3.2 ? I know that the performance of the whole flow will depend on the implementation of Mailet. I wanted to know if there are any limitations or constraints etc with the out of the box features of JAMES 2.3.2 considering my use case ? Thanks Mahesh On Sun, Aug 10, 2014 at 3:41 PM, Eric Charles e...@apache.org wrote: For pure smtp relay, v2 is better tested and is known to work in various production deployments. It supports pop3 but not imap, so if you don't need imap and focus on smtp, v2 is the best choice. Simply be aware that if you face an issue and want a patch committed, and released, you will get that less easily than in v3. If I was you, I would take a bit more time to test both and see how they behave, assuming you have enough timeslots to put a test infrastructure in place. On 08/10/2014 09:18 AM, Mahesh Sivarama Pillai wrote: Hi Eric, Thanks. I see that issue is fixed. I am going to use 2.3.2 which is the stable version. I cannot use v3 at this moment as its not stable and I cannot convince the people around here to go ahead with v3. Do you still see I would encounter these kind of issues with 2.3.2 ? What other options that I can explore in 2.3.2 ? I have read in the mailing lists about people using James 2.3.2 with huge load. Are you saying James is not a candidate for the specific use case that I mentioned earlier ? Thanks Mahesh On Sun, Aug 10, 2014 at 12:37 PM, Eric Charles e...@apache.org wrote: Probably because you risks errors like JAMES-612 - All mails are 2 serialized files. Off the record, I guess a unreleased version is not the best for your project, but you will get more functionalities and support going to v3. On 08/10/2014 07:00 AM, Mahesh Sivarama Pillai wrote: Hi All, In the James v2 documentation it is mentioned as File repositories are not recommended for large or performance-critical configurations. I am planning to use James 2.3.2 for a large and performance critical use case. I am expecting around 100K emails a day with a maximum attachment size of 20 MB (not all attachments will have 20 MB size). I have to strip off the attachments from the email and store in a File storage cloud. The above line about File repository really worries me. If not File repository, which other repository gives high performance and reliability. I don't think storing emails with large attachments in DB is a good idea. Please provide your inputs and guidance. Thanks Mahesh - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e
Re: Email to Cloud Use case
When received, the mail is kind-of queued in the mailet container [1]. We also have specific queues for the RemoteDelivery case, but in that case, the dequeing is not managed by the mailet lifecycle. Wherever you plan to have an external queuing system (JMS or whatever), you need to take care on the communication between the mailet (a custom one you will have to write) and the system you are calling. Timeout and worth, infinite socket, can put your james server down. When you say, if I have an email in Inbox, you must realize that at that time, the whole processing by the mailet container is already done. You just have to configure so that your mailet in called before the mail is delivered locally. [1] http://james.apache.org/server/3/feature-mailetcontainer.html On 08/04/2014 12:05 PM, Mahesh Sivarama Pillai wrote: Thanks Eric. A queuing system definitely makes sense here. I am trying to understand bit more on the design considerations while using James. Spool itself is a queue. If I have enough storage space and the SLA expectation for processing the email is within a reasonable amount of time say 5 seconds, Can I have this functionality as part of the main processor itself ? Means, if I have an email in Inbox, that means the cloud service have been called for that email. Otherwise I can see the email in the error folder or something like that.. What are your thoughts ? Thanks Mahesh On Sun, Aug 3, 2014 at 1:43 PM, Eric Charles e...@apache.org mailto:e...@apache.org wrote: You have to implement your self the queing system, a bit like the RemoteDelivery mailet. Having an abstraction for this feature would be indeed cool. On 07/25/2014 04:59 PM, Mahesh Sivarama Pillai wrote: Thanks Ozgur. We are planning to have a it forwarded it to an ESB which has the queuing and other features in the next phase. If I implement the feature in the mailtet without a Queue, the messages will be available in the spool and will move to the inbox only when the webservice call is completed. Yes, Spool directory will get piled up depending on the performance of the Mailet and the number of spool threads configured. Do you see any other issue in this short term approach. If you don't mind, can you please share how you configured James to handle the errors/timeout etc in the WebService call ? Like moving to the error directory and reprocessing later etc ? What are the James related design considerations and best practices that you followed ? Thanks Mahesh On Fri, Jul 25, 2014 at 1:09 AM, Özgür EROĞLU oeroglu.c...@gmail.com mailto:oeroglu.c...@gmail.com wrote: On 07/13/2014 11:16 PM, Mahesh Sivarama Pillai wrote: Hi, It would be better to put mail or its reference (if you use a db or filesystem to save messages temporarily) to a message queue and then at the service side implement a consumer to get messages for processing. This way you will eliminate the constraint to have 7/24 alive service. We did smt. similar in a project by writing a mailet to forward messages to web services. Ozgur Eroglu Hi, I am planning to use James Server for a Mail-to-Cloud use case. Here is what I am planning to do. 1. Receive email redirected from the Corporate Email Server to James (100K emails per day) 2. Do some validation/filter etc on the received email 3. Call the cloud web service with the email content and simultaneously, upload the attachment(max size may be ~15 mb) in the mail to another file storage cloud. I am planning to implement a Mailet for implementing this use case. My questions are; 1. What are all the design considerations that I should be looking at while implementing this ? 2. I may want to retry the emails which failed during the cloud interaction. How can I do this ? 3. Is anyone implemented a similar use case and can you please share your experiences ? I want to use 2.3.2 because it is the stable version as 3.0 is still in Beta and I cannot convince my company to use a software which is in beta version. Highly appreciate your thoughts and inputs on these. Thanks Mahesh - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org mailto:server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org mailto:server-user-h...@james.apache.org
Re: 5.5.2: Helo command rejected
Are you meaning 552 Requested mail action aborted: exceeded storage allocation? In that case, the issue is on the remote SMTP mailbox which is full. Did you finally make it work? On 07/22/2014 09:55 PM, Marc de Oliveira wrote: I have now succeeded in getting James 3.0 beta 5 to work with multible email aliases for each account by removing the ValudRcptHandlet mailet. Next I am getting 5.5.2 errors when sending to external users. I have tried to set the following in the RemoteDelivery mailet (as suggested in previous mail on the topic): bind 192.168.1.7 /bind mail.smtp.localaddress 192.168.1.7 /mail.smtp.localaddress mail.smtp.localhost mail.deoliveira.dk /mail.smtp.localhost I have also set helloName autodetect=falsemail.deoliveira.dk /helloName in the smtpserver.xml file but it does not seem to have any effect on the helo name being sent. What am I missing? Regards, Marc de Oliveira Sent with AquaMail for Android http://www.aqua-mail.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
Re: Adding Users Programmatically + MySQL
unstuck with https://svn.apache.org/repos/asf/james/server/trunk/data/data-library/src/main/java/org/apache/james/user/lib/UsersRepositoryManagement.java You will need to understand the spring injection to use it in your app. On 07/23/2014 11:22 AM, shiyas wrote: Hello : can u describ how u find the way to add email useres using java programatic way?? hope u can help me.. am n stuck with apache james server thank you advance - 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: Setting SMTP properties with JMX
All James configs are read-only for now. Once the server is started, they can not be changed on the fly. Obviously, that's a feature we would like to implement. On 07/24/2014 12:26 PM, Özgür EROĞLU wrote: Hi all, Is there a way to set smtp properties such as max. message size using JMX . As far as I see there is no MBean for setting SMTP props. but one(SMTPServerMBean) to read values from server. Thanks, Ozgur - 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: Email to Cloud Use case
You have to implement your self the queing system, a bit like the RemoteDelivery mailet. Having an abstraction for this feature would be indeed cool. On 07/25/2014 04:59 PM, Mahesh Sivarama Pillai wrote: Thanks Ozgur. We are planning to have a it forwarded it to an ESB which has the queuing and other features in the next phase. If I implement the feature in the mailtet without a Queue, the messages will be available in the spool and will move to the inbox only when the webservice call is completed. Yes, Spool directory will get piled up depending on the performance of the Mailet and the number of spool threads configured. Do you see any other issue in this short term approach. If you don't mind, can you please share how you configured James to handle the errors/timeout etc in the WebService call ? Like moving to the error directory and reprocessing later etc ? What are the James related design considerations and best practices that you followed ? Thanks Mahesh On Fri, Jul 25, 2014 at 1:09 AM, Özgür EROĞLU oeroglu.c...@gmail.com wrote: On 07/13/2014 11:16 PM, Mahesh Sivarama Pillai wrote: Hi, It would be better to put mail or its reference (if you use a db or filesystem to save messages temporarily) to a message queue and then at the service side implement a consumer to get messages for processing. This way you will eliminate the constraint to have 7/24 alive service. We did smt. similar in a project by writing a mailet to forward messages to web services. Ozgur Eroglu Hi, I am planning to use James Server for a Mail-to-Cloud use case. Here is what I am planning to do. 1. Receive email redirected from the Corporate Email Server to James (100K emails per day) 2. Do some validation/filter etc on the received email 3. Call the cloud web service with the email content and simultaneously, upload the attachment(max size may be ~15 mb) in the mail to another file storage cloud. I am planning to implement a Mailet for implementing this use case. My questions are; 1. What are all the design considerations that I should be looking at while implementing this ? 2. I may want to retry the emails which failed during the cloud interaction. How can I do this ? 3. Is anyone implemented a similar use case and can you please share your experiences ? I want to use 2.3.2 because it is the stable version as 3.0 is still in Beta and I cannot convince my company to use a software which is in beta version. Highly appreciate your thoughts and inputs on these. Thanks Mahesh - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Looking for help to get started with mailets
Hi Lee, You can read more on configuration against spam on https://james.apache.org/server/3/config-antispam.html Your help will be appreciated, like for example better documenting on that page based on your experience. On 07/26/2014 08:43 PM, Robert Munn wrote: Which version of James are you using? James beta 4 is the listed version on the web site but beta 5 is available and has a bunch of changes from beta 4. I am using beta 5 and the configuration for mailets is in ./conf/mailetcontainer.xml. The available documentation can be found here: http://james.apache.org/mailet/standard/mailet-report.html Just an additional thought I would also check whether your server is configured to comply with RFC standards for spam prevention: http://en.wikipedia.org/wiki/Anti-spam_techniques#Enforcing_RFC_standards HELO/EHLO checking, greeting delay, and greylisting are a good base of measures to employ as many spambot programs can’t cope with them. If you already have those measures set up and are still getting lots of spam, maybe it’s time to configure Spamassassin. James beta 5 has a Spamassassin handler. I don’t know about beta4. https://james.apache.org/server/3/apidocs/org/apache/james/smtpserver/fastfail/SpamAssassinHandler.html On Jul 26, 2014, at 10:41 AM, Lee Chalupa lchal...@seelink.org wrote: Hello: I'm using James3 in production. I'm interested in reducing the amount of spam my server is receiving. I'm interested in using some standard mailets or building some to be able to do greylisting. I'm confused as to where the standard mailets are located. Also I see references to a Mailet container. What is this? Is the mailet container something that is completely separate from the James server? I also see references to Apache James Mailet,and Apache James Mailet Base Base but I cannot find any definitions of those terms. Could someone help me get a foothold on the components that I will need to get started. Thank you. This is a cool product. I want to get involved with the project to help. Lee Chalupa - 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: Login converted to lowercase in James 3 Beta 5 automatically?
We had a discussion on case on https://issues.apache.org/jira/browse/JAMES-1369 It is also a matter of RFC. Quoting Stefano in a comment domain names are case insensitive, so either we always lowercase them or we compare using a case insensitive algorithm. the userpart instead can be case sensitive. So case must always be preserved by MUA/MDA/MSA. We should revisit the spec and be sure what behavior is expected on the user part. Once we are sure, implementing it can be easily done (probably at the management and the protocols sides). On 08/01/2014 08:38 PM, seb wrote: Thanks, but can't do this. It is a third party system that creates account automatically, and the login contains uppercase letters. When it tries to send with exactly these credentials, the login is rejected. Hm. This is really a weird bug, so obvious. -- View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52776.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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Commercial Support for JAMES ??
I know some committers (include my self) have already given ad-hoc consultancy services for specific requests. To my knowledge, for now, there is no company backing Apache James, giving support... This may hopefully change soon. On 07/30/2014 10:31 AM, Mahesh Sivarama Pillai wrote: Hi All, I know JAMES is an opensource server under Apache License. I am finding it little bit difficult to convince my management to go with JAMES for our use cases. Do we have any commercial support available for JAMES ? Is someone providing or ready to provide the support. Please advice.. Thanks Mahesh - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Would be great if you could reopen the JAMES-1369, dig in the code and propose a patch. The impact is on the user creation and the protocols (pop, imap, stmp) where the correct case must be applied. MySql is known/supposed to work. Can you send the log (exception...) in another thread? On 08/03/2014 10:58 AM, seb wrote: Thanks. The current implementation is definitely broken. It is a weird behavior if you create an account with uppercase letters in the user part, and said account is not working afterwards. I tried to use a MySQL as an alternative data store and modify the data myself, but SQL support seems to break right after the automatic table creation. Hm. -- View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52795.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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: 5.5.2: Helo command rejected
Which version are you using? We switched to geronimo javamail and this had side-effects... If it is working with James 2.3.2, we can assume the DNS (and reverse DNS) is not the issue. Can you set in your mailet match=All class=RemoteDelivery - a helo.name with the value of your hostname - mail.smtp.localhost with the value of your local host name used (InetAddress.getLocalHost().getHostName()) If this does not work, you can enable debug and look at the logs with debugtrue/debug mail.debugtrue/mail.debug (add this in your RemoteDelivery mailet). On 08/03/2014 11:05 AM, Marc wrote: No, I am not meaning 552. I am meaning 5.5.2: Helo command rejected as indicated by the subject line. I had to give up on James 3 and go back to 2.3.2 where my mails are not getting rejected by many mail servers. If you have any ideas as what I could do to avoid that my mails get rejected I am willing to give it another try. Regards, Marc de Oliveira Sent with AquaMail for Android http://www.aqua-mail.com On 3. aug. 2014 09.51.08 Eric Charles e...@apache.org wrote: Are you meaning 552 Requested mail action aborted: exceeded storage allocation? In that case, the issue is on the remote SMTP mailbox which is full. Did you finally make it work? On 07/22/2014 09:55 PM, Marc de Oliveira wrote: I have now succeeded in getting James 3.0 beta 5 to work with multible email aliases for each account by removing the ValudRcptHandlet mailet. Next I am getting 5.5.2 errors when sending to external users. I have tried to set the following in the RemoteDelivery mailet (as suggested in previous mail on the topic): bind 192.168.1.7 /bind mail.smtp.localaddress 192.168.1.7 /mail.smtp.localaddress mail.smtp.localhost mail.deoliveira.dk /mail.smtp.localhost I have also set helloName autodetect=falsemail.deoliveira.dk /helloName in the smtpserver.xml file but it does not seem to have any effect on the helo name being sent. What am I missing? Regards, Marc de Oliveira Sent with AquaMail for Android http://www.aqua-mail.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 - 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: 5.5.2: Helo command rejected
Using the latest and greatest is always a good idea. In this particular case, the geronimo javamail may be less stable than the Oracle javamail - I just saw on geronimo mailing list the release of geronimo-javamail-1.8.4, so we could discuss upgrading or going back to Oracle javamail. But I don't see why you couldn't make it work with james3 as it is now if james2.3.2 is working. On 08/03/2014 12:26 PM, Marc wrote: I am using beta 5 (20140615.003933-504). Is that a bad idea? - Marc Sent with AquaMail for Android http://www.aqua-mail.com On 3. aug. 2014 11.40.28 Eric Charles e...@apache.org wrote: Which version are you using? We switched to geronimo javamail and this had side-effects... If it is working with James 2.3.2, we can assume the DNS (and reverse DNS) is not the issue. Can you set in your mailet match=All class=RemoteDelivery - a helo.name with the value of your hostname - mail.smtp.localhost with the value of your local host name used (InetAddress.getLocalHost().getHostName()) If this does not work, you can enable debug and look at the logs with debugtrue/debug mail.debugtrue/mail.debug (add this in your RemoteDelivery mailet). On 08/03/2014 11:05 AM, Marc wrote: No, I am not meaning 552. I am meaning 5.5.2: Helo command rejected as indicated by the subject line. I had to give up on James 3 and go back to 2.3.2 where my mails are not getting rejected by many mail servers. If you have any ideas as what I could do to avoid that my mails get rejected I am willing to give it another try. Regards, Marc de Oliveira Sent with AquaMail for Android http://www.aqua-mail.com On 3. aug. 2014 09.51.08 Eric Charles e...@apache.org wrote: Are you meaning 552 Requested mail action aborted: exceeded storage allocation? In that case, the issue is on the remote SMTP mailbox which is full. Did you finally make it work? On 07/22/2014 09:55 PM, Marc de Oliveira wrote: I have now succeeded in getting James 3.0 beta 5 to work with multible email aliases for each account by removing the ValudRcptHandlet mailet. Next I am getting 5.5.2 errors when sending to external users. I have tried to set the following in the RemoteDelivery mailet (as suggested in previous mail on the topic): bind 192.168.1.7 /bind mail.smtp.localaddress 192.168.1.7 /mail.smtp.localaddress mail.smtp.localhost mail.deoliveira.dk /mail.smtp.localhost I have also set helloName autodetect=falsemail.deoliveira.dk /helloName in the smtpserver.xml file but it does not seem to have any effect on the helo name being sent. What am I missing? Regards, Marc de Oliveira Sent with AquaMail for Android http://www.aqua-mail.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 - 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: Imap Error Message
https://james.apache.org/server/3/monitor-logging.html set in log4j.properties log4j.logger.james.imapserver=DEBUG, IMAPSERVER and post here the exception. On 08/03/2014 06:42 PM, Lee Chalupa wrote: Hello: I'm using the beta five version of James. I'm using Thunderbird for an email client. The problem: Thunderbird is throwing an error saying that the server got disconnected when I request mail delivery. It does so very consistently: Here is what's in the lot: INFO 16:27:16,119 | james.imapserver | ID=1434325079 Connection established from xx.xx.xx.190 WARN 16:27:17,893 | james.imapserver | ID=1434325079 Error while processing imap request: java.lang.NullPointerException - null INFO 16:27:17,895 | james.imapserver | ID=1434325079 Connection closed for xx.xx.xxx=.190 I'm wondering if this error is causing the server to disconnect? I'm learning James so if someone could direct me on how to debug this problem, that would help me contribute in the future. thanks. Lee - 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: Login converted to lowercase in James 3 Beta 5 automatically?
Brilliant! On 08/03/2014 07:06 PM, seb wrote: Thanks so much for your feedback. I got mysql to work (one of these mysterious suddenly it worked issues). For now I have a cron job that fixes the accounts in the JAMES_USER table in the database (quick and dirty hack, it scans the log file and recreates the account spelling to match the log). This way I can continue and it gives me the time to dig deeper and come up with a patch suggestion. Happy sunday, everyone. -- View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52805.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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: ToSenderFolder Mailet Failure (James 3)
Thank you Jerry. We didn't design for the RRT case, indeed. Please open a JIRA and post there the explanations you wrote on the mailing list and submit a patch. We will take it from there. https://issues.apache.org/jira/browse/JAMES On 07/05/2014 04:57 PM, Jerry Malcolm wrote: Update I updated the ToSenderFolder mailet and got it to work properly with my account that uses RecipientRewrite. I cloned some lines from the LocalDelivery mailet that sets up the rrt variable via inject. In ToSenderFolder.doService(), I first call rrt.getMappings() using the sender email address. If result != null, I pull the username string from the result. If result=null, I fall back to the existing code that uses the sender email as the username. Minimal testing so far. But it appears to be working correctly now. As I stated in my previous email, I think this is a bug in the mailet and not a feature request. The mailet should handle by default the situation where the sender email address is NOT the username, and not require my custom hack to make it work. Thanks. Jerry On 7/4/2014 8:30 PM, Jerry Malcolm wrote: I tried activating the ToSenderFolder mailet and could not get it to work. I added some debug code and looked through the source, and I see where the problem is. The mailet assumes that the username (user login name / repository name) is the sender's email address. (see code snippit at the bottom of this post). Where this 'could' be the case, and could be argued that it's that way in many situations, it's not required. My login id for my mail account is m...@mycompany.net. I have several employees that share this one account. However, they send mail as j...@mycompany.net, b...@mycompany.net, and su...@mycompany.net. I use the virtual recipient rewrite function to map all of these ids to the m...@mycompany.net repository. The problem in the mailet is that it is trying to put sent mail in j...@mycompany.net/Sent, etc. which is not a valid repository. In order to fix this, I need to figure out the real username that was used to log in to SMTP. I suspect you're going to tell me that there's not a way in the world to get addressability to the real username inside a mailet, right...? I guess the next option would be to use the recipient rewrite table in the db to map the sender to the repository. I'll look around for a recipient rewrite mapping class that I can use. Or I guess I could just brute-force it directly with a SQL query to the table in the db. Either way, I should be able to determine the real repository name so the mailet can know where to put the Sent message. I believe there is a philosophical design problem currently in the mailet to assume the sender email address is the repository name. But since I need to go ahead and fix this, I'd like to know what the James team would suggest to be the 'right way' to implement the fix. Suggestions? Thx. Jerry -- code snippit-- String username; try { if (usersRepository.supportVirtualHosting()) { username = sender.toString(); } else { username = sender.getLocalPart(); } } catch (UsersRepositoryException e) { throw new MessagingException(e.getMessage()); } - No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4592 / Virus Database: 3986/7800 - Release Date: 07/04/14 - 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: validRecipient list
The information in smtpserver-template.xml is not correct (it should be removed). Is it working if you comment the ValidRcptHandler handler? On 07/06/2014 09:54 PM, Marc de Oliveira wrote: I am still on version 2.3.2 as an early attempt to upgrade to version 3 did not work. I have now tried to install the latest version and this time the server starts up fine and the basic functionality seems to work fine. I am having trouble with my Redirect mailets that I use a lot to merge multiple mail addresses into a single mail account. It seems that some fastfail functionality is denying these alias addresses before they reach my mailet. A comment in the smtpserver.xml template says you need to add the recipient to the validRecipient list if you want to accept email for a recipient which not exist on the server. Where and how do I specify such a validRecipient list? There does not seem to be an example of that in the template file... Regards, Marc de Oliveira Sent with AquaMail for Android http://www.aqua-mail.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
Re: maxDnsProblemRetries doesn't seem to work
Sounds like a bug. Better log it for future solving https://issues.apache.org/jira/browse/JAMES If you can debug it, maybe you can solve it and submit a patch? On 07/09/2014 04:26 PM, Kevin Puscas wrote: I have a test scenario where a email target on another server requires multiple DNS retries before an MX record can be found. I tried setting the maxDnsProblemRetries parameter on the RemoteDelivery maiilet but that seemed to have no effect. When I looked at the code for the RemoteDelivery mailet and walked through with the remote debugger, it appears as if the dns can’t be resolved (targetServers =0) it always throws a permanent exception in the deliver method and therefore won’t retry again. I’m not sure if this is a bug or if I am missing an additional configuration some where else. thanks -- Kevin Puscas Principal Nitor Group, Ltd. trust, illumination, leadership Phone: 301.919.2978 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Need help getting james-3.0.beta5-SNAPSHOT up and going
The apache-james artificats are deprecated. james-server-app is the one to use. On 06/14/2014 02:17 PM, Özgür EROĞLU wrote: Hi, What are the differences between these snapshots in these folders? https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/ https://repository.apache.org/content/repositories/snapshots/org/apache/james/james-server-app/ I am using a very new snapshot from https://repository.apache.org/content/repositories/snapshots/org/apache/james/james-server-app/3.0.0-beta5-SNAPSHOT/ without problems. Ozgur On 06/14/2014 02:37 PM, Eric Charles wrote: .conf files, strange, this should be .xml files... Which exact snapshot are you trying? On 06/10/2014 07:49 PM, Marc Chamberlin wrote: I decided to start over and reinstall James from scratch and do a minimal amount of configuration before starting James, so for the moment ignore my previous email requesting help. Seems I now have a different problem to resolve first. That said, I downloaded this version of James (I had to guess that it is the latest snapshot ) from the repository at https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ and the version I downloaded was - apache-james-3.0-beta5-20121229.091821-854-app.tar.gz http://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/apache-james-3.0-beta5-20121229.091821-854-app.tar.gz Next, I simply renamed 3 of the configuration template files for imapserver, pop3server, and smtpserver .conf files so as to remove the -template part from their names. Started up James, and I get the following error message in wrapper.log - INFO | jvm 1| 2014/06/10 09:25:01 | ERROR 09:25:01,679 | james.mailprocessor | Unable to init matcher All: org.apache.mailet.MailetException: Could not load matcher (All) (java.lang.ClassNotFoundException: org.apache.james.transport.matchers.All) INFO | jvm 1| 2014/06/10 09:25:01 | org.apache.mailet.MailetException: Could not load matcher (All) (java.lang.ClassNotFoundException: org.apache.james.transport.matchers.All) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.container.spring.bean.factory.mailetcontainer.AbstractLoaderBeanFactory.loadFailed(AbstractLoaderBeanFactory.java:60) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.container.spring.bean.factory.mailetcontainer.MatcherLoaderBeanFactory.getMatcher(MatcherLoaderBeanFactory.java:55) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.parseConfiguration(AbstractStateMailetProcessor.java:346) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:119) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:101) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.impl.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:103) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:181) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.impl.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66) INFO | jvm 1| 2014/06/10 09:25:01 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1| 2014/06/10 09:25:01 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) I did some Googling on this error and found it had been reported about a year ago, but the apparent solution was to download the latest version of James (at that time) and use it. Well, I think I have downloaded the latest version, since we are now a year later than when this error was initially reported, so now what do I do? Thanks for any help offered, in advance... Marc... On 06/09/2014 04:37 PM, Marc Chamberlin wrote: Hello - I am trying to get the latest beta version of James running on an openSuSE13.1 x64 system and running into some troubles. Wonder if some kind guru can translate this into plain English for me. I suspect it may have something to do with my domainlist.conf file but I have tried all kinds of permutations with no joy so far... Anywise on startup I am getting the following messages in the wrapper.log file, and going on the assumption that the first error message is the best place to start resolving the problem, I will only include the initial messages and not the whole file. (unless someone asks me for it...) - To unsubscribe, e-mail: server-user
Re: James: No local-part (user account) found at position 1
'@localhost' is not a valid email address. Check your recipient list for such malformed address. On 05/31/2014 02:59 PM, Pete Williams wrote: HI i'm seeing these errors in my James smtpserver log file: Error parsing recipient address: [to:@localhost] [from:]No local-part (user account) found at position 1 It occurs when there are a lot of recipients, and particularly when there are a log of domain names with a dash in them. Each address listed in the 'to' section a few lines above this error looks good (not malformed). If anyone can help to debug this I'd be grateful. James 2.3.4 Cheers, Pete - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Store mails in Custom Folders
There is the ToFolder mailet (see https://issues.apache.org/jira/browse/JAMES-1365) On 06/09/2014 11:45 AM, Raghunath Sandilya wrote: Hi Team, Is there any way of storing mails like incoming mails to be saved to /incoming and outgoing mails to be saved to /outgoing. Thanks in advance. Thanks, Raghu - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Task Scheduling Apache James 3.0 beta5
Great sharing Gustavo. Another option is to override the embedded definitions simply by putting your file (the complete file) in the $JAMES_HOME/conf folder. On 06/04/2014 07:59 PM, Gustavo Sousa wrote: Hi everyone, I figured out where the file is. It could be found inside this JAR: *JAMES_HOME*/lib/james-server-spring-3.0.0-beta5-SNAPSHOT.jar I just had to add my custom configuration at spring-server.xml inside this JAR and everything worked fine! Just sharing the answer, see ya! 2014-06-02 12:12 GMT-03:00 Gustavo Sousa sous...@gmail.com: Hello, I've just had to upgrade my version of Apache James from beta4 to beta5 due to Java 7 issues. I had a Task Schedule configuration, in beta4 version working perfectly, order to perform some tasks asynchronously, however, I couldn't find spring-server.xml file, previously at /conf/META-INF/org/apache/james/ in beta5 version. Therefore, I am not able to configure this tasks on my environment. I would like to know how can I configure those tasks. Thanks in advance! Gustavo. -- Gustavo Henrique de Araújo e Sousa Bacharel em Ciência da Computação UFLA - Universidade Federal de Lavras - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Need help getting james-3.0.beta5-SNAPSHOT up and going
.conf files, strange, this should be .xml files... Which exact snapshot are you trying? On 06/10/2014 07:49 PM, Marc Chamberlin wrote: I decided to start over and reinstall James from scratch and do a minimal amount of configuration before starting James, so for the moment ignore my previous email requesting help. Seems I now have a different problem to resolve first. That said, I downloaded this version of James (I had to guess that it is the latest snapshot ) from the repository at https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ and the version I downloaded was - apache-james-3.0-beta5-20121229.091821-854-app.tar.gz http://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/apache-james-3.0-beta5-20121229.091821-854-app.tar.gz Next, I simply renamed 3 of the configuration template files for imapserver, pop3server, and smtpserver .conf files so as to remove the -template part from their names. Started up James, and I get the following error message in wrapper.log - INFO | jvm 1| 2014/06/10 09:25:01 | ERROR 09:25:01,679 | james.mailprocessor | Unable to init matcher All: org.apache.mailet.MailetException: Could not load matcher (All) (java.lang.ClassNotFoundException: org.apache.james.transport.matchers.All) INFO | jvm 1| 2014/06/10 09:25:01 | org.apache.mailet.MailetException: Could not load matcher (All) (java.lang.ClassNotFoundException: org.apache.james.transport.matchers.All) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.container.spring.bean.factory.mailetcontainer.AbstractLoaderBeanFactory.loadFailed(AbstractLoaderBeanFactory.java:60) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.container.spring.bean.factory.mailetcontainer.MatcherLoaderBeanFactory.getMatcher(MatcherLoaderBeanFactory.java:55) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.parseConfiguration(AbstractStateMailetProcessor.java:346) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:119) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:101) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.impl.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:103) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:181) INFO | jvm 1| 2014/06/10 09:25:01 | at org.apache.james.mailetcontainer.impl.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66) INFO | jvm 1| 2014/06/10 09:25:01 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1| 2014/06/10 09:25:01 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) I did some Googling on this error and found it had been reported about a year ago, but the apparent solution was to download the latest version of James (at that time) and use it. Well, I think I have downloaded the latest version, since we are now a year later than when this error was initially reported, so now what do I do? Thanks for any help offered, in advance... Marc... On 06/09/2014 04:37 PM, Marc Chamberlin wrote: Hello - I am trying to get the latest beta version of James running on an openSuSE13.1 x64 system and running into some troubles. Wonder if some kind guru can translate this into plain English for me. I suspect it may have something to do with my domainlist.conf file but I have tried all kinds of permutations with no joy so far... Anywise on startup I am getting the following messages in the wrapper.log file, and going on the assumption that the first error message is the best place to start resolving the problem, I will only include the initial messages and not the whole file. (unless someone asks me for it...) - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: What's the future of James?
That's really cool Philippe! Just create a new JIRA on https://issues.apache.org/jira/browse/MAILBOX and upload there your patch. Thx, Eric On 06/13/2014 11:26 AM, Philippe Benoit wrote: Hi all, I'm a student and I work at Linagora, a french open source company. I'm currently developping an implementation of James-mailbox for Apache Cassandra with the Datastax java driver. You can see our Stash : http://ci-openpaas.linagora.com/stash/projects/JWC/repos/james-with-cassandra/browse ! If you are interested by this project we can discuss about this in a different discussion thread. We think James is an interesting mail server solution and we are pretty excited to send this contribution. Regards, Philippe On 13/06/2014 09:20, Alan Mehio wrote: possibly there will be a need of digging out some statitics around its usage first. The second is the product is much stable so the issue are less. I was able to build the last and use it as an SMTP server only. Regards, Alan Mehio London On 12 June 2014 18:45, Pierre Smits pierre.sm...@gmail.com wrote: Hi Paul, I was wondering about as well. Though the product may be good, there doesn't seem to be much community interaction anymore. Is this project heading for the attic? Regards, Pierre Smits *ORRTIZ.COM http://orrtiz.com/ http://www.orrtiz.com* Services Solutions for Cloud- Based Manufacturing, Professional Services and Retail Trade http://www.orrtiz.com On Mon, Jun 9, 2014 at 7:28 PM, Paul Benedict pbened...@apache.org wrote: The last beta of v3 was over 2 years ago. I would like to consider James in a project but it doesn't look like much development is going on anymore. Can anyone explain this project's status? Cheers, Paul - 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
tiRe: What's the future of James?
The entry point is http://james.apache.org/server/3/dev-build.html We could have an info session on #james irc. Timezone of the participants will define the timeslot. On 06/13/2014 07:34 PM, Lee Chalupa Personal wrote: Yes. I agree. Maybe we could do a few go to meeting sessions with a moderator so other developers would have an opportunity to know James and consequently get involved in the community. Lee On 06/13/2014 01:49 AM, Pierre Cart-Grandjean wrote: Hello, I would love to participate to the development of James. But I find the first step of finding my may in the code and all just too great. With a mentor, on the other hand, I am sure I could make it. If somebody is willing to try, please contact me directly. Cheers, *Pierre Cart-Grandjean ** Portal Engineering Services * RD-AQG-QLM-SDE-SES-PES Amadeus s.a.s. T: +33 4 92 94 60 41 Support and tools access through the _AQG Portal_ http://rndwww.nce.amadeus.net/ _ _Amadeus logo http://www.amadeus.com/web/amadeus//en_1A-corporate/Amadeus-Home/1319560218660-Page-AMAD_HomePpal?AMAIL=18013 From:Pierre Smits pierre.sm...@gmail.com To:James Users List server-user@james.apache.org, Date:12/06/2014 18:45 Subject:Re: What's the future of James? Hi Paul, I was wondering about as well. Though the product may be good, there doesn't seem to be much community interaction anymore. Is this project heading for the attic? Regards, Pierre Smits *ORRTIZ.COM http://www.orrtiz.com http://www.orrtiz.com/* Services Solutions for Cloud- Based Manufacturing, Professional Services and Retail Trade http://www.orrtiz.com http://www.orrtiz.com/ On Mon, Jun 9, 2014 at 7:28 PM, Paul Benedict pbened...@apache.org wrote: The last beta of v3 was over 2 years ago. I would like to consider James in a project but it doesn't look like much development is going on anymore. Can anyone explain this project's status? Cheers, Paul - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: What's the future of James?
Hi there, Attic is not an option for now. But yes, we are lacking activities, that's more than obvious... Trunk is a just a mile away to be released. Any help for JIRA review, close, patch is welcome. Thx, Eric On 06/12/2014 06:45 PM, Pierre Smits wrote: Hi Paul, I was wondering about as well. Though the product may be good, there doesn't seem to be much community interaction anymore. Is this project heading for the attic? Regards, Pierre Smits *ORRTIZ.COM http://www.orrtiz.com* Services Solutions for Cloud- Based Manufacturing, Professional Services and Retail Trade http://www.orrtiz.com On Mon, Jun 9, 2014 at 7:28 PM, Paul Benedict pbened...@apache.org wrote: The last beta of v3 was over 2 years ago. I would like to consider James in a project but it doesn't look like much development is going on anymore. Can anyone explain this project's status? Cheers, Paul - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Inifinite loop.... java.io.IOException: Error in encoded stream: needed 4 valid base64...
Is it James 2.3 or 3.0? On 12/09/2013 09:33 PM, Jerry M wrote: A couple of weeks ago I noticed my log files were going out of control. The following exception was occurring every few seconds, 24/7 in the spoolmanager log and the mailstore log. The log files were filling up and rolling over every 2 or 3 minutes. i.e. thousands of log files accumulating over a few days. Actually filled up my hard drive before I noticed it. This morning, I realized that the Mail ID on the exception was identical on days after days of exceptions which led me to believe it was one bad email that was stuck in the processing loop. I checked the spool and noticed that there were 3 records sitting in the spool table (I'm using MySQL as the mailstore). They didn't appear to be important (destined for a little-used account...). So I deleted the records from the table, and the exception flood ceased. Ok, fine somehow I got a 'bad' email in the queue (most likely spam...). But what caused JAMES to go into an infinite loop trying to process it? I'm running 2.3.2, which I know might be a bit old. I haven't checked to see if there's a newer version. But I figured I'd ask here first to see if this is a known (hopefully fixed) problem before I start downloading and upgrading, etc. The problem is gone now. But only because I had to take an ax to the spool table. I'm a bit worried. Again, I understand there's no control over what might be in any particular email I might receive. But I'm hoping there is a fix to prevent JAMES from going into an infinite loop trying to process some rogue-content email. Thanks. Jerry (Exception follows one of many identical ) 03/12/13 04:05:00 ERROR spoolmanager: Exception processing Mail1385274088031-219233 in JamesSpoolManager.run Exception caught while storing mail Container: javax.mail.MessagingException: Exception caught while storing mail Container: ; nested exception is: java.io.IOException: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: \r\n\r\n\r\n\r\n\r\n at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:764) at org.apache.james.mailrepository.JDBCSpoolRepository.store(JDBCSpoolRepository.java:240) at org.apache.james.mailrepository.MailStoreSpoolRepository.store(MailStoreSpoolRepository.java:126) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134) at $Proxy5.store(Unknown Source) at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:330) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: \r\n\r\n\r\n\r\n\r\n at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:250) at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:148) at java.io.FilterInputStream.read(Unknown Source) at org.apache.james.core.MimeMessageUtil.copyStream(MimeMessageUtil.java:167) at org.apache.james.core.MimeMessageUtil.writeMessageBodyTo(MimeMessageUtil.java:152) at org.apache.james.core.MimeMessageUtil.writeToInternal(MimeMessageUtil.java:90) at org.apache.james.core.MimeMessageUtil.writeTo(MimeMessageUtil.java:70) at org.apache.james.core.MimeMessageUtil.writeTo(MimeMessageUtil.java:50) at org.apache.james.mailrepository.MessageInputStream.writeStream(MessageInputStream.java:131) at org.apache.james.mailrepository.MessageInputStream.init(MessageInputStream.java:101) at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:677) ... 9 more - 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: Require authentication
authorizedAddresses will not help. I don't think there is a way for now to avoid non authenticated local users to send local mails... still need to double check and any inputs will be helpful. Let's keep talking until we are sure. On 12/10/2013 08:59 PM, Phillip Odam wrote: I may be having one of those days... By not authorizing any addresses using handler.authorizedAddresses will I then prevent un-authenticated connections from sending mail between accounts on the same server? On 12/10/13, 2:46 PM, Phillip Odam wrote: Hi All Apache JAMES: version 3.0-beta4 I'm wanting to require SMTP authentication when a client is attempting to send an email from one account to another that are both hosted by the same mail server (the server the client is connecting to). Not that it should matter but VirtualHosting is enabled. In my case mail between the same and different domains (hosted by the one server) should all require authentication. Looking at the doco here http://james.apache.org/server/3/config-smtp-lmtp.html For handler.authRequired, this only requires authentication if delivering mail to non-local email addresses. I could resort to using SMTPAuthSuccessful, check the sender and receiver domains and ghost mail. But I was wondering is their a setting I'm over looking? Reason for requiring authentication is that I don't want someone that knows two email addresses to be able to send mail from one address to the other that appears to have been performed by the legit operator of the sending address. Thanks Phillip - 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: IMAP Service dispose after some time
yes, we had such issues with beta4, corrected in trunk (beta5-snapshot) On 12/11/2013 12:38 PM, Ajay Kumar wrote: Hi Team, I am using james server 3.0. Beta 4. I am running james as window service with My Sql as database. The issue i am facing is : After some unexpected time the imap service of james disposes and i get socket time out error when try to connect with imap. Then to make it working i have to restart the james server. Please help on this. Regards - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Mail Delivery to Custom Folders
First, double check if you understand correctly the james persistence http://james.apache.org/server/3/feature-persistence.html On 12/10/2013 01:34 PM, drpal...@cim.vipahealth.com wrote: Thx all but a question will james create the user folder in the inbox location such as /home/virtual/domain/ or does each user need to have the folder created such as /home/virtual/domain/user Thanks Eric. We will try this option. On Mon, Dec 9, 2013 at 1:22 PM, Eric Charles e...@apache.org wrote: Use the ToRepository mailet with passThrough set to true if you want to continue processing (e.g. delivery to inbox). http://james.apache.org/server/3/dev-provided-mailets.html On 12/09/2013 06:42 AM, drpal...@cim.vipahealth.com wrote: whenever this configuration comes to light please forward to me andres palomo Hi Team, Is it possible to configure James to use customer folders for emails like mails received to Inbox to be saved to /var/mails/Sai/Received and mails sent to /var/mail/Sai/Sent Something like that. Can you point me to some references if it is possible. Thank you in advance. Regards, Sai - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - 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: Mail Delivery to Custom Folders
Use the ToRepository mailet with passThrough set to true if you want to continue processing (e.g. delivery to inbox). http://james.apache.org/server/3/dev-provided-mailets.html On 12/09/2013 06:42 AM, drpal...@cim.vipahealth.com wrote: whenever this configuration comes to light please forward to me andres palomo Hi Team, Is it possible to configure James to use customer folders for emails like mails received to Inbox to be saved to /var/mails/Sai/Received and mails sent to /var/mail/Sai/Sent Something like that. Can you point me to some references if it is possible. Thank you in advance. Regards, Sai - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: james webapp in beta 4 release
webapp is in app for beta4 (app was a module that we temporary used, but we removed it now) http://apache.belnet.be//james/apache-james/3.0beta4/apache-james-3.0-beta4-app.tar.gz On 12/02/2013 12:48 PM, Cathal Courtney wrote: Hi Eric Thanks for getting back to me. Anyone know why the beta 4 release doesn't build a web app, or if there are issues with the version in the M2 build? http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-M2/container-spring/src/main/webapp http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta4/container-spring/src/main/ - No webapp ThanksCathal Date: Sun, 1 Dec 2013 11:10:18 +0100 From: e...@apache.org To: server-user@james.apache.org Subject: Re: james webapp in beta 4 release No planned date for the final release. On 11/28/2013 03:12 PM, Cathal Courtney wrote: HiI'm looking at using James for an internal mail system with a web front end using imap, and i had a couple of questions. I'd like to run it as a web application and build it from source as I have a couple of custom requirements. I can see the web app in the M2 releasehttp://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-M2/container-spring/src/main/webapp/The war file is built on the M2 version maven build and I can run it locally. But I can't see it in the beta 3/4 release? Am I missing something, or was it removed? http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta4/container-spring/src/main/I can't find a web.xml in the code anywhere after downloading beta4. Also, Is there a planned date when version 3 will move out of beta? Thanks for your help. Cathal Courtney - 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 error
Best to try with a beta4 or even better with a snapshot. On 11/27/2013 04:39 PM, andres palomo wrote: if you ever figure this out please tell me the cause and resolution good luck andy palomo On 11/27/2013 6:19 AM, Marco Caimi wrote: Hi all, i’m using james beta3, when i sent email to these non existent addresses giovanni.ceccare...@studioceccarelli.info or rosy.sussare...@ca-m.com James try to deliver email to these emails continuously ignoring the retry values and using 100% cpu. Thanks - 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: Strange delay - don't know where to start looking
beta3 suffers from bugs related with activemq and also nasty deadlocks. This does not seem however related to the delivery delays. You will need to look and monitor the activemq queues. On 11/26/2013 01:31 PM, Phil Spencer wrote: Hi All, I have been using several (identical) instances of James (3.0-beta3), in a large corporate environment, with some mailets I have written to perform some standard manipulations on messages as they pass to and from another MTA which actually scans the mail content Each instance processes many thousands of emails per day and we have had very few issues, but there have been a couple of cases where users have reported long delays before delivery of their messages. Now there is pressure to fix the issue Detailed monitoring the traffic initially revealed that the delays are inversely related to load - so high load, low delay and vice-versa Later it was discovered that this behaviour appears to start randomly on some of the James instances - I've been told that rebooting the server always cures the problem (until the problem randomly starts again), and I can confirm that simply restarting James usually, but not always, fixes the problem Further investigation of the log files reveals the reason for the load-delay relationship - it appears that James enters a mode where it will only pass on messages when it receives a new incoming message - so high load, short interval between incoming messages and therefore short delays but at night and at weekends, there can be several minutes between incoming messages and we get correspondingly long delivery delays My problem at the moment is that I really don't know where to start looking for the source of problem so... - Is this by any chance a known issue? - Has anyone seen this behaviour before and if so, did you find a solution? - I would really appreciate any ideas of how to approach the problem Thanks in advance - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: SMTP Hooks Vs Mailets?
Hook are fastail and the mail won't be spooled. If you are thinking to spamassassin, simply use hooks. On 18/11/13 05:33, Girivaraprasad Nambari wrote: Hi Community, Which option is best for Anti-spam configuration? SMTP Hooks (or) Mailets? I couldn't really figure out which one is applicable in what situations? Thank you, Giri - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Question on mail list support in James 3.0
There is no planning for this, and this won't be in the 3.0 release. On 13/11/13 04:21, Marc Chamberlin wrote: I have been waiting for a LONG time now to upgrade my James mail server to 3.0 as I would like to use an IMAP server instead of a POP3 server. But I cannot upgrade as long as there is no support for mail lists, which I need. According to the Apache James website this is not yet available. My question is will it be supported and if so, when is the ETA? Just curious... Marc... - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: copymailbox srcbean dstbean
That's a regression. Can you please open a JIRA on https://issues.apache.org/jira/browse/JAMES On 15/11/13 19:45, j...@jlarriba.es wrote: Hi all, I am migrating from postfix/dovecot to the Apache James server. I am using version 3.0-beta5 (from maven repositories). So far, everything is working fine, but I would want to migrate all my mail from my old Postfix's Maildir to the James MySQL database (I am using it through JPA mailbox). The only documentation I have found on copying from one mailbox to another is this one http://james.apache.org/server/3/upgrade-database.html, which along the instructions of migrating database, he also notes how to copy all the mail from JPA to Maildir and back. I copied my Maildir from /home/user/Maildir to %JAMES_PATH%/var/store/maildir/domainname/user/ I connected to JMX console, and performed a mailboxcopier.copy with parameters maildir-mailboxmanager, jpa-mailboxmanager. It returns a popup telling me: null. Investigating further, I have seen that james-cli.sh has more options that the ones that are documented, one of them being copymailbox. This should do the trick. I tried: ./james-cli.sh -h localhost copymailbox maildir-mailboxmanager jpa-mailboxmanager and the response: Error while execute command: null I have checked all the logfiles, but no single information about this null value. I have tried to search for documentation or examples while using the copymailbox feature, but no luck so far. Is this working in beta5? What am I doing wrong? Thank you very much, Juan - 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: How to see exceptions during startup in james-server.log
Logging in a file is something usual. I guess you can pipe the file to standard output. On 06/11/13 13:04, Markus Moldaschl wrote: Hi, does anybody know how I can have the stack trace of springs bean creation exceptions or the like during James startup in james-server.log? It’s a bit annoying having to check james-server.log, wrapper.log or the output of ‚./james console‘ in case James does not start … Thx in advance Markus - 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: Virtual hosting and SMTP
On 03/11/13 16:05, Robin Bankhead wrote: Quoting Eric Charles e...@apache.org: If you don't want to enforce ssl/tls, don't use the startTls/sslEnable tag. Btw, I suspect bad bugs there. Err, do you mean bad bugs when enforcing, or when not? (Or just with impl of SSL/TLS generally?) Simply not working in general, at least I need to double check. Seems OK here when the gateway demands STARTTLS (not SSL) and I don't demand anything. I think that covers all the gateways I'll be using. So SSL is not working? Take care if you don't use /%user/%domain and experiment... Seems OK so far. Are you thinking concurrency issues, parts of the code expecting this format (in which case why make it configurable?), or something else? Nothing about concurrency, but more about the virtual hosting working. the %domain is needed for this. I guess my nomenclature was bad with my subject line. It's not really vhosting in the James sense at all, as effectively there would just be one domain in use (and it's no problem to use the variable in the .properties if it's needed, although it didn't appear to be for me). The fetchmail conf can deliver mail for all upstream domains/users into one mailbox, but it would be desirable if it could filter it into certain subfolders. Leaving the user issue aside, that's something also required for certain other types of incoming filtering (spam and other things). So you want to fetchmail and deliver in a kind of mailet way (intelligent processing) ? http://tools.ietf.org/html/rfc2822#section-3.2.4 '+' is a valid character for username. SMTP servers can indeed assign proprietary meaning. You can achieve this in James with a Regex Matcher. OK, but without a suitable mailet for the filing, it looks like I'm still stuffed. I'm a bit lost atm in JIRA trying to work out where sieve/jsieve/sieve-mailet is broken. Can anyone shed light on this? I'd like to look at it myself if I can, as it's seemingly down to that or writing my own mailet from scratch. Give me a few days, I will try to clean this up. Robin Bankhead - 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: Virtual hosting and SMTP
On 27/10/13 10:31, Robin Bankhead wrote: Quoting Eric Charles e...@apache.org: Multiple outgoing gateways are possible. the outgoing tag is the name of the queue that will hold messages being processed by the RemoteDelivery Mailet (deployed doc is misleading). Use distinct one per RemoteDelivery mailet. OK I have it now, everything I needed was in the mailetcontainer.xml file so I just worked from that, putting my own blocks above the All-matching one. I'd gotten so distracted with my maildir adventures that I forgot all about this being there, sorry ^^ OK If you don't want to enforce ssl/tls, don't use the startTls/sslEnable tag. Btw, I suspect bad bugs there. Err, do you mean bad bugs when enforcing, or when not? (Or just with impl of SSL/TLS generally?) Simply not working in general, at least I need to double check. for filtering..., current matchers can help, but sieve is not operational atm. Yeah the matchers look to have all I need for matching, but with no mailet that can do FileInto (in Sieve-speak) that's no good... Is there a lot needing to be done with sieve? Perhaps I could help... Take care if you don't use /%user/%domain and experiment... Seems OK so far. Are you thinking concurrency issues, parts of the code expecting this format (in which case why make it configurable?), or something else? Nothing about concurrency, but more about the virtual hosting working. the %domain is needed for this. While on that subject, are there any other variables that could be used there? (Hey, I'm in breaking-stuff mode) What do you mean with user+box@... ? I'm sure I came across a notation like this while I was creating the vhosting setup on my home box (with dovecot and postfix), but of course I can't find a citation for you now :S IIRC, the idea was you appended a plus-sign followed by this next hop string to the recipient name when sending, and this was a cue for the receiving MDA to file it into the specified subdir of that mailbox. Probably some short-lived proprietary extension from years ago; if you haven't heard of it then that's all I need to know ;) http://tools.ietf.org/html/rfc2822#section-3.2.4 '+' is a valid character for username. SMTP servers can indeed assign proprietary meaning. You can achieve this in James with a Regex Matcher. Thanks again, Robin Bankhead - 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: Unable to send mail using SSL/TLS
Use the gatewayPort attribute in RemoteDelivery mailet (in mailetcontainer.xml) http://james.apache.org/server/3/dev-provided-mailets.html#RemoteDelivery On 31/10/13 01:09, Saibabu Vallurupalli wrote: Hi All, I configured James 3 Beta 3 to use SSL/TLS followed the instructions (1) and (2). After starting the server , I am able to send receive emails on port 465 using SMTP on SSL/TLS. If I try to send a mail to another server it is always trying to connect to the remote server on port 25. The other server also uses port 465 and they have blocked port 25. So, my remote delivery is not happening. Is there any other configuration with in James which uses secured port 465 and send email. Also, Since I know the Remote server doesn't have port 25 open I can force to use 465. In a real world scenarion is this not a default configuration to try sending email on port 25 and then try other secured port like 465. Please advise. (1) : http://james.apache.org/server/3/config-ssl-tls.html (2): http://james.apache.org/server/3/config-smtp-lmtp.html Thank you, Sai - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: IMAP Reload Issues with Thunderbird
Strange, we never had such issues reported. Does this only happen for a specific subfolders or for all? Do you have that issue on the INBOX? What about the default installation with the embedded Derby database? (did you monitor the PostgreSQL connection for any trouble?) On 31/10/13 10:36, Thomas Graefenhain wrote: Hi All, Prerequisite: I'm using James 3.0-beta4 configured with PostgreSQL 9.3. I'm accessing it via Thunderbird 24.1.0 over IMAP. My folder structure is like the following: INBOX.Folder.Subfolder and I have over 600 mails in one Subfolder. Problem: While accessing a Subfolder with Thunderbird the amount of mails shown in Thunderbird varies but never shows all mails. Each time I'm switching into a Subfolder Thunderbird clears that folder and reloads it from the server with different results. Also the number of mails 'not seen' varies and even after marking the whole folder as seen, I've unseen mails in that folder after reload. This happens independently of configuring Thunderbird to use IDLE mode for IMAP or not. Question: Is this behavior a know issue? Is there a patch? Are there any suggestions to solve that or are there any workarounds? I'm willing to help on that if I will get some pointers where to start. Thx in advance Thomas - 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: Maildir with hierarchical filesystem layout
Thx. Can you open a JIRA on https://issues.apache.org/jira/browse/MAILBOX and explain what we gain with this patch? On 03/11/13 10:54, Robin Bankhead wrote: Quick reply to my own question: No, not quite that simple. The commented-out code only addresses translation from absolute folder path to mailbox path, so I also had to add similar translation to the getFolderName() method. Also, as MailboxConstants.DEFAULT_DELIMITER_STRING is now (char) DEFAULT_DELIMITER, that had to change too. The below patch is not yet tested, but I reckon it should create the folders as intended. Robin Bankhead Index: MaildirStore.java --- MaildirStore.java Base (BASE) +++ MaildirStore.java Locally Modified (Based On LOCAL) @@ -41,7 +41,7 @@ public static final String PATH_FULLUSER = %fulluser; public static final String WILDCARD = %; -public static final String maildirDelimiter = .; +public static final String maildirDelimiter = /; private String maildirLocation; @@ -192,8 +199,8 @@ // remove leading dot mName = folderName.substring(1); // they are equal, anyways, this might change someday... -//if (maildirDelimiter != MailboxConstants.DEFAULT_DELIMITER_STRING) -//mName = mName.replace(maildirDelimiter, MailboxConstants.DEFAULT_DELIMITER_STRING); +if (maildirDelimiter.charAt(0) != MailboxConstants.DEFAULT_DELIMITER) +mName = mName.replace(maildirDelimiter.charAt(0), MailboxConstants.DEFAULT_DELIMITER); return mName; } @@ -213,6 +220,8 @@ if (!root.endsWith(File.pathSeparator)) folder.append(File.separator); folder.append(.); +if (maildirDelimiter.charAt(0) != MailboxConstants.DEFAULT_DELIMITER) +name = name.replace(MailboxConstants.DEFAULT_DELIMITER, maildirDelimiter.charAt(0)); folder.append(name); return folder.toString(); } Quoting Robin Bankhead apache.ja...@headbank.co.uk: Hello, I've been doing things with the mailbox-maildir code, while also learning a bit about namespaces, and I came across this: org.apache.james.mailbox.maildir.MaildirStore.maildirDelimiter = .; Simple question: If I simply changed this to '/' (and reinstated the commented-out code in that file that references it), would this *in theory* be all that'd be required to enable a hierarchical on-disk layout? I have the luxury of breaking stuff at the moment, and I like the idea of the maildir hierarchy being mirrored in the actual filesystem. To my mind it would have the benefit of relieving the (albeit not too onerous) limitations on subdirs-per-dir, and be more intuitive to boot. I'd just welcome a heads-up if anyone who knows the Mailbox codebase better than I (so, pretty much anyone) happens to know that it's going to be a lot more work than it looks like it might be. Thanks, Robin Bankhead - 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: Virtual hosting and SMTP
Multiple outgoing gateways are possible. the outgoing tag is the name of the queue that will hold messages being processed by the RemoteDelivery Mailet (deployed doc is misleading). Use distinct one per RemoteDelivery mailet. If you don't want to enforce ssl/tls, don't use the startTls/sslEnable tag. Btw, I suspect bad bugs there. for filtering..., current matchers can help, but sieve is not operational atm. Take care if you don't use /%user/%domain and experiment... What do you mean with user+box@... ? On 27/10/13 01:24, Robin Bankhead wrote: Hi Eric, thanks for the reply. I should have been reading up on the mailets, than answer for that part was right there: http://james.apache.org/server/3/dev-provided-mailets.html#RemoteDelivery So it appears I could take care of outgoing gateways like this: mailet match=SenderIsRegex=.*@outgoingdomain1.com class=RemoteDelivery outgoing?/outgoing gatewaymail.outgoingdomain1.com:465/gateway gatewayUsernamemyname/gatewayUsername gatewayPasswordsecret/gatewayPassword startTlstrue/startTls sslEnabletrue/sslEnable /mailet We would have more than one outgoing sender-domain, so I could do one of these for each (right?). Not quite sure how the outgoing tag is supposed to be filled, but I expect I will find it with more reading ;) The startTls and sslEnable tags have the same description on that page, are both needed? If that's all in order, then it leaves the issue of local delivery -- and of filtering, if (as I now see is the case) sieve is out of action atm. I did come up with a simple method of getting everything delivered into the same maildir: simply declare a concrete path instead of [...]/%user/%domain in mailbox-maildir.properties. However that doesn't allow them to be delivered into a subdir, just INBOX for all. Does James support the user+box@... style of next-hop addressing by any chance? If so that might be usable in conjunction with recipient rewriting. Robin Bankhead Quoting Eric Charles e...@apache.org: Not sure if this can help? http://james.apache.org/server/3/config-recipientrewritetable.html http://james.apache.org/server/3/feature-mailetcontainer.html On 12/10/13 02:17, Robin Bankhead wrote: Hello, I'm currently exploring James as a replacement for our old mail setup. In the current setup (using Demon Turnpike client/server) you could call it virtual hosting because we are fetching mail for a number of virtual domains into a single mailbox and sending *from* all those domains via our authed ISP SMTP gateway. There is one primary domain that we use for most outgoing and all internal mail (among different email-names on that domain). To replicate this using James, I propose to continue having a single IMAP mailbox with various domains and their users having their own folderspaces within it (the reason being that mail is often moved around among these entities within the store and nobody wants to be either forwarding everything or logging in/out constantly). It's the intricacies of the SMTP setup that I think will be tricky/impossible. The questions: 1. If I define the local (virtual) domains/usernames in domainlist.xml (and add them via the cli), can the SMTP server be made to route them all into a single IMAP store? Which is the correct mechanism for this? (I thought sieve, but that seems in a state of flux and I genuinely can't tell whether there is a functional implementation of it right now in the 3.0beta4 code.) 2. Does the SMTP server (or other component) have any way of also functioning as a client; that is, could it, instead of just relaying outgoing mail, submit it to an upstream SMTP gateway (i.e. the proper one for the message's FROM domain), including performing auth to that gateway? 3. Because of the multiple domains involved, can the upstream server be chosen from a list based on the FROM address domain? I'm also looking at implementing 2 and 3 on the client side, but that's proving pretty tricky too and I'd hate myself for not enquiring if there was a solution in the code I'm already working with ;) I hope I explained myself reasonably. Thanks for your time reading, and any advice. Robin Bankhead - 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
Re: MessagingException: Unable to access mailbox, Caused By: java.io.IOException
Oops, forget my answer, I didn't read your blogpost nor your jira. I will futher comment on the jira. On 28/10/13 06:37, Eric Charles wrote: I have the same issue on 64 bits linux, I have to workaround copying the 32 bits wrapper to the 64 bits one. On 27/10/13 19:47, Net Dawg wrote: Clarification. Please note that this happens only when running James as a service. Using run.bat is not giving this error. Could it be issue with the proprietary wrapper ...which does not allow 64-bit without buying a license??? On Saturday, October 26, 2013 10:53 PM, Net Dawg net.d...@yahoo.com wrote: Newbie Alert ;-) Summary: Installation on Windows 7 64-bit, Java7, Postgres 9.3, of latest James puts message in queue, but does not send (or receive). There is seems to some problem with Java IO. Gory details are being blogged at: http://apachejames.wordpress.com/ Does not solve even after allowing full control of java.io.tmpdir on the system using icacls. Thanks, I hope to build this into an useful blog to assist Windows users. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Virtual hosting and SMTP
Not sure if this can help? http://james.apache.org/server/3/config-recipientrewritetable.html http://james.apache.org/server/3/feature-mailetcontainer.html On 12/10/13 02:17, Robin Bankhead wrote: Hello, I'm currently exploring James as a replacement for our old mail setup. In the current setup (using Demon Turnpike client/server) you could call it virtual hosting because we are fetching mail for a number of virtual domains into a single mailbox and sending *from* all those domains via our authed ISP SMTP gateway. There is one primary domain that we use for most outgoing and all internal mail (among different email-names on that domain). To replicate this using James, I propose to continue having a single IMAP mailbox with various domains and their users having their own folderspaces within it (the reason being that mail is often moved around among these entities within the store and nobody wants to be either forwarding everything or logging in/out constantly). It's the intricacies of the SMTP setup that I think will be tricky/impossible. The questions: 1. If I define the local (virtual) domains/usernames in domainlist.xml (and add them via the cli), can the SMTP server be made to route them all into a single IMAP store? Which is the correct mechanism for this? (I thought sieve, but that seems in a state of flux and I genuinely can't tell whether there is a functional implementation of it right now in the 3.0beta4 code.) 2. Does the SMTP server (or other component) have any way of also functioning as a client; that is, could it, instead of just relaying outgoing mail, submit it to an upstream SMTP gateway (i.e. the proper one for the message's FROM domain), including performing auth to that gateway? 3. Because of the multiple domains involved, can the upstream server be chosen from a list based on the FROM address domain? I'm also looking at implementing 2 and 3 on the client side, but that's proving pretty tricky too and I'd hate myself for not enquiring if there was a solution in the code I'm already working with ;) I hope I explained myself reasonably. Thanks for your time reading, and any advice. Robin Bankhead - 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: Spool Processor
The number of threads for the outgoing smtp queue is not managed by the mailetcontainer config. Use instead the deliveryThreads parameter of the RemoteDelivery mailet http://james.apache.org/server/3/dev-provided-mailets.html On 14/10/13 11:57, Marco Caimi wrote: Hi All, I'm using james 3 beta 4 and i'm trying to optimize it in order to get more speed. I'm experiencing a strange issue with the spilling process. While i wetted the spooler .thread parameter in the mailetcontainer.conf to 80 i never see more the 6 consumer on the activemq side. The outing queue is almost empty (i'm using a very fast receiver server) and the spool queue reach 5000 items. I'm using an external activemq server v5.7. The CPU is at maximum at 40% usage. I don't understand why i have this behavior. Have you some explanation? Thanks, Marco Caimi. - 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 2.3 Protocol Handler
Thx. Anyone willing to contribute a patch on trunk? On 15/10/13 10:11, Hamster wrote: Hi guys, Took me a while... ;-) In /apps/james/conf/james-smtphandlerchain.xml http://fisheye.primekey.se/browse/SignServer/trunk/signserver/extapps/james/apps/james/conf/james-smtphandlerchain.xml?r=93 just before SendMailHandler we added our own handlers, for example: handler class=x.y.z.AbortProcessingMessageHandler/handler In config.xml make sure that smtphandlerchainConfig is NOT commented out. Out very simple implementation: public class AbortProcessingMessageHandler implements MessageHandler { @Override public void onMessage(SMTPSession session) { if (blacklistService.isBlacklisted(session)) { String responseString = 250 + DSNStatus.getStatus(DSNStatus.SUCCESS, DSNStatus.CONTENT_OTHER) + Message received; session.writeResponse(responseString); session.abortMessage(); } } . } Hope it is enough to let you move on. One more example: @Override public void onMessage(SMTPSession session) { if (session == null || session.getMail() == null || session.getMail().getSender() == null || session.getMail().getRecipients() == null || session.getMail().getRecipients().isEmpty()) { return; } if (config.getEmailHost().equals(session.getMail().getSender().getHost())) { return; } final CollectionMailAddress recipients = session.getMail().getRecipients(); for (MailAddress mailAddress : recipients) { if (!config.getEmailHost().equals(mailAddress.getHost())) { statisticsService.incrementEmailsAcceptedForRemoteDelivery(); } } } Cheers, - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Anti-spam
Basic documentation regarding antispam here: http://james.apache.org/server/3/config-antispam.html On 15/10/13 23:20, David Legg wrote: Hi Pete, I've had James 2.3.1 running since forever on a small internet facing server. I installed the Bayesian filter back when even one spam during the day was an event in itself! Now it protects us from hundreds a day! In fact looking at the logs it rejected 704 so far today. So I just wanted to say that it works very well. The Bayesian filter as supplied in James is very old and the theory behind them has improved a lot. The one in James doesn't attempt to decode the email. This means it analyzes base64 encoded messages without decoding the base64 text. Likewise it makes no attempt to ignore images or attachments and therefore it fills its corpus with a lot of random looking junk. However despite this it still manages to detect spam reasonably well provided you keep it trained and that means sending it ham as well as spam. With hindsight I shouldn't have set it up to delete emails that are thought likely to be spam. It keeps the database small sure... but it is a pain to restore an email that was wrongly deleted. In fact to restore a deleted email I have to go into MySQL's binary logs, search for that part of the log that inserted the email into the spool and then save it into a stand-alone file that can be read by an email reader. That's not something I like to do too often. In a future setup I think I'll move over to James' IMAP server and simply move suspected emails into a 'bad' list that the user can trawl through when they think something has been mis-classified. At present I've been experimenting with N-gram based bayesian filters as I think they hold a lot of promise. If I get something up and running I'll contribute it to James... but time is precious at the moment so it won't be soon. The Bayesian implementation used in the Thunderbird client is excellent [1] and the JunQuilla Thunderbird extension [2] by rkent is really good for managing the corpus and showing which keywords contributed to the 'spaminess' of the email. I know this doesn't really answer your question of what off-the-shelf software to use but I hope it reduces your suspicion about Bayesian filters. I've looked at lots ideas for rejecting spam; everything from greylisting [3], tarpitting [4], DNSBL, URIBL, VERP [5], SPF [6], Teergrubing [7] etc etc. However, they all have weaknesses and in the end I firmly believe that Bayesian analysis is the best way forward as it is the only method I've seen which adapts as the spam adapts. Regards, David Legg [1] http://mozilla.inkedblade.net/source/mozilla/mailnews/extensions/bayesian-spam-filter/src/ [2] http://mesquilla.com/extensions/junquilla/ [3] http://projects.puremagic.com/greylisting/whitepaper.html [4] http://www.spamcannibal.org/cannibal.cgi [5] http://cr.yp.to/proto/verp.txt [6] http://www.openspf.org/ [7] http://altlasten.lutz.donnerhacke.de/mitarb/lutz/usenet/teergrube.en.html On 15/10/13 12:54, Pete Williams wrote: Hi I'm trying to find out what I need to do to implement an effective anti-spam solution. We currently use James 2.3.2 but are working on an upgrade. I have found the Bayesian mailets, but would like to know if there is anything else as a don't set a great deal of store by these methods. I'd rather just try reverse mx look-ups, banning known black holes as a start. Any help appreciated. Cheers, - 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: Mail repository
http://james.apache.org/server/3/feature-persistence.html The middle-term goal is to merge the store with the mailbox persistence. Once done, all mailbox implementation will get the benefits. To do this, you don't have to code on the hbase mailbox level, but on the server level. On 24/10/13 20:14, Patrick Sauts wrote: Thank you Matthieu. Looking into the hbase implementation: it does domains list, users, mailboxes, RecipientRewrite, but not mail repository. In fact I'm using their code to add mail repository feature. I can see you're french Le mercredi 23 octobre 2013 à 13:26 -0700, Patrick Sauts a écrit : ;) So am I According to the code: mail repository store what can't be sent. It is referred to in the mailet. Depending on mailetcontainer.conf configuration it can store relayed-denied, spams, errors, maybe hard bounces etcŠ So it's not really a mail box. On 10/24/13 12:24 AM, Matthieu Baechler matthieu.baech...@linagora.com wrote: Hi Patrick, I'm quite new to James too, but I think I can answer some of your questions. See below. Le mercredi 23 octobre 2013 à 13:26 -0700, Patrick Sauts a écrit : Hi, I'm new with James and I have a fez questions. What is the exact purpose of the mail repository ? It's a store for messages and mailboxes. It seems to be very close to IMAP semantic. I'm currently writing an implementation of the mail repository for hbase, is it of any use ? There's already one in http://svn.apache.org/repos/asf/james/mailbox/trunk/hbase Where do hard bounces are stored ? Thank you for your answers. Patrick Sauts -- Matthieu Baechler matthieu.baech...@linagora.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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Remote Delivery SMTPS
I remember successful connections via SSL to gmail SMTP. Do you still have the issue? What if you try startTLS instead of sslEnable? On 30/09/13 21:22, Stefan wrote: Hi everyone, trying to get a SMTPS connection to a Mailserver over Remote Delivery. StartTLS and plaintext are working, mail traffic is going from James (3.0.0 Beta 5) to the dedicated Gateway (Both on the same network), mails are send and arriving at the recipient. If I switch my gateway SMTP Server from smtp to smtps (SSLv3, TLSv1 on Port 465) and configure the mailet to sslEnabletrue/sslEnable the connection isn't working. It seems that James is completely ignoring the option. If I sniff the connection with wireshark, James is sending some TCP Packets and that's all, it doesn't even start the Handshake. Gateway is just sende Encrypted Alerts. Other direction with SMTPS is working fine. The Gateway is also a Java-based Mailserver. I hope someone can help me. Best, Stefan - 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: Creating domain mapped to mx record
The domains are managed by default in the database, not in the domainlist file. On 06/10/13 02:39, Girivaraprasad Nambari wrote: I am trying to host james on Windows 2008 server (on AWS) and map it to my domain. I couldn't find any entries in *domainlist-template.conf* in CONF folder. Am i missing anything? Is this valid configuration? Any input would be appreciated. *I have created MX record on AWS route 53 as following:* mydomain.com. MX 10 mailserver.mydomain.com I have created *A record on AWS route 5*3 as following: mydomain.com *A *myawspublicIP I have added domain using following command: C:\apache-james-3.0\binjames-cli.bat -h localhost -p adddomain mailserver.mydomain.com Thank you, Giri - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James add domain confusion when we map to real domain
for a f...@bar.com email, domain will be bar.com On 07/10/13 21:13, Girivaraprasad Nambari wrote: Hi Team, I have Amazon EC2 (windows) instance which hosts Tomcat Apache James mail server. James works fine on EC2 locally (I have created a domain and updated etc/hosts file to mimic domain. Using thunderbird client on same machine, I was able to send messages between accounts on same domain). Now I am trying to map james to real domain. I have registered a domain with goDaddy say*mycompany.com* 1. created one A record on Route 53: mailserver.mycompany.com points to EC2 instance IP 2. created MX entry on Route 53: mailserver.mycompany.com 0(priority) mailserver.mycompany.com 3. Pointed all Mail related DNS Zone file entries in GoDaddy to mailserver.mycompany.com Now I am confused on while adding domain to James, what should be the *host* name *domain name* I use? should host name be *localhost (or) mycompany.com?* should James domain name be*mycomapny.com (or) mailserver.mycompany.com?* Thanks for your time and help. Thank you, Giri - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Folder Sync
If you use IMAP, client will be able to synchronize the folders. For e.g. thunderbird, you need to manually ask to read the new folders. On 09/10/13 14:17, Saibabu Vallurupalli wrote: Hi, Our James implementation uses different clients. Is there away we can synchronize the folders between different clients? In our WebMail client if we create a folder this is not showing up in Outlook client. For example if I send an email from my Outlook I can see it in sent folder of Outlook but not in my WebMail client. Is this configuration possible? Can someone give ideas on how you have implemented? Thank you, Sai - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Incoming emails
community is listening. activity will come back very soon. On 10/10/13 23:56, Girivaraprasad Nambari wrote: Hi Community, Is James community active? Now a days I am not seeing any responses for any of the questions by users. After few trail errors, I was able to map James Server to my domain. But few things are not working as expected: 1) When I send an email from my gmail to account on James Server, it didn't show up in James Inbox, Is there any specific setting (or) something which Gmail uses to restrict this? (By the way when I send email from James to Gmail, it went fine and showed up in my Gmail Inbox) When I send email to James account, using following service, it does show up in my James user email box. https://www.wormly.com/test_smtp_server 2) Right now I haven't learned anything about securing James, so I want to restrict/stop outgoing emails and just allow incoming emails, Is there any setting I can use to restrict out going mails? Thanks for your time and help. Thank you, Giri - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: LDAP authentication
Thx for this. Just open a JIRA and upload any documentation or source code you can. I am happy to review and commit them. On 23/09/13 20:56, Robert Munn wrote: Absolutely yes, I am happy to contribute. I am in the process of implementing the restriction directive for groups and will share that when it is working. I have other configuration experiences/details I would like to contribute to documentation as well. I have done a lot of testing with SSL settings with various email clients and will share what I have learned. I don't see anything in the LDAP source code related to LDAP over SSL. I was wondering if anyone had implemented it. I looked at the source code and it seems like code-wise you would have to add SECURITY_PROTOCOL ssl to the configuration. I am guessing there could be issues related to the LDAP server certificate as well, given that the other SSL-related docs specify having only one cert in the keystore in order for SSL to work properly. My cert has entries for the LDAP server and the mail server, so I am thinking I might be able to get it to work, but that isn't a good generalized solution. Any suggestions in that direction would be great. On Sun, Sep 22, 2013 at 9:34 PM, Eric Charles e...@apache.org wrote: Thx for sharing this. If OK for you, I will take you config in the James documentation. On 23/09/13 00:20, Robert Munn wrote: This message is a reply to an earlier message about LDAP authentication failure. I have this working and thought I would share my config. This is on Windows, FYI. I implemented a base Active Directory LDAP instance with Users.LDIF. It creates a configuration from the root node (cn=host,dc=domain,dc=com) that looks like this: CN=LostAndFound CN=NTDS Quotas CN=Roles CN=Users I added a user (called admin below) at this level of the tree, which looks like this: CN=LostAndFound CN=NTDS Quotas CN=Roles CN=admin I then added this user to the administrator Role in the tree: 1. select CN=Roles, then CN=Administrators 2, right-click CN=Administrators and selecting Properties 3. click members from the list of properties 4. click the Add DN button and add the DN of the admin (cn=admin,cn=host,dc=**domain,dc=com) 5. Lastly, in the user's properties, set msDS-UserAccountDisabled = False. repository name=LocalUsers class=org.apache.james.user.**ldap.**ReadOnlyUsersLDAPRepository ldapHost=ldap://localhost:**389; principal=cn=admin,cn=host,**dc=domain,dc=com credentials=password userBase=cn=Users,cn=host,**dc=domain,dc=com userObjectClass=user userIdAttribute=cn/ Note the userIdAttribute, which is set to cn for the implementation above. Also note the userBase starts with CN=Users. I add all the regular users at that level (one level below the admin). In order to get this working, I worked out connecting to the LDAP store using the ldp.exe directory browser on Windows. --**--**- 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Strange issue with TCP fragments
No sure to understand. Are you having issues with RemoteDelivery? On 29/09/13 09:25, Pavlos Georgiadis wrote: Hello, I have a very strange issue with james3-beta5. When james is trying to deliver an email to a particular host the EHLO command is sent in two TCP fragments. In particular E is sent in one fragmant and the HLO... is sent in another. The other host then replies with a 500 unrecognized command If I try to connect to the same host with telnet and type the EHLO by hand, then the command arrives in 1 TCP packet and the host replies with a 250- Any ideas what could be wrong? I guess the other host should be able to understand the EHLO command from james. It should read everything until a newline and then process the command. But it seems that it only tries to process the E and of course does not recognize it as a command. But still...what could be causing james to send his commands in fragments? The thing is that james after the EHLO command tries to send a HELO as well...and gets the same answer for the same reason...then sends a QUIT and gets yet again the same answer for the same reason again. The following is the output from Wireshark. Marked as GOOD is the streams between telnet and the remote host and marked as BAD are the streams between james and the remte host. BAD 32 32 30 2d 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 220- 0010 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0020 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0030 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0040 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 0a 32 32 30 2d 2a *..220-* 0050 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0060 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0070 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0080 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0090 2a 2a 2a 2a 0d 0a 32 32 30 20 2a 2a 2a 2a 2a 2a ..22 0 ** 00A0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 0a *.. 45 E 0001 48 4c 4f 20 XX XX XX XX XX XX XX XX 0d 0a HLO .. 00AF 35 30 30 20 75 6e 72 65 63 6f 67 6e 69 7a 65 64 500 unre cognized 00BF 20 63 6f 6d 6d 61 6e 64 0d 0acommand .. GOOD 32 32 30 2d 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 220- 0010 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0020 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0030 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0040 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 0a 32 32 30 2d 2a *..220-* 0050 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0060 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0070 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0080 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0090 2a 2a 2a 2a 0d 0a 32 32 30 20 2a 2a 2a 2a 2a 2a ..22 0 ** 00A0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 0a *.. 45 48 4c 4f 20 XX XX XX XX XX XX XX XX 0d 0aEHLO xxx x.. 00AF 32 35 30 2d XX XX XX XX XX XX XX XX XX XX XX XX 250- - 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: running james on windows server 2012 x64
On 30/09/13 01:12, Robert Munn wrote: I have two issues: 1. I can't run the james service in 64-bit becaiuse there is no wrapper dll for 64-bit. I haven't looked at running it in 32-bit mode yet. Is there no 64 bit wrapper? Same here on linux. The workaround for me is to copy the *64* wrapper to the *32* wrapper. Then, it works fine. 2. When I run James from the command line, it runs OK but I can only connect from the local server console, not from externally. I have the ports open in the firewall, but there could be some other issue like privileges that I am bumping up against. Any suggestions are helpful. You have to configure jmx.properties with the ip address to which you are connecting. Also, I have to run run.bat inside cmd.exe, not Powershell. Maybe there is a way, but I am not a Powershell guru so I don't know. Never used Powershell. Thanks for any help. Robert - 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: Maildir support for Windows.
Hi Robin, Thx for the follow-up. Explicitly calling System.gc can bring global bad performance, so it should be called only in case of windows platform. The best is to create a JIRA (if not already existing) and attach there your patch. On 18/09/13 22:00, Robin Bankhead wrote: Hi, An update and another patch. I've found that doing GC before attempting the file move/rename operation allows it to succeed in every permutation I've tried so far. The patch implements this in MaildirMessageMapper.updateFlags(), giving it 5 tries (this may be excessive, I dunno; next time I'll check how many tries it takes). NB: I switched from FileUtils.moveFile() to File.renameTo() just for the sake of constructing a quick test since it has a boolean return value; I did already try just drop-in replacing it (without the loop), and it also failed. I *think* this means there's an unreleased File{In,Out}putStream lurking somewhere that needs to be found but, from what I've read, I'm still not sure that I can rule out Windows itself holding the lock even when release() has been explicitly called, which some commentators on the subject seem convinced of. It's still reporting all messages as Draft, so I shall busy myself investigating that in the meantime. Regards, Robin Bankhead PS - yes, the test classes were also hackishly adjusted for semicolons instead of colons. I don't see much point doing this elegantly unless/until this issue goes somewhere, plus I'm not sure how best to do so :/ # This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\srv\apache-james-mailbox-trunk\trunk\maildir # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java --- src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java Base (BASE) +++ src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java Locally Modified (Based On LOCAL) @@ -216,7 +216,14 @@ // if the flags don't have change we should not try to move // the file if (newMessageFile.equals(messageFile) == false) { -FileUtils.moveFile(messageFile, newMessageFile); +byte tries = 0; +while (!messageFile.renameTo(newMessageFile)) { +if(++tries = 5) { +throw new IOException(Failed renaming ' + messageFile + + ' to ' + newMessageFile + ' :(); +} +System.gc(); +} modSeq = newMessageFile.lastModified(); } else { Index: src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java --- src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java Base (BASE) +++ src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java Locally Modified (Based On LOCAL) @@ -729,7 +729,7 @@ public static String stripMetaFromName(String fileName) { int end = fileName.indexOf(,S=); // the size if (end == -1) -end = fileName.indexOf(:2,); // the flags +end = fileName.indexOf(MaildirMessageName.FLAG_PREFIX + 2,); // the flags if (end == -1) return fileName; // there is no meta data to strip return fileName.substring(0, end); Index: src/main/java/org/apache/james/mailbox/maildir/MaildirMessageName.java --- src/main/java/org/apache/james/mailbox/maildir/MaildirMessageName.java Base (BASE) +++ src/main/java/org/apache/james/mailbox/maildir/MaildirMessageName.java Locally Modified (Based On LOCAL) @@ -41,20 +41,25 @@ public static final String FLAG_SEEN = S; public static final String FLAG_DELETED = T; +// Character used instead of : for Windows filesystems. +// Using java.io.File.pathSeparator which = : on *NIX +// and ; on Windows. +public static final String FLAG_PREFIX = File.pathSeparator; + // patterns public static final String PATTERN_STRING_MESSAGE_NAME = \\d+\\.\\w+\\..+?; -public static final String PATTERN_STRING_FLAGS = :2,[DFRST]*; +public static final String PATTERN_STRING_FLAGS = FLAG_PREFIX + 2,[DFRST]*; public static final String PATTERN_STRING_SIZE = ,S=\\d+; public static final Pattern PATTERN_MESSAGE = Pattern.compile(PATTERN_STRING_MESSAGE_NAME + optional(PATTERN_STRING_SIZE) + optional(PATTERN_STRING_FLAGS)); public static final Pattern PATTERN_UNSEEN_MESSAGES = -Pattern.compile(PATTERN_STRING_MESSAGE_NAME + PATTERN_STRING_SIZE + optional(:2,[^S]*)); +Pattern.compile(PATTERN_STRING_MESSAGE_NAME + PATTERN_STRING_SIZE + optional(FLAG_PREFIX +
Re: Sending from external mail server to James server
Never used to GreyListing, but I think you have to configure/train it. On 20/09/13 08:19, seyoum tesfay wrote: Hello, James 3 beta 4 is sending emails to other mail servers like gmail. But when I try to send email from gmail to James, the mail is not getting delivered to the user's inbox. The smtp server has in its log something like *james.apache.org.smtpserver.fastfail.JDBCGreyListHandler: result=4 DENYSOFT* Is there anything I can do to receive emails from known mail servers without disabling Greylisting? regards, * * *..* Seyoum T. Granite IT Solutions PLC, www.graniteinfosystems.com Alt-email: i...@graniteinfosystems.com P.o.Box: 1641 Mob: +251-921018195 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: LDAP authentication
Thx for sharing this. If OK for you, I will take you config in the James documentation. On 23/09/13 00:20, Robert Munn wrote: This message is a reply to an earlier message about LDAP authentication failure. I have this working and thought I would share my config. This is on Windows, FYI. I implemented a base Active Directory LDAP instance with Users.LDIF. It creates a configuration from the root node (cn=host,dc=domain,dc=com) that looks like this: CN=LostAndFound CN=NTDS Quotas CN=Roles CN=Users I added a user (called admin below) at this level of the tree, which looks like this: CN=LostAndFound CN=NTDS Quotas CN=Roles CN=admin I then added this user to the administrator Role in the tree: 1. select CN=Roles, then CN=Administrators 2, right-click CN=Administrators and selecting Properties 3. click members from the list of properties 4. click the Add DN button and add the DN of the admin (cn=admin,cn=host,dc=domain,dc=com) 5. Lastly, in the user's properties, set msDS-UserAccountDisabled = False. repository name=LocalUsers class=org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository ldapHost=ldap://localhost:389; principal=cn=admin,cn=host,dc=domain,dc=com credentials=password userBase=cn=Users,cn=host,dc=domain,dc=com userObjectClass=user userIdAttribute=cn/ Note the userIdAttribute, which is set to cn for the implementation above. Also note the userBase starts with CN=Users. I add all the regular users at that level (one level below the admin). In order to get this working, I worked out connecting to the LDAP store using the ldp.exe directory browser on Windows. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Log SMTP Commands
You could change the logging level and use a custom log4j appender, but this would not give you the exact output you are looking for. Any contribution (a hook prolly) is welcome. http://james.apache.org/server/3/monitor-logging.html On 10/09/13 21:10, Cristiano Andrade wrote: Hi, I'm using Apache James version 3 and I need to log all SMTP commands that used on final delivery and save it into a XML file. For example: I sent email from: a...@somedomain.com to: b...@domain.com, when somedomain.com connects on domain.com, I need to save all commands like this: 2013-01-14 08:51:47 220 mx.domain.com ESMTP m9si15066614pav.309 2013-01-14 08:51:47 EHLO somedomain.com 2013-01-14 08:51:47 250-domain.com at your service, [XX.XX.X.XX] 2013-01-14 08:51:47 250-SIZE 35882577 2013-01-14 08:51:47 250-8BITMIME 2013-01-14 08:51:47 250-STARTTLS 2013-01-14 08:51:47 250-ENHANCEDSTATUSCODES 2013-01-14 08:51:47 250 PIPELINING 2013-01-14 08:51:47 MAIL FROM:a...@somedomain.com BODY=7BIT 2013-01-14 08:51:47 RCPT TO:b...@domain.com 2013-01-14 08:51:47 DATA 2013-01-14 08:51:47 250 2.1.0 OK m9si15066614pav.309 2013-01-14 08:51:47 250 2.1.5 OK m9si15066614pav.309 2013-01-14 08:51:47 354 Go ahead m9si15066614pav.309 2013-01-14 08:51:48 . 2013-01-14 08:51:49 250 2.0.0 OK 1358182309 m9si15066614pav.309 2013-01-14 08:51:49 QUIT 2013-01-14 08:51:49 221 2.0.0 closing connection m9si15066614pav.309 2013-01-14 08:51:49 closed domain.com-smtp-in.domain.com (XX.XXX.XX.XX) in=381 out=70785 2013-01-14 08:51:49 done domain.com/mta1 Is there a hook or mailet that do this ? Thanks - 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: Logs rotation
You need to work the log4j.properties for this. On 11/09/13 17:02, Bob Sauvage wrote: Hello *, I've my own log rotation system. How can I disable James log rotation ? Thanks, - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: snapshots
I see one from 2013-02-08 https://repository.apache.org/content/repositories/snapshots/org/apache/james/james-server-container-spring/3.0-beta5-SNAPSHOT/ Anyway, that's too old due to build failing (tests). I will fix it this weekend. On 06/09/13 06:27, Tim wrote: Sorry if this question has been answered recently. Are there recent james snapshots anywhere? I'm only seeing up until 2012-12-31 -tim ** Tired of google reading your email? Try Mailiverse! ** - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Maildir support for Windows.
) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.messageReceived(ImapChannelUpstreamHandler.java:187) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:777) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:327) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:305) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:207) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:777) at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44) at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Failed to delete original file '..\var\store\maildir\mydomain.co.uk\wibble\cur\1377463834.cd32e9d983446360.MEBBE,S=2284;2,' after copy to '..\var\store\maildir\mydomain.co.uk\wibble\cur\1377463834.cd32e9d983446360.MEBBE,S=2284;2,S' at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2835) at org.apache.james.mailbox.maildir.mail.MaildirMessageMapper.updateFlags(MaildirMessageMapper.java:219) ... 48 more /snip (I'm not sure how I get to see the 48 more, I've already turned up everything to DEBUG and then to TRACE in log4j.properties.) Based on some research, I guess that the problem here is that the original file still has a lock on it when deletion is attempted. I've had a look at the process handles on the message file using Process Explorer (SysInternals tool), and accessing a message from the client typically opens 2-5 handles on the given file, which are released over a few seconds after accessing it (this is garbage-collection I assume). However the pattern is similar when moving/deleting a message (even after any previous handles have expired) so the issue isn't escapable as easily as waiting 10sec between accessing and moving/deleting a message (not that that would be practicable anyway). So maybe what I need to do there is force GC (or find what is keeping the handles/locks alive and make it release them) before doing the move? Also, I'm curious why that operation is copy-then-delete, when other move operations in maildir (e.g. from new - cur when read, which works fine) are presumably normal moves. Another issue is that the server seems to report all messages as Draft, but one thing at a time ;) I should have known it wouldn't be so easy... Any thoughts or advice on the above? Robin Bankhead Quoting Eric Charles e...@apache.org: On 16/08/13 18:36, Robin Bankhead wrote: Hi Eric, Thanks for your reply. Quoting Eric Charles e...@apache.org: 1. The support on windows has been asked and the answer has been that the maildir de-facto norm does not support this. Fair enough; if this document [1] is THE (de facto) spec, then its scope is obviously narrow insofar as it's *nix-centric and I'm sure Windows implementation was not considered by the author. Nevertheless, barring this one technical incompatibility, I can't see anything else standing against such implementation, can you? If the rigidity of the standard is considered of such importance that a deviant implementation isn't acceptable, then an alternative could be to clone/extend it, implement the necessary character-switch, and call the result something else (AwesomeDir, whatever) to avoid confusion ;) WinMailDir? 2. Where is the [1] you are referring to? Btw I think we could make it configurable to allow the mailbox-maildir to use a windows-friendly character. Maybe that character has already been proposed somewhere else? The default would of course be the standard norm. Sorry about that, I cut but forgot to paste... That link was just to the maildir subfolder in the svn repo
Re: James 3 - LDAP
Yeah, that would be great. Please also ensure that the changes don't break with some 'classical' ldap (openldap,...) and are not activedirectory proprietary. Upon the source patch, documentation would be great. Excellent! On 28/08/13 01:15, Ioan Eugen Stan wrote: Hello Seyoum, The proper way is to create an issue on jira [1] and add submit the patch that way and approve the ASF license. [1] https://issues.apache.org/jira/browse/JAMES On Mon, Aug 26, 2013 at 9:53 AM, seyoum tesfay syumtes...@gmail.com wrote: Hello, I have been working hard to make James 3.0-beta4 to work with LDAP. I am using Active Directory and have finally made modifications to the server code and it is working fine now. I needed to share the code that I have but I don't know where to put the code. AM I going to share it here in the mailing list or somewhere else? regards. * * *..* Seyoum T. Granite IT Solutions PLC, www.graniteinfosystems.com P.o.Box: 1641 Mob: +251-921018195 On Sat, Aug 24, 2013 at 12:09 PM, Eric Charles e...@apache.org wrote: To write tutorial, one need to know how it works and what's possible... Do know how it works and what's possible, one need to read tutorial... Classical chicken-and-egg issue. Conclusion, go deep, deep, deep in the code, test, test, test, extract the best and share it. On 17/08/13 21:05, Merve Temizer wrote: Hello Mr. Charles, Do you mean by saying you welcome tutorials that it may be possible to auth James with LDAP branch leaves? This is a recurring question i know, but is there a possibility if we deeply search James source code and how does it work? Sorry 2013/6/6 Eric Charles e...@apache.org Hi, That's a recurring question and any further documentation/tutorial for a James/LDAP user will be welcome (as posted a few times before :). Thx, Eric On 06/06/2013 15:26, Doru Mihaescu wrote: Hello, Do any of you use LDAP authentication with James 3? If you, are you able to have users in various ou's of the ldap? We are able to successfully authenticate James 3 against OpenLdap that has all the users in one organizational unit. However, when we try to authenticate users present in higher branches, we are not able to authenticate. For instance if my userBase is: dc=example,dc=com: us...@example.com - auth works us...@branch1.example.com - auth does not work us...@branch2.example.com - auth does not work when issuing james-cli listusers, all the users are actually displayed: user1 user2 user3 but only user1 can be authenticated. thank you. -doru doru mihaescu associate director information systems --** --**- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org server-user-**unsubscr...@james.apache.orgserver-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org server-user-help@james.**apache.org server-user-h...@james.apache.org --** --**- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org server-user-**unsubscr...@james.apache.orgserver-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org server-user-help@james.**apache.org server-user-h...@james.apache.org --**--**- 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: How does JAMES maintain the email contact list?
James Server api has no contact-list management (per user). It has just a global user repository. James Hupa implements something to allow a contact per user (saving the contact list in the Imap Draft folder if I remember well). You an design and implement from scratch if you really need this in the core James Server. Of course, every client has its own client solution (independent from server). Another way would be to user the ldap implementation (in that case, the client would have access to the global James users). On 22/08/13 12:04, Dileepa Jayakody wrote: Hi All, I'm trying to use JAMES to develop a reputation management system in emails and I have sent some emails to this list on my architecture and approach.. To keep a MapContact,Reputation I need to access the contact-list attached to a mailbox in James. I went through the source of james-mailbox but couldn't find any lead on managing contact-lists in James. I searched for generic methods to access a contact list of a IMAP server but no luck. This lead me to wonder, how do email servers maintain the contacts lists for a mailbox. Is it done at the email-client ? Is there a way to retrieve contact-list (list of saved email-addresses) in James server or do I need to implement a Contact List from scratch? Very much appreciate your ideas on a way forward. Thanks, Dileepa - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James 3 - LDAP
To write tutorial, one need to know how it works and what's possible... Do know how it works and what's possible, one need to read tutorial... Classical chicken-and-egg issue. Conclusion, go deep, deep, deep in the code, test, test, test, extract the best and share it. On 17/08/13 21:05, Merve Temizer wrote: Hello Mr. Charles, Do you mean by saying you welcome tutorials that it may be possible to auth James with LDAP branch leaves? This is a recurring question i know, but is there a possibility if we deeply search James source code and how does it work? Sorry 2013/6/6 Eric Charles e...@apache.org Hi, That's a recurring question and any further documentation/tutorial for a James/LDAP user will be welcome (as posted a few times before :). Thx, Eric On 06/06/2013 15:26, Doru Mihaescu wrote: Hello, Do any of you use LDAP authentication with James 3? If you, are you able to have users in various ou's of the ldap? We are able to successfully authenticate James 3 against OpenLdap that has all the users in one organizational unit. However, when we try to authenticate users present in higher branches, we are not able to authenticate. For instance if my userBase is: dc=example,dc=com: us...@example.com - auth works us...@branch1.example.com - auth does not work us...@branch2.example.com - auth does not work when issuing james-cli listusers, all the users are actually displayed: user1 user2 user3 but only user1 can be authenticated. thank you. -doru doru mihaescu associate director information systems --**--**- 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 --**--**- 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Maildir support for Windows.
On 16/08/13 18:36, Robin Bankhead wrote: Hi Eric, Thanks for your reply. Quoting Eric Charles e...@apache.org: 1. The support on windows has been asked and the answer has been that the maildir de-facto norm does not support this. Fair enough; if this document [1] is THE (de facto) spec, then its scope is obviously narrow insofar as it's *nix-centric and I'm sure Windows implementation was not considered by the author. Nevertheless, barring this one technical incompatibility, I can't see anything else standing against such implementation, can you? If the rigidity of the standard is considered of such importance that a deviant implementation isn't acceptable, then an alternative could be to clone/extend it, implement the necessary character-switch, and call the result something else (AwesomeDir, whatever) to avoid confusion ;) WinMailDir? 2. Where is the [1] you are referring to? Btw I think we could make it configurable to allow the mailbox-maildir to use a windows-friendly character. Maybe that character has already been proposed somewhere else? The default would of course be the standard norm. Sorry about that, I cut but forgot to paste... That link was just to the maildir subfolder in the svn repo; instead of that, here's a patch! Not sure if it's the preferred format (and is against 0.4 version, not trunk, as my test target initially will be the server 3.0beta4 release) but should be apparent what it does at least. (Actually it does exactly nothing functionally different, but replacing all hard-coded references to the colon with a constant that's easier to flip.) I've seen semicolon and (I think) comma suggested in the pages I came across, but really it matters little as long as it's not a colon, other NTFS/FAT reserved character, or character that could appear elsewhere in the filename - which leaves us plenty of options. James can't be the first project to have wrestled with this particular conundrum when porting to Windows, so it might be the case that there already is a favoured choice among those projects, but I'd need to investigate further. Certainly there would have to be a different default for Windows because the global default simply doesn't work there, but many users wouldn't care what character was used instead, so that decision ought not to be forced on them. Next I'll look into implementing an OS-detecting switch for this and an optional preference to specify the character used. I realise this remains very hypothetical for actual submission, but does that sound like the best approach? Rather than os-detecting system, the failing character could be defined by configuration, default being the standard one. Thanks, Robin Bankhead [1] http://cr.yp.to/proto/maildir.html On 14/08/13 16:11, Robin Bankhead wrote: Hi, I've been looking at James as a replacement for our legacy Windows- based email setup, at which point my hopes of a maildir-based message store were dashed (because of a filesystem reserved character (colon) in the spec). Moving to maildir appealed to me because the legacy software uses mbox but the local spool is now up to nearly 2GB and the risk of corruption is starting to bother me (well, that and the next Windows update could render that abandonware unusable). I daresay it would improve performance somewhat as well. I've had a look at the source, and from what I can see, the edits required to use an alternative character (eg semicolon) in message file naming only amount to a couple of lines, or a bit more to make it a configurable option. I'm ready to try building and testing a patch myself, but before I fling myself into that I felt it sensible to ask: 1. Has this been proposed before, and if so, are there technical reasons why it was decided against? (No sense in going over old ground) 2. Should I be looking further afield in the source than the specific Maildir code, i.e. the contents of [1], for potential conflicts? (I guess in theory the answer should be no, but y'all know the codebase better than I!) Any advice would be very welcome. Regards, Robin Bankhead - 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: LMTP
You should implement a LmtpRemoteDelivery mailet (based on the existing RemoteDelivery). You could implement a completely new one, or make the existing one configurable (use composition to inject a SmtpTransport or a LmtpTransport). On 19/08/13 17:04, Phillip Odam wrote: Ok, appears Norman Maurer has developed just what I'm after https://github.com/normanmaurer/niosmtp Just need to figure out just how to exactly use this. On 8/16/13 11:44 AM, Phillip Odam wrote: Hi I'm trying to setup an environment with Apache JAMES 3.0-beta4 and dovecot 2 where James provides SMTP and Dovecot provides the IMAP and for mail to be transferred between James and Dovecot by LMTP. From what I've found so far, I can only find James offering a LMTP server but no LMTP client. Dovecot also offers a LMTP server. The configuration I was figuring on is 1. Dovecot LMTP service bound to and listening on 127.0.0.1:24 2. James configured to send inbound mail to 127.0.0.1:24 over LMTP Does this make sense and is this possible with the current James 3.0-beta4 or the underway beta5? I have a currently working configuration where James stores the mail in maildir and Dovecots imap service is configured to serve mail out of the same maildir but I'd like to move to Dovecot managing all aspects of the maildir if it's possible. Thanks Phillip - 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 and AD
Did you succeed to make it work. People may be interested in your feedback. On 05/08/13 13:47, seyoum tesfay wrote: Hello, Has anyone has an experience in using James server with Active Directory? I have configured the James server 3-beta4 userrepository as follows and successfully started the server. But I couldn't authenticate to the server using a user in the AD. *repository name=LocalUsers class=org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository * *ldapHost=ldap://10.0.49.10:389; principal=g...@asni.org* *credentials=mypassword userBase=ou=ASNI,dc=asni,dc=org userObjectClass=user userIdAttribute=sAMAccountName/* When I use a user and its password from the AD to authenticate to the server, it is giving me an Authentication Failed error in my Java code. Can anyone point me to a solution in using James with AD? regards, * * - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: James wiki?
You can contribute doc patches (see http://james.apache.org/contribute.html) I have opened a INFRA jira for the wiki issue https://issues.apache.org/jira/browse/INFRA-6689 On 24/08/13 15:54, Tom Byrne wrote: Hi all. Is there an alternate location for the James wiki? The main apache page one seems to have been down for some time. - 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: Maildir support for Windows.
1. The support on windows has been asked and the answer has been that the maildir de-facto norm does not support this. 2. Where is the [1] you are referring to? Btw I think we could make it configurable to allow the mailbox-maildir to use a windows-friendly character. Maybe that character has already been proposed somewhere else? The default would of course be the standard norm. On 14/08/13 16:11, Robin Bankhead wrote: Hi, I've been looking at James as a replacement for our legacy Windows- based email setup, at which point my hopes of a maildir-based message store were dashed (because of a filesystem reserved character (colon) in the spec). Moving to maildir appealed to me because the legacy software uses mbox but the local spool is now up to nearly 2GB and the risk of corruption is starting to bother me (well, that and the next Windows update could render that abandonware unusable). I daresay it would improve performance somewhat as well. I've had a look at the source, and from what I can see, the edits required to use an alternative character (eg semicolon) in message file naming only amount to a couple of lines, or a bit more to make it a configurable option. I'm ready to try building and testing a patch myself, but before I fling myself into that I felt it sensible to ask: 1. Has this been proposed before, and if so, are there technical reasons why it was decided against? (No sense in going over old ground) 2. Should I be looking further afield in the source than the specific Maildir code, i.e. the contents of [1], for potential conflicts? (I guess in theory the answer should be no, but y'all know the codebase better than I!) Any advice would be very welcome. Regards, Robin Bankhead - 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: ActiveMQ - Bug
(Thread.java:722) Caused by: javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Broker named 'james' does not exist. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:252) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:265) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:238) at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:184) at org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:342) at org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:288) at org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:225) at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:104) ... 2 more Caused by: java.io.IOException: Broker named 'james' does not exist. at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:116) at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:54) at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:67) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:250) ... 9 more Kind regards, Johnny Minty From: Eric Charles Sent: Thursday, 1 August 2013 5:44 p.m. To: James Users List Is it really an infinite loop (server never ending) or a ungraceful shutdown? Which version do you run? I usually see graceful shutdowns here. On 08/01/2013 05:24 AM, Johnny Minty wrote: Hi Guys, It looks like I'm able to put the mail server in to an infinite loop if I call close on the root application context. (Stack and cause below) The shutdown is failing on the destroy method on the 'mailqueuefactorybean' : bean id=mailqueuefactory class=org.apache.james.queue.activemq.ActiveMQMailQueueFactory depends-on=broker/ @PreDestroypublic void destroy() {for (String mbean : mbeans) { unregisterMBean(mbean); -- throws java.util.ConcurrentModificationException here} for (MailQueue mailQueue : queues.values()) { LifecycleUtil.dispose(mailQueue);} } WARN 16:10:48 | InitDestroyAnnotationBeanPostProcessor | Invocation of destroy method failed on bean with name 'mailqueuefactory': java.util.ConcurrentModificationExceptionERROR 16:10:48 | JamesMailetContext | Exception caught in OutboundDelivery.run()org.apache.james.queue.api.MailQueue$MailQueueException: Unable to dequeue next message; nested exception is: javax.jms.IllegalStateException: The Session is closed at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:171) at com.liverton.seemail.transport.OutboundDelivery.run(OutboundDelivery.java:655) at java.lang.Thread.run(Thread.java:722)Caused by: javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)at org.apache.activemq.ActiveMQSession.commit(ActiveMQSession.java:554) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5 7)at sun.reflect.Delegat i ngMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.jms.connection.CachingConnectionFactory$CachedSessionInvocationHandler.invoke(CachingConnectionFactory.java:348) at com.sun.proxy.$Proxy96.commit(Unknown Source)at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:116) ... 2 moreERROR 16:10:48 | JamesMailetContext | Exception caught in OutboundDelivery.run()org.apache.james.queue.api.MailQueue$MailQueueException: Unable to dequeue next message; nested exception is: javax.jms.IllegalStateException: The Session is closed at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:171) at com.liverton.seemail.transport.OutboundDelivery.run(OutboundDelivery.java:655) at java.lang.Thread.run(Thread.java:722)Caused by: javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(Ac tiveMQSession.java:731)at org.apache.activemq.Act i veMQSession.commit(ActiveMQSession.java:554)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke
Re: Sending mail to external domains
If you can send locally to sey...@mitaa.org, double check the mx record for mitaa.org which should point to the public ip address of your james server. On 07/31/2013 10:20 AM, seyoum tesfay wrote: Thank you Eric, Now James is able to send to gmail. But when I send a reply to the James server from gmail I got the following failure notification. *Delivery has failed to these recipients or groups:* * * *sey...@mitaa.org* *The e-mail address you entered couldn't be found. Please check the recipient's e-mail address and try to resend the message. If the problem continues, please contact your helpdesk.* * * Why does the server (james) fail to deliver the mail to the user? * * *..* Seyoum T. Granite IT Solutions PLC, www.graniteinfosystems.com P.o.Box: 1641 Mob: +251-921018195 On Tue, Jul 30, 2013 at 10:32 PM, Eric Charles e...@apache.org wrote: That functionality is built-in. If it doesn't work, check the SMTP (port 25) connectivity between James and the world. On 07/30/2013 06:54 PM, seyoum tesfay wrote: Hello, Sending email to a domain defined under James works fine. But how can I configure James to send emails to other mail servers like gmail? I am using James 3.0 beta 4? regards, --**--**- 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 --**--**- 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: ActiveMQ - Bug
Is it really an infinite loop (server never ending) or a ungraceful shutdown? Which version do you run? I usually see graceful shutdowns here. On 08/01/2013 05:24 AM, Johnny Minty wrote: Hi Guys, It looks like I'm able to put the mail server in to an infinite loop if I call close on the root application context. (Stack and cause below) The shutdown is failing on the destroy method on the 'mailqueuefactorybean' : bean id=mailqueuefactory class=org.apache.james.queue.activemq.ActiveMQMailQueueFactory depends-on=broker/ @PreDestroypublic void destroy() {for (String mbean : mbeans) { unregisterMBean(mbean); -- throws java.util.ConcurrentModificationException here} for (MailQueue mailQueue : queues.values()) { LifecycleUtil.dispose(mailQueue);} } WARN 16:10:48 | InitDestroyAnnotationBeanPostProcessor | Invocation of destroy method failed on bean with name 'mailqueuefactory': java.util.ConcurrentModificationExceptionERROR 16:10:48 | JamesMailetContext | Exception caught in OutboundDelivery.run()org.apache.james.queue.api.MailQueue$MailQueueException: Unable to dequeue next message; nested exception is: javax.jms.IllegalStateException: The Session is closed at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:171) at com.liverton.seemail.transport.OutboundDelivery.run(OutboundDelivery.java:655) at java.lang.Thread.run(Thread.java:722)Caused by: javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)at org.apache.activemq.ActiveMQSession.commit(ActiveMQSession.java:554) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.Delegat i ngMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.jms.connection.CachingConnectionFactory$CachedSessionInvocationHandler.invoke(CachingConnectionFactory.java:348) at com.sun.proxy.$Proxy96.commit(Unknown Source)at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:116) ... 2 moreERROR 16:10:48 | JamesMailetContext | Exception caught in OutboundDelivery.run()org.apache.james.queue.api.MailQueue$MailQueueException: Unable to dequeue next message; nested exception is: javax.jms.IllegalStateException: The Session is closed at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:171) at com.liverton.seemail.transport.OutboundDelivery.run(OutboundDelivery.java:655) at java.lang.Thread.run(Thread.java:722)Caused by: javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)at org.apache.activemq.Act i veMQSession.commit(ActiveMQSession.java:554)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.jms.connection.CachingConnectionFactory$CachedSessionInvocationHandler.invoke(CachingConnectionFactory.java:348) at com.sun.proxy.$Proxy96.commit(Unknown Source)at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:116) ... 2 more Regards, Johnny Minty - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Sending mail to external domains
That functionality is built-in. If it doesn't work, check the SMTP (port 25) connectivity between James and the world. On 07/30/2013 06:54 PM, seyoum tesfay wrote: Hello, Sending email to a domain defined under James works fine. But how can I configure James to send emails to other mail servers like gmail? I am using James 3.0 beta 4? regards, - 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: Using Apache James for Reputation Management in Email Systems
Yes, James is the ideal fit for such specific mail usecases. The inline image is not visible. Can you send a link rather than an attachment? On 2013-07-29 11:00, Dileepa Jayakody wrote: Hi All, I'm Dileepa a newbie to Apache James. I'm doing my Msc research project on : Reputation Management in Email Networks in which I aim to implement a reputation management network among peers using email systems. Each user will have an index of reputation scores for his contacts (based on email content analysis as per his personal context and number of spam/not-important messages sent by the contact). This reputation scores should be shared among peers in a controlled manner (ACL, authorization) to deliver a collaborative reputation network. I'm planning to use an extended SMTP protocol to share reputation attached to email users. I came across the Apache James http://james.apache.org/ project and realized it provides an API to extend existing protocols like SMTP and IMAP to perform additional tasks via APIs like James Mailet http://james.apache.org/mailet/index.html and SMTP Hooks. Below is the architecture I have in mind for reputation management via email networks. Reputation Server, ReputationBox are analogous to the email IMAP/POP servers and MBox of users. I highly appreciate your ideas on my project and wish to incorporate your suggestions on using Apache James or related technologies to my project. Your thoughts and tips on James are highly appreciated. Inline image 1 Regards, Dileepa - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Using Apache James for Reputation Management in Email Systems
Does the email client communicate with REST to the ReputationServer? This sounds a bit odd cause you will have to develop custom plugins/extensions for all clients. I would rather have used LDAP which is supported by all major clients. On 2013-07-29 12:05, Dileepa Jayakody wrote: Hi Eric, Thanks for ur response. Please find my high-level architecture diagram at : http://creately.com/diagram/example/hjkwxh261 It would be great to get your suggestions on the architecture to make it more generic and extensible. Thanks, Dileepa On Mon, Jul 29, 2013 at 3:29 PM, Eric Charles e...@apache.org wrote: Yes, James is the ideal fit for such specific mail usecases. The inline image is not visible. Can you send a link rather than an attachment? On 2013-07-29 11:00, Dileepa Jayakody wrote: Hi All, I'm Dileepa a newbie to Apache James. I'm doing my Msc research project on : Reputation Management in Email Networks in which I aim to implement a reputation management network among peers using email systems. Each user will have an index of reputation scores for his contacts (based on email content analysis as per his personal context and number of spam/not-important messages sent by the contact). This reputation scores should be shared among peers in a controlled manner (ACL, authorization) to deliver a collaborative reputation network. I'm planning to use an extended SMTP protocol to share reputation attached to email users. I came across the Apache James http://james.apache.org/ project and realized it provides an API to extend existing protocols like SMTP and IMAP to perform additional tasks via APIs like James Mailet http://james.apache.org/**mailet/index.htmlhttp://james.apache.org/mailet/index.html and SMTP Hooks. Below is the architecture I have in mind for reputation management via email networks. Reputation Server, ReputationBox are analogous to the email IMAP/POP servers and MBox of users. I highly appreciate your ideas on my project and wish to incorporate your suggestions on using Apache James or related technologies to my project. Your thoughts and tips on James are highly appreciated. Inline image 1 Regards, Dileepa --**--**- 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 - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org