Re: James Fastfail

2005-08-30 Thread Anagha Mudigonda
thank you:) Should I migrate these keys to new message and session scope maps and remove *OLD* state hashmap?? // Keys used to store/lookup data in the internal state hash map private final static String CURRENT_HELO_MODE = "CURRENT_HELO_MODE"; // HELO or EHLO private final static String SENDER

Re: James Fastfail

2005-08-30 Thread Stefano Bagnara
> sorry I sent a wrong version that didnot compile It should > be session.getState().get(MESG_FAILED) as the existing Keys > MESG_FAILED, SENDER and so on would continue to use the state > variable in the SMTPHandler. > -- Anagha Fixed, thank you again, Stefano -

Re: James Fastfail

2005-08-30 Thread Anagha Mudigonda
sorry I sent a wrong version that didnot compile It should be session.getState().get(MESG_FAILED) as the existing Keys MESG_FAILED, SENDER and so on would continue to use the state variable in the SMTPHandler. -- Anagha On 8/30/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote: > > > Stef

Re: James Fastfail

2005-08-30 Thread Stefano Bagnara
> Stefano, > > I am still working on 2 and 3. I thought I could release one > patch with the following changes > > 1. UnknownCommandHandler.java > a) Added > //If there was message failure, don't consider it as > an unknown command > if (state.get(MESG_FAILED) != null) { >

Re: James Fastfail

2005-08-30 Thread Anagha Mudigonda
Stefano, I am still working on 2 and 3. I thought I could release one patch with the following changes 1. UnknownCommandHandler.java a) Added //If there was message failure, don't consider it as an unknown command if (state.get(MESG_FAILED) != null) { return;

Re: [PATCH] James Fastfail

2005-08-27 Thread Stefano Bagnara
> > - Now SMTPhandler implements SMTPSession interface. Remove > the inner > > class implementation > > - Removed unecessary interfaces from SMTPSession interface > > - Made changes to SMTPHandlerChain that doenot allow the server to > > start if there are no commandHandlers registered or if the

Re: [PATCH] James Fastfail

2005-08-27 Thread Klaus Dornfelder
Attached the patch that has following changes - Now SMTPhandler implements SMTPSession interface. Remove the inner class implementation - Removed unecessary interfaces from SMTPSession interface - Made changes to SMTPHandlerChain that doenot allow the server to start if there are no commandHandl

Re: [PATCH] James Fastfail

2005-08-25 Thread Stefano Bagnara
> > If you like any of this ideas I can help you identifying james > > services you need and how to use Avalon lifecycle > interfaces to gain > > access to the user db or to the repositories. > > I like all of them. To begin with I will work on these > 1. > MAILHandler that allow to specify ba

Re: [PATCH] James Fastfail

2005-08-24 Thread Anagha Mudigonda
On 8/25/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote: > IMHO any effort to be able to use Mathers/Mailets or even full processors > from the MessageHandlers would be useful. > > > Do you want me to work on something specific for my next release? > > We could change the default "command unknown"

Re: [PATCH] James Fastfail

2005-08-24 Thread Stefano Bagnara
> > I've just tested that it runs and it accept a message in smtp. > > I won't have time this week to do more than this. > > I am doing thorough testing. I am planning to refactor some > more and start work on MatcherMessageHandler. IMHO any effort to be able to use Mathers/Mailets or even full

Re: [PATCH] James Fastfail

2005-08-24 Thread Anagha Mudigonda
On 8/22/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote: > > Stefano, > > >> Hi Anagha, > > I just committed your update! > > I fixed a "blocklisted = blocklisted;" that should have been > "this.blocklisted = blocklisted;" in SMTPHandler. oops I missed that! > > I also did a few dummy changes:

Re: [PATCH] James Fastfail

2005-08-22 Thread Stefano Bagnara
> Stefano, > > Attached the patch that has following changes > > - Now SMTPhandler implements SMTPSession interface. Remove > the inner class implementation > - Removed unecessary interfaces from SMTPSession interface > - Made changes to SMTPHandlerChain that doenot allow the > server to start

Re: [PATCH] James Fastfail

2005-08-22 Thread Anagha Mudigonda
Updated the JIRA http://issues.apache.org/jira/secure/attachment/12311884/Aug22JamesFastFail.patch --anagha On 8/22/05, Anagha Mudigonda <[EMAIL PROTECTED]> wrote: > Stefano, > > Attached the patch that has following changes > > > - Now SMTPhandler implements SMTPSession interface. Remove the

[PATCH] James Fastfail

2005-08-22 Thread Anagha Mudigonda
Stefano, Attached the patch that has following changes - Now SMTPhandler implements SMTPSession interface. Remove the inner class implementation - Removed unecessary interfaces from SMTPSession interface - Made changes to SMTPHandlerChain that doenot allow the server to start if there are no com

suggestions to http://wiki.apache.org/james/FastFail

