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 ?

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

Reply via email to