----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
You can let sendmail (or, better yet, postfix :-) ) deliver the mail to a
maildrop in the usual manner. Your system will remain as secure as your
MTA.
Configure a servlet as a startup sevlet (in the zone properties). Have that
servlet kick off a thread that uses the JavaMail API to poll for messages
via POP or IMAP. Frob the messages as you wish.
(Obviously, you'll have to set up a POP or IMAP server, if you don't already
have one running.)
The maildrop will act as a queue so you ought not lose messages even if your
servlet stops running or if it can't handle the mail quickly enough (i.e.,
service time << interarrival time) at peak load.
-ch
------
Christopher Hoover
Co-Founder
OneSpot, Inc. (formerly E-Cumulate, Inc.)
http://www.onespot.com
email: mailto:[EMAIL PROTECTED]
mobile: +1-408-348-0304
main: +1-408-562-9160
facsimile: +1-408-562-9161
text page: mailto:[EMAIL PROTECTED]
2953 Bunker Hill Lane, Suite 301
Santa Clara, CA 95054
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Sims
> Sent: Wednesday, June 14, 2000 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sendmail->servlet
>
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> I'm looking for some help using Jserv to replace some perl email
> processing scripts.
>
> I've got Jserv installed, am using it for some database access from web
> pages, config is all okay.
>
> What I want to do is connect the output of sendmail (an email message
> send to an alias) to the input of a servlet.
>
> I have this working currently for sendmail->perl script:
>
> ---incoming Internet email message--->sendmail--->perl script
>
> using the prog directive of sendmail to invoke a shell (smrsh actually)
>
> I want to have:
>
> ---incoming Internet email message--->sendmail--->servlet
>
> I *DONT* want to have to invoke a new instance of java for each message
> (like I do now for PERL).
>
> Ideas?
>
> thanks!
> jim
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]