2005-06-15 Thread Anagha Mudigonda
Danny and Noel, I would like to contribute in arriving at a lightweight in-protocol framework that is *reasonably* extensible and configurable. I tweaked the interfaces little bit and there are two major deviations from the proposals put forth at http://wiki.apache.org/james/FastFail. 1

[SummerOfCode2005] [james-fastfail] - formal proposal on wiki updated

2005-06-14 Thread Sergey Lubinskiy
Hello, Danny and Other James Developers! I have just updated my james-fastfail proposal http://wiki.apache.org/james/SummerOfCode2005/SergeyLubinskiyFastFail#preview Now it says more what I wanted to say rather than what my fingers were able to type late at night :-) Danny Angus <[EM

Re: [SummerOfCode2005] [james-fastfail] - formal proposal on wiki

2005-06-14 Thread Danny Angus
server-dev@james.apache.org | | cc: | | Subject: [SummerOfCode2005] [james-fa

[SummerOfCode2005] [james-fastfail] - formal proposal on wiki

2005-06-13 Thread Sergey Lubinskiy
Hello, James developers! I think I'm late like a Rabit from "Alice In The Wonderland" http://wiki.apache.org/james/SummerOfCode2005/SergeyLubinskiyFastFail#preview I fear the proposal is a little too wordy - due to lack of time. Do you think anybody there could sponsor me? Sergey P.S. Anybody

[SummerOfCode2005] james-fastfail - is there still a chance to get a mentor?

2005-06-13 Thread Sergey Lubinskiy
Helo, James developers! What a shame that it has been so late that I've been told about [SummerOfCode2005] programm. For it is just the right thing at the right time - I'm a student at Department Of Physics, Moscow State University http://www.msu.ru/en/ and I'm really keen on programming. Two

RE: James FastFail thoughts

2005-06-12 Thread Anagha Mudigonda
Noel, I like the design you proposed for the protocol handler framework so that Fast fail is a mere extension to it. Moreover the rest of protocols can be rewritten around the new framework. Here is my design proposal very much on the lines on yours and Danny's. Please review and let me know your

RE: James FastFail thoughts

2005-06-10 Thread Noel J. Bergman
Anagha Mudigonda wrote: > If MAIL FROM validation passed SPF then no need to Validate RCPT TO > If MAIL FROM, RCPT TO Passed then no need to validate DATA Well, I'm not so sure about those rules, but that's separate from how one might do them. > We not only need session state but some kinda rule

James FastFail thoughts

2005-06-10 Thread Anagha Mudigonda
Hi, I have been actively following the Fast fail design discussions. I was wondering it may be necessary to configure rule as the following: If MAIL FROM validation passed SPF then no need to Validate RCPT TO If MAIL FROM, RCPT TO Passed then no need to validate DATA We not only need session sta

Re: Summer of Code - JAMES Fastfail

2005-06-09 Thread Soren Hilmer
On Thursday 09 June 2005 11:58, Danny Angus wrote: > Are you going to ApacheConEU? We could arrange to brainstorm the > implementation details. Unfortunately not ;-( Great, we are totally on the same track then! --Søren -- Søren Hilmer, M.Sc. R&D manager Phone: +45 72 30 64 00 T

Re: Summer of Code - JAMES Fastfail

2005-06-09 Thread Danny Angus
Soren, > I like your proposal for fastfail, very much in line with my own thoughts. > I only have minor comments. Yeah I think with Noel's comments and your's we seem to be approaching a consensus on this one. Are you going to ApacheConEU? We could arrange to brainstorm the implementation details

Re: Summer of Code - JAMES Fastfail

2005-06-09 Thread Soren Hilmer
Hi Danny, > > My own idea config would look like: > > > > > > MAIL > > > FROM > > > > 5xx > foo-barred > > > > 220 > OK > > > > > I like your proposal for fastfail, very mu

Re: Summer of Code - JAMES Fastfail

2005-06-07 Thread Danny Angus
> 550 5.7.1 User unknown Yeah OK. > I think (as I said in past) that allowing full smtp reply code control at > this level will be an error. I don't think it is up to us to dictate how James users chose their installations to behave. OTOH I don't think we need to mandate configuration of respon

DSNStatus (Was: Re: Summer of Code - JAMES Fastfail)

2005-06-06 Thread Stefano Bagnara
> By the way, did I miss a patch where you changed the bounce > mailet? I'm seeing the DSNStatus inner class still there, as > well as the new copy of it that is in mail/dsn/DSNStatus. > > --- Noel My DSNBounce is totally different from the one in trunk. Actually I named my bounce handli

RE: Summer of Code - JAMES Fastfail

2005-06-06 Thread Noel J. Bergman
Stefano, > I wouldn't like the SMTP server to read the "code" that an handler returns > and decide how to behave dependently on the first char of that code. I agree with that concern, which isn't generally exposed in the my version of the fast-fail proposal. In the case where I show a general ca

Re: Summer of Code - JAMES Fastfail

2005-06-06 Thread Stefano Bagnara
> your configuration example: > > > > > [...] > 220 > > > [..] > > 5xx > > > 220 > > [..] I just added ENHANCEDSTATUSCODES support to james smtp server. So you should take care to add a DSN status to every smtp reply and not only

Re: Summer of Code - JAMES Fastfail

2005-06-06 Thread Danny Angus
Alexander, your configuration example: MAIL FROM accept 220 ... Looks just fine, very close to what I imagined. What I can't understand is how you could use "Matchers" before you have a complete "Mail". My own idea config would look

RE: Summer of Code - JAMES Fastfail and Clustering

2005-06-06 Thread Danny Angus
Noel wrote: > Although the scope of "validation" covers that neccessary to determine that > we will accept the responsibility for delivery, which can lead to some other > things. For example, I would probably configure virtual user mapping within > the protocol handler, which would allow me to r

RE: Summer of Code - JAMES Fastfail

2005-06-05 Thread Noel J. Bergman
Alexander Botov wrote: > thanks for the update. It really clarifies the fast-fail mechanism for me. > I have couple of questions (regarding fast-fail): > - Which branch from the svn should I checkout? We've recently moved into subversion and completed a version merger so that trunk/ is the curre

RE: Summer of Code - JAMES Fastfail

2005-06-05 Thread Alexander Botov
On Sat, 4 Jun 2005 16:10:49 -0400, Noel J. Bergman wrote > Alexander (and others interested in Fast-Fail), > > Danny has some information on http://wiki.apache.org/james/FastFail > for his proposal. That is one of several that have come up over the > past couple of years. I j

RE: james-fastfail

2005-06-04 Thread Noel J. Bergman
your eligibility. Regardless of the Summer of Code, we encourage anyone who is interested to contribute to JAMES. There is a lot that can be done with JAMES, and we are always interested in growing the developer community. > I would be interested in the project 'james-fastfail&#x

james-fastfail

2005-06-04 Thread Moritz Julen
for me to subscribe to a project of 'summer of code'. What do you think? I would be interested in the project 'james-fastfail'. In this project I could learn a lot of the protocols. And you wrote that there is a good background material available. So I could study this firs

Re: Summer of Code - JAMES Fastfail and Clustering

2005-06-04 Thread Stefano Bagnara
> I would probably configure virtual user mapping within the > protocol handler, which would allow me to reject unknown > users in-protocol instead of via bounce notices. But this > should be a configurable choice, ideally using the same code. If you run VirtuserTable in the protocol handler

RE: Summer of Code - JAMES Fastfail and Clustering

2005-06-04 Thread Noel J. Bergman
Danny Angus wrote: > In my opinion (There may be some disagreement about where we're going > with this!) Fast Fail is about extending the SMTP protocol to include > validations +1 Although the scope of "validation" covers that neccessary to determine that we will accept the responsibility for de

RE: Summer of Code - JAMES Fastfail

2005-06-04 Thread Noel J. Bergman
Alexander (and others interested in Fast-Fail), Danny has some information on http://wiki.apache.org/james/FastFail for his proposal. That is one of several that have come up over the past couple of years. I just posted mine there, too. Danny and I are largely in agreement on on having some

Re: Summer of Code - JAMES Fastfail

2005-06-04 Thread Alexander Botov
OK, there are many enthusiastic people out there willing to contribute to James project, so I'm wondering if there is need for more, but still... My name is Alexander Botov and I'm undergraduate student studying computer science in Technical University of Sofia, Bulgaria. I've been using James in

Re: Summer of Code - JAMES Fastfail and Clustering - My observation

2005-06-03 Thread Danny Angus
HI, > Handler receives data, and forms > approriate commands and call doXXX to handle these commands. One > possible clustering approach here is to distribute these > commands to different processes (in different JVM as well). We currently assign each socket conenction to a handler and each handl

Re: Summer of Code - JAMES Fastfail and Clustering - My observation

2005-06-03 Thread Stefano Bagnara
> Could any developers verify my observations and give some > comments ? I am really interested in implementing clustering > feature for James. I would look here, too: http://sourceforge.net/projects/james-ha/ Stefano - To un

Re: Summer of Code - JAMES Fastfail and Clustering - My observation

2005-06-03 Thread Nguyen Trong Hung
I dont know the intention of james clustering proposal but I have been reading james source code for 2 days and trying to find places that clustering can be applied. As far as I know, each Handler of any kind represents socket connection with other party. Handler receives data, and forms approri

Re: Summer of Code - JAMES Fastfail and Clustering

2005-06-03 Thread Danny Angus
I suggest you subscribe to server-dev@james.apache.org and get involved in the discussions there. I don't know anything about the clustering proposal. I think the google summer of code is intended to be a three month "engagement" and I suspect that three months full-time is more than plenty time t