Two quick thoughts before I return to lurking...

1. ESMTP support sounds great.  +1 to incorporating it.

2. I've been thinking of going into the guts of James to reduce the use of a
MimeMessage.

Really, the only time we *need* a MimeMessage object is during Mailet
processing.  I remember adding code so that the Mail object only
instantiates the MimeMessage if a mailet uses the MimeMessage, and this
speeds things great, but I'm not sure what the state of that is now (whether
it's only on the database repository or for all types of repositories or
what).

The areas were we don't need MimeMessage at all are during SMTP receive,
SMTP delivery, and POP retrieval.  We're using MimeMessage because it's a
easy, but it'd be a lot more efficient (speed, memory, everything) if we
were using streams to do this and possibly doing some small verification of
the format.

I don't really have time, but thought I'd bring this up if anybody else was
thinking about it.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Charles Benett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 5:08 AM
Subject: Re: proposal: add SMTP AUTH support was: I WANT MY USERS TO BE ABLE
TO SEND MAIL (SIGH)


> Alec Yu wrote:
> >
> > I use VSS in my office, and never used CVS. Smirk.
> > (still figuring how to play with CVS...)
> >
> > Related source files in http://legendzone.org/james121-patch.zip.
> > Following classes modified: (I've included a diff-list.txt to tell where
did I modify in these classes)
> > org.apache.james.smtpserver.SMTPServer      (with some fields changed
from Private to Protected)
> > org.apache.james.smtpserver.SMTPHandler    (with some fields changed
from Private to Protected,
> >
plus a createMailHeader() )
> > org.apache.james.James                                   (added "import
org.apache.james.esmtpserver.* and
> >
modified "new SMTPServer(...) to new ESMTPServer(...)"
> >
> > 4 classes added:
> > org.apache.james.esmtpserver.ESMTPServer (inherited from the above
SMTPServer)
> > org.apache.james.esmtpserver.ESMTPHandler (inherited from the above
SMTPHandler)
> > org.apache.james.transport.matchers.AuthLogin
> > org.apache.james.transport.matchers.AuthNotLogin
>
> Great! Thanks, Alec.
> I haven't got time to do this at the moment but maybe Harmeet will?
> The other thing that would be good would be to combine Matt Pangaro's
> SizeLimitedSMTPHandler into SMTPHandler with appropriate switches so
> that it only uses SizeLimitedSMTPStream (and instantiates a mail object)
> if a limit has been set.
> Charles
>
>
>
> > ----- Original Message -----
> > From: "Harmeet Bedi" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 16, 2001 2:40 PM
> > Subject: proposal: add SMTP AUTH support was: I WANT MY USERS TO BE ABLE
TO SEND MAIL (SIGH)
> >
> > > I think James would be richer if it had SMTP AUTH support. It seems to
be a
> > > well supported extension and could be useful.
> > > The RFC is at http://www.innosoft.com/rfc/rfc2554.html
> > > Some industry support for this at
> > > http://members.elysium.pl/brush/smtp-auth/client.html and
> > > http://members.elysium.pl/brush/smtp-auth/server.html
> > >
> > > What do you think ?
> > >
> > > Alec, would you be willing to contribute your SMTP Auth code for this
under
> > > Apache License ?
> > >
> > > Harmeet
> > >
> > > ----- Original Message -----
> > > From: "Alec Yu" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, May 15, 2001 12:01 AM
> > > Subject: Re: I WANT MY USERS TO BE ABLE TO SEND MAIL (SIGH)
> > >
> > >
> > > > I've developed 2 mailets to allow authentication via SMTP service
> > > extension of "AUTH LOGIN";
> > > > but the mailet reqires cooperation of some modified code in
> > > org.apache.james.smtpserver.SMTPHandler.
> > > >
> > > > One of these 2 mailets named "AuthLogin", checks if the mail sending
user
> > > logged in as some JAMES user;
> > > > the other, named "AuthNotLogin", checks if the mail sending user not
> > > logged as some JAMES user.
> > > >
> > > > To allow your users to send mail with Outlook/Outlook express SMTP
login
> > > feature,
> > > > what you need to do is to change the spam check matcher from
NotInNetwork
> > > to
> > > > AuthNotLogin.
> > > >
> > > > ----- Original Message -----
> > > > From: "fractals" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, May 15, 2001 5:36 AM
> > > > Subject: I WANT MY USERS TO BE ABLE TO SEND MAIL (SIGH)
> > > >
> > > >
> > > > > Now, putting the mailets in the documented way (like in the sample
> > > > > JAMES.conf.xml: see below), I cannot let my users send mail.
> > > > >
> > > > > I need more explanations on this !
> > > > >
> > > > > Now what is clear to me now is that this "anti-spam" mailet
prevents
> > > spammer
> > > > > to send mails that are NotInNetwork. It should be clear that this
rule
> > > > > applies when the mails sender is not one of the local users.
> > > > >
> > > > > My question is very simple:
> > > > >
> > > > > How do I setup James so that the mails that are written by local
users
> > > ARE
> > > > > ALLOWED to be sent outwards, and those which are written by
unknown
> > > people
> > > > > get into dev/null.
> > > > >
> > > > >
> > > > >
> > > > > The mailets in the right order:
> > > > >
> > > > > <mailet match="RemoteAddrNotInNetwork=127.0.0.1, <here comes my
> > > network>"
> > > > > class="ToProcessor">
> > > > >     <processor> spam </processor>
> > > > > </mailet>
> > > > >
> > > > > and:
> > > > >
> > > > > <mailet match="All" class="RemoteDelivery">
> > > > >     <outgoing> file://../var/mail/outgoing/ </outgoing>
> > > > >     <!-- <outgoing> town://mail-outgoing </outgoing>-->
> > > > > <delayTime> 21600000 </delayTime>
> > > > > <maxRetries> 5 </maxRetries>
> > > > > </mailet>
> > > > > </processor>
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to