Klearchos Klearchou
Fri, 20 Nov 2009 06:46:21 -0800
Hello Stefano, thank you for your quick reply. I understand that what I ask is not standard that's why I am willing to do some codingfor it.
Is it possible to give me some more info regarding what I have to change or possibly some changes at the confguration file ? Thank you. ----- Original Message ----- From: "Stefano Bagnara" <apa...@bago.org> To: "James Users List" <server-user@james.apache.org> Sent: Friday, November 20, 2009 4:33 PM Subject: Re: James mail order FIFO resend. Mail Relay 2009/11/20 Klearchos Klearchou <klearchos.klearc...@eurodyn.com> > > Hello all, > > I have seen that if I change the config file with the following: > <repository class="org.apache.james.mailrepository.AvalonMailRepository"> > <protocols> > <protocol>file</protocol> > </protocols> > <types> > <type>MAIL</type> > </types> > <config FIFO="true"/> > </repository> > <repository > class="org.apache.james.mailrepository.AvalonSpoolRepository"> > <protocols> > <protocol>file</protocol> > </protocols> > <types> > <type>SPOOL</type> > </types> > <config FIFO="true"/> > </repository> > > it delivers the emails at the correct order. > But now my problem is that at the time the SMTP relay comes online > and James receives a message then it will immediately deliver this message > that normally came after all the emails that exists at the outgoing folder. > > Is there any mechanism that we could ensure that first all teh emails from > the > outgoing folder will be delivered before processing any other incoming ? Unfortunately no. You will have to use 1 thread in the main spool manager, 1 single processor in the main spoolmanager, 1 thread for remotedelivery and you will have to write your own RemoteDelivery if you want it to ignore every message until the older one has been delivered. What you ask is not supported by the email standards and I think you won't find any mail server that will try to mimic the behaviour you need. And what you are trying to do will only work if you control both the mail server sending email to james and the mail server receiving email from james, otherwise they could reorder things. Stefano > Thank you in advance. > > > ----- Original Message ----- > From: "Norman Maurer" <norman.mau...@googlemail.com> > To: "James Users List" <server-user@james.apache.org> > Sent: Thursday, November 19, 2009 7:17 PM > Subject: Re: James mail order FIFO resend. Mail Relay > > > > Hi Klearchos, > > > > so you need be sure that the email order is still preserved on retries > > ? Just want to understand the "use" case. > > > > Bye, > > Norman > > > > 2009/11/19 Klearchos Klearchou <klearchos.klearc...@eurodyn.com>: > > > Hello all, > > > > > > I am working with James 2.3.2. > > > James forwards emails to a mail relay. > > > > > > The order of emails plays an important role for my application. > > > I have included the FIFO attribute here > > > <repository destinationURL="file://var/mail/inboxes/" type="MAIL" > FIFO="true" /> > > > since I use a file based repository and the order is very important. > > > > > > My problems starts from the time that the mail relay is down. > > > Then James start the resend procedure since the first try failed to send > > > the mail. > > > > > > From that point onwards the order of emails is messed up. > > > > > > Is there any attribute that I could change or possibly make use of the > Mailet API in order to fix this? > > > I have read that the DB is slow but respects the mail order. > > > Is this true when James tries to resend them because the first try > failed? > > > > > > Any pointers regarding the order of the mails would be greatly > appreciated. > > > > > > Thank you in 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 > --------------------------------------------------------------------- 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