Re: multidomain

2003-01-02 Thread Marc Chamberlin
I have been following this thread with interest, as it is something I want to do also, 
and have ran into a snag trying it out. Using
a MySQL database, I added the VirtualUserTable and populated the three fields for an 
entry as follows:

user = "myName"
domain = "myVirtualDomain.com"
target_address = "[EMAIL PROTECTED]"

I added the mailet to use the JDBCVirtualUserTable class, as described. If I send an 
email from [EMAIL PROTECTED] to
[EMAIL PROTECTED] it works as expected and the mail gets delivered to 
[EMAIL PROTECTED] (My James server is handling
mail for myDomain.com and myVirtualDomain.com.)

However, the snag seems to be caused because I am requiring SMTP authorization to send 
an email through James. If I send a test
email from [EMAIL PROTECTED] to [EMAIL PROTECTED] I am getting a 530 
Authentication Required error. This error is
not coming from the server at someOtherDomain.com (someOtherDomain.com is actually for 
my account at my ISP that I am using to test
this with. My email handler, works fine for me, in sending out emails to other places, 
when I use either my ISP's server, or my
James server to send an email from.)

If I were to make a guess, I'd guess James is picking up the incoming email to the 
virtual domain address OK, then attempting to
resend it to the target_address???  If so, could the attempt to resend the email to 
the target_address run afoul of the SMTP
authorization requirement? If so, is there a way to tell the mailet the password 
needed to authorize the resending of the email?

I admit I don't fully understand the model for virtual domains and the James email 
server ;-) but I have a follow on question. Will
this allow a user to send and email FROM his virtual domain address also? If so, how 
do I set up James and an email application such
as Outlook Express for this scenario?

Thanks..  Marc...



- Original Message -
From: "Noel J. Bergman" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:48 AM
Subject: RE: multidomain


> If you look again at what I told you to look at, you'll find that with the
> JDBCVirtualUserTable mailet, you can setup [EMAIL PROTECTED] and
> [EMAIL PROTECTED] to go to separate local users (or to the same, depending
> upon what you want), e.g.,
>
> info wise-lab.it lab-info@localhost
> info wisemodel.com model-info@localhost
>
> If you don't want to setup JDBCVirtualUserTable, you can use the UserIs
> matcher for each such address before local delivery is attempted.
>
> --- Noel
>
> -Original Message-
> From: Davide Frigerio [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 9:35
> To: James Users List
> Subject: R: multidomain
>
> > Perhaps you need to define "it" more precisely.  I took your inquiry to be
> > asking how to support, for example, "wise-lab.it" and "wisemodel.com" on
> the
> > same server.
> You are right, and I want to know what I can do to support in James multiple
> domains with same username; e.g. [EMAIL PROTECTED] and [EMAIL PROTECTED] .
>
> Thanks a lot.
>
> Davide.
>
> -Messaggio originale-
> Da: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Inviato: giovedi 2 gennaio 2003 14.50
> A: James Users List
> Oggetto: RE: multidomain
>
>
> > I need something(mailet) that help me about the user
> > and domain relation.
>
> What about the user and domain relation do you need help with, other than a
> mapping from a user and domain to an address?
>
> > I have "some" mail domain that are handled with the same
> > mail server.
>
> I currently support over a dozen different domains on my server, using the
> mailet mentioned in that FAQ.
>
> > Does James support it or I need to write a special mailet?
>
> Perhaps you need to define "it" more precisely.  I took your inquiry to be
> asking how to support, for example, "wise-lab.it" and "wisemodel.com" on the
> same server.
>
> --- Noel
>
> -Original Message-
> From: Davide Frigerio [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 8:16
> To: James Users List
> Subject: R: multidomain
>
>
> Not at all. I need something(mailet) that help me about the user and domain
> relation. I mean, I have "some" mail domain that are handled with the same
> mail server.
> Does James support it or I need to write a special mailet?
>
> Thanks a lot.
> Davide.
>
> -Messaggio originale-
> Da: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Inviato: giovedi 2 gennaio 2003 13.39
> A: James Users List
> Oggetto: RE: multidomain
>
>
> > With the latest release wich is the best way to support
> > multidomain in James?
>
> Does this help?  http://jakarta.apache.org/james/FAQ.html#7
>
> --- Noel
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>
> --
> To unsubscribe, e-mail:   
>

bugbear virus

2002-12-09 Thread Marc Chamberlin
Hi -
I am looking for some suggestions on a new problem that has appeared today... My James 
server (and me as its postmaster) is getting
hammered with a lot of email bounce notifications from servers all around the world.

As far as I can determine, (am not an expert here!) it appears that someone is sending 
emails out with a bogus return address that
implies that they are coming from a user of my James server. And all of these servers 
are trying to report back to me that these
emails could not be delivered for various reasons such as non-existent user, not 
allowed because I am not a member, and often
because the email is infected with a virus.

Specifically, these email bounces "appear" to be coming from a bogus user 
([EMAIL PROTECTED]) and many are infected with
the W32.BugBear virus. Often they also appear to have been sent with a subject line of 
Re:  Make your toilet paper talk!

I have checked my server and can find no evidence of this or any other virus running 
on it. My virus checker does find evidence of
this virus in the attachments of the emails that are being reported by James to me as 
the Postmaster (when it reports to me that it
could not deliver these email bounces to this bogus user) and promptly quarantines 
them

Any ideas on what I should do about this new mess? I guess I could try and configure 
James to just bitbucket these bounced emails,
but is that the best/only solution? Do others experience problems such as this one, 
often? I am relatively new to running an email
server so am trying to gain an understanding of how best to deal with issues such as 
this...

Marc




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: james-2.1a1-cvs and Win2000

2002-11-24 Thread Marc Chamberlin
Nevermind my 2nd question below... After much head scratching and cursing at Microsoft 
for not keeping things simple to understand,
;-) I now have James up and running on Windows2000... FWIW - The config.xml file is 
also getting to be a bit complex and is easy to
make mistakes in when trying to upgrade James..

My observations made in points 1 and 3 below still remain... Someone might want to 
clean these issues up???

Marc...


- Original Message -
From: "Marc Chamberlin" <[EMAIL PROTECTED]>
To: "james-user" <[EMAIL PROTECTED]>
Sent: Saturday, November 23, 2002 6:31 PM
Subject: james-2.1a1-cvs and Win2000


> Well OK, I may have tried to bite off more than I can chew here I am trying to 
>upgrade my server from running on Win98 to
> Win2000 and I thought I would grab the latest version of James and try a port it to 
>Win2000 as well. Not going well, and I admit I
> am unfamiliar with Win2000 also...
>
> 1. First let me report what I think may be an installation problem with the release 
>candidate of James and will be interested in
> hearing feedback on this as well. I have a bunch of mailets and jar files to support 
>them and I stashed these in my James/lib
> directory. But I had a heck of a time trying to figure out why James was crashing 
>after I ported all my config.xml code over! I
> finally was able to track the problem down to what is apparently a misconfiguration 
>??? of the places where some of the needed jar
> files were being placed. I found them in James/work/James-1038102691318/SAR-INF/lib  
>and when I copied all these jar files over to
> the James/lib directory it made James a lot happier and it now "appears" to be 
>coming up OK.
>
> This was a tough problem to track down as the stack walkbacks one gets are very 
>misleading. SO I might suggest that before you
> release the next version of James this configuration ought to be cleaned up, or at 
>least well documented! (and IMHO that is a
> horrible name for a directory that James is placing these jar file in!!! I refer to 
>James-1038102691318.) ;-)
>
> 2. Even though James is appearing to come up OK now, it is still not functioning OK. 
>I tried to telnet to port 4555 and the telnet
> session hangs and eventually times out without succeeding. When I bring up a mail 
>client to try and receive mail, I get a popup
> dialog asking me to enter my user id and password. I am using SMTP authorization, 
>but it is not accepting the user id or password
> even though I know them to be correct. Telneting to the POP3 port on 110, or the 
>SMTP port on 25 also fails to make a connection.
Of
> note, I do use MySQL for a database for James, and I think it is working OK... I am 
>able to connect to it from across my LAN using
> dbVisualizer and it responds as expected. Am I facing some Win2000 issues here that 
>I don't understand? Any help would be much
> appreciated, and I will continue to poke around at it...
>
> 3. One last item of note... I noticed that when I close James down (BTW much much 
>cleaner now!) I am getting a stack walkback in
the
> phoenix.log file which I include below
>
>
>   Marc Chamberlin
>
>
>
> INFO2002-11-23 17:51:30.287 [Phoenix ] (): Logger started
> WARN2002-11-23 17:51:30.347 [Phoenix ] (): Phoenix was not started by the daemon 
>thus it will not be possible to restart the
JVM
> via the Management interface.
> INFO2002-11-23 17:51:31.318 [Phoenix.] (): Installing Sar located at
> file:/F:/james/jakarta-james-2.1a1/james-2.1a1-cvs/apps/james.sar.
> WARN2002-11-23 17:51:31.459 [Phoenix.] (): The file SAR-INF/config.xml can not 
>be extracted from the Sar
> "file:/F:/james/jakarta-james-2.1a1/james-2.1a1-cvs/apps/james.sar" into directory
> F:\james\jakarta-james-2.1a1\james-2.1a1-cvs\apps\james\SAR-INF\config.xml because 
>there is a file in the way.
> INFO2002-11-23 17:51:31.569 [Phoenix.] (): No policy specified in server.xml, 
>giving full permissions to ServerApplication.
> INFO2002-11-23 17:51:31.929 [Phoenix.] (): Verifying that the name specified for 
>Blocks and BlockListeners are valid.
> INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the name specified for 
>Blocks and BlockListeners are unique.
> INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the specified 
>Dependencies are valid according to BlockInfo.
> INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the dependencies of 
>Blocks are valid with respect to other Blocks.
> INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that there are no circular 
>dependencies between Blocks.
> INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the specified Blocks 
>have valid types

james-2.1a1-cvs and Win2000

2002-11-23 Thread Marc Chamberlin
Well OK, I may have tried to bite off more than I can chew here I am trying to 
upgrade my server from running on Win98 to
Win2000 and I thought I would grab the latest version of James and try a port it to 
Win2000 as well. Not going well, and I admit I
am unfamiliar with Win2000 also...

1. First let me report what I think may be an installation problem with the release 
candidate of James and will be interested in
hearing feedback on this as well. I have a bunch of mailets and jar files to support 
them and I stashed these in my James/lib
directory. But I had a heck of a time trying to figure out why James was crashing 
after I ported all my config.xml code over! I
finally was able to track the problem down to what is apparently a misconfiguration 
??? of the places where some of the needed jar
files were being placed. I found them in James/work/James-1038102691318/SAR-INF/lib  
and when I copied all these jar files over to
the James/lib directory it made James a lot happier and it now "appears" to be coming 
up OK.

This was a tough problem to track down as the stack walkbacks one gets are very 
misleading. SO I might suggest that before you
release the next version of James this configuration ought to be cleaned up, or at 
least well documented! (and IMHO that is a
horrible name for a directory that James is placing these jar file in!!! I refer to 
James-1038102691318.) ;-)

2. Even though James is appearing to come up OK now, it is still not functioning OK. I 
tried to telnet to port 4555 and the telnet
session hangs and eventually times out without succeeding. When I bring up a mail 
client to try and receive mail, I get a popup
dialog asking me to enter my user id and password. I am using SMTP authorization, but 
it is not accepting the user id or password
even though I know them to be correct. Telneting to the POP3 port on 110, or the SMTP 
port on 25 also fails to make a connection. Of
note, I do use MySQL for a database for James, and I think it is working OK... I am 
able to connect to it from across my LAN using
dbVisualizer and it responds as expected. Am I facing some Win2000 issues here that I 
don't understand? Any help would be much
appreciated, and I will continue to poke around at it...

3. One last item of note... I noticed that when I close James down (BTW much much 
cleaner now!) I am getting a stack walkback in the
phoenix.log file which I include below....


  Marc Chamberlin



INFO2002-11-23 17:51:30.287 [Phoenix ] (): Logger started
WARN2002-11-23 17:51:30.347 [Phoenix ] (): Phoenix was not started by the daemon 
thus it will not be possible to restart the JVM
via the Management interface.
INFO2002-11-23 17:51:31.318 [Phoenix.] (): Installing Sar located at
file:/F:/james/jakarta-james-2.1a1/james-2.1a1-cvs/apps/james.sar.
WARN2002-11-23 17:51:31.459 [Phoenix.] (): The file SAR-INF/config.xml can not be 
extracted from the Sar
"file:/F:/james/jakarta-james-2.1a1/james-2.1a1-cvs/apps/james.sar" into directory
F:\james\jakarta-james-2.1a1\james-2.1a1-cvs\apps\james\SAR-INF\config.xml because 
there is a file in the way.
INFO2002-11-23 17:51:31.569 [Phoenix.] (): No policy specified in server.xml, 
giving full permissions to ServerApplication.
INFO2002-11-23 17:51:31.929 [Phoenix.] (): Verifying that the name specified for 
Blocks and BlockListeners are valid.
INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the name specified for 
Blocks and BlockListeners are unique.
INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the specified 
Dependencies are valid according to BlockInfo.
INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the dependencies of 
Blocks are valid with respect to other Blocks.
INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that there are no circular 
dependencies between Blocks.
INFO2002-11-23 17:51:31.939 [Phoenix.] (): Verifying that the specified Blocks 
have valid types.
INFO2002-11-23 17:51:31.999 [Phoenix.] (): Verifying that the specified 
BlockListeners have valid types.
INFO2002-11-23 17:51:32.090 [Phoenix.] (): 17 Blocks to process for phase 
"startup". Order of processing = [dnsserver,
objectstorage, database-connections, mailstore, users-store, thread-manager, 
connections, sockets, scheduler, James, spoolmanager,
remotemanager, pop3server, smtpserver, nntp-repository, nntpserver, fetchpop].
INFO2002-11-23 18:20:13.695 [Phoenix.] (): 17 Blocks to process for phase 
"shutdown". Order of processing = [spoolmanager,
remotemanager, pop3server, smtpserver, fetchpop, James, dnsserver, nntpserver, 
nntp-repository, mailstore, users-store,
objectstorage, connections, sockets, scheduler, database-connections, thread-manager].
WARN2002-11-23 18:20:14.346 [Phoenix.] (): Error deleting Work Directory
"F:\james\jakarta-james-2.1a1\james-2.1a1-cvs\work\james-1038102691318". (Reason: File
F:\james\jakarta-james-2.1

Re: mime to html converter

2002-11-12 Thread Marc Chamberlin
Thanks Stefano for these links... However it does not do what I was hoping for... Have 
you made any progress with handling email
that has multipart mime content? That is what I really am looking for, some way to 
convert a multipart mime email message, with
embedded images etc., into an html format. (XML is OK also, I can get to where I want 
to be with XML also)

If anyone else has links to a Java conversion app that will do what I need, or a 
mailet, I sure would appreciate it!

Marc


- Original Message -
From: "Stefano Debenedetti" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 7:53 AM
Subject: Re: mime to html converter


> Marc Chamberlin wrote:
> > Does anyone here know of a java application that can convert a
> > multipart mime email to an html file for viewing on the web?
>
> Hi, I use something similar to the mailet I posted here [MAILET] exactly for email 
>"viewing on the web", even if there is no HTML
involved, check out the results here [CARMEN], ciao
> ste
>
> [MAILET] 
>http://archives.apache.org/eyebrowse/ReadMsg?listName=james-dev@;jakarta.apache.org&msgNo=4302
>
>
> [CARMEN] http://webaccess.mozquito.com:8080/mail/ste/outbox/1048198943651534682.xml
>
> --
> To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>




Thanks for a good chuckle!

2002-11-08 Thread Marc Chamberlin

Hehe woke up this morning to see a new/different response by James to the ongoing war 
against spammers...  This error was generated
in response to a spamer trying to access one of my restricted mail lists.  This 
spammers ad claimed that they are able to reach
millions of clients and send em "targeted" advertisements!  James modest error 597 
reply cracked me up laughing!

Marc...


Hi. This is the James mail server at Darkstar.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.  Below
I include the list of recipients and the reason why I was unable to deliver
your message.

[EMAIL PROTECTED]
597 we have a reason to believe this message is unwanted here

The original message is attached.






Only members of this listserv are allowed to send a message to this address.




(I have deleted the original message er spam junk   Marc)



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




list server failing

2002-11-06 Thread Marc Chamberlin
Hi
I am running a list server on James, (james-2.1a1-2002-09-24) and a number of emails 
are being rejected from destination servers
with either one of the two following messages -

Remote mail server told me: 504 localhost>: Sender address rejected: need 
fully-qualified address

or

Remote mail server told me: 450 : Helo command rejected: Host not found
;
  nested exception is:
javax.mail.SendFailedException: 450 : Helo command rejected: Host not found
;
  nested exception is:
javax.mail.SendFailedException: 450 : Helo command rejected: Host not found


Anyone got any ideas? Did I configure my server wrong... The only clue I can make 
sense of is the reference to Darkstar with is the
computer name for my server. The closest thing I could guess was to turn off the 
autodetect of the server name in the config.xml
file, so I set it as follows -



mydomainname.com
localhost





Appreciate any help offered...   Marc Chamberlin



--
To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>




mime to html converter

2002-11-05 Thread Marc Chamberlin
Network BlitzThis is slightly off topic, I know and apologize... Does anyone here know 
of a java application that can convert a
multipart mime email to an html file for viewing on the web? I would like to find such 
a converter to run either as part of a mailet
on James, or as part of a servlet on my Tomcat server... I will need source code as my 
application requires customization of the
conversion process...  Thanks for any pointers!

Marc...



Do you think the software industry will ever make software that is as easy and 
reliable for a user to use
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Path to Custom mailets in James 2.1a1

2002-10-15 Thread Marc Chamberlin

Hehe I got the same question! So don't think it is a silly one! :-) I am trying to 
upgrade from 2.0a3 and there is no james.bar file
to stick my mailets.jar file into anymore... I too tried and noted the same 
proliferation of directories under the work directory...
So inquiring minds would like to know the new trick!

Also an FYI... In the database connections block of config.xml there are some examples 
which have nested comments (one of which was
unterminated) This makes it tricky to use and if one does like I did and just adds in 
their user name and password then uncomments
the outer block of comment delimiters... it will make the XML parser cranky and it is 
a bit difficult to find the error. A bit of
reorganization of these comments would be helpful I think... Something more like 
this









org.gjt.mm.mysql.Driver

jdbc:mysql://127.0.0.1/mail

myname

mypassword

10




    Marc  Chamberlin...


- Original Message -
From: "Vernon Riley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 15, 2002 9:40 AM
Subject: Path to Custom mailets in James 2.1a1


> Puzzled
>
> Seems like a silly question but,
>
> Where does James 2.1.a1 ( retrieved via CVS at weekend ) expect to find
> custom mailets ( and cope with their dependency on Generic Mailet etc ) ? I
> have tried the SAR-INF/lib directories under the
> dist/james-2.1a1-cvs/work/james-1034699077336 ?? - and found these seem to
> proliferate ?
>
> Thanks in anticipation
>
>
>
> Vernon Riley
>
> [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>



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




James is an open-relay

2002-10-14 Thread Marc Chamberlin


I am writing mostly just to confirm what I think I gleaned from the archives... I got 
a report back from http://dnsbl.njabl.org/
saying that my James email server is an open relay and the email servers of several of 
my mail list users are now blocking emails
from my server. My server requires SMTP authorization, which I gather had some sort of 
a problem? And in order to let my users use
the server while traveling I had to comment out the section in the config.xml file 
which checks to see if the sending IP address is
in an accepted set of domains. I am currently using the stable released version of 
James, 2.0a3

So my question is, what is the best strategy for me to follow... I am assuming this is 
a known problem and has been fixed? So,
should I immediately upgrade to the latest binary version 
-james-binary-2.1a1-2002-09-24.zip, or is there a better choice, or is the
next stable version of James expected out soon? (I am not set up to do a build from 
source)
Has there been much in the way of changes to how James is configured? Just trying to 
get an idea of the best road map to follow, so
suggestions will be appreciated Thanks in advance...

 Marc Chamberlin...



Do you think the software industry will ever make software that is as easy and 
reliable for a user to use
as the automobile industry makes a car easy and reliable for a user to drive?
 

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
 - Stephen Crane



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




James exceptions

2002-09-24 Thread Marc Chamberlin

I seem to be getting a lot of these exceptions while running James, wonder if anyone 
can tell me why and what I should do about it? Am running the James 2.0a3 stable build 
on a Windows 98 box... Am using a MySQL database for the repository.   Marc


Started NNTP Server plain:119
java.lang.RuntimeException: Did not find a record Mail1032887503350-0-!106921376
8 in spool
at org.apache.james.mailrepository.JDBCMailRepository.retrieve(JDBCMailR
epository.java:454)
at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:205)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
ecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
.java:86)
java.lang.RuntimeException: Exception while retrieving mail: Did not find a reco
rd Mail1032887503350-0-!1069213768 in spool
at org.apache.james.mailrepository.JDBCMailRepository.retrieve(JDBCMailR
epository.java:494)
at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:205)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
ecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
.java:86)



Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



James 2.0a3, ZoneAlarm Pro

2002-07-29 Thread Marc Chamberlin

Hello -

I just upgraded my James server to version 2.0a3 from version 2.0a2 and 
am encountering a new problem. I am running the James server on a Win98 
box and am using the ZoneAlarm Pro firewall from ZoneLabs. If I bring up 
the James server after the ZoneAlarm firewall is running, I notice an 
unending amount of activity occurring that is being detected by the 
firewall. If I momentary shut down the firewall, then bring it back up, 
this activity stops and everything behaves normally, i.e.  the ZoneAlarm 
firewall is not registering any alerts of unusual behavior other than 
this continuous activity. I looked through the log files for James, an 
saw nothing unusual, and it appears to be working OK, a bit slower, 
despite this ongoing activity.

I also use the MySQL data base for my email repository. In the past I 
also used the MySQL database with other servlets and noticed a similar 
behavior in the firewall, when my servlet was making a lot of individual 
requests to the database, so I got around this by batching all my 
database requests and sending them across at once from my servlet. I 
wonder if James might be doing something similar, i.e. sending a LOT of 
database requests to MySQL?

I wonder if anyone else is using this ZoneAlarm Pro firewall product 
with James. If so, have you had any troubles with it? What other 
firewall products, not too expensive, would anyone care to recommend 
that I could use with the James server (and Tomcat, and MySQL), if I 
cannot use the ZoneLabs product?

Thanks for any help offered!  Marc Chamberlin


Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



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




Mailets and MySQL problem

2002-07-29 Thread Marc Chamberlin

Hello -

I am running version 2.0a3 of Jams on a Win98 box and am using MySQL for my mail 
repository. I have a mailet that I wrote to help me
better manage a mail list that I am having troubles to get working. This mailet is 
designed to handle an incoming request from a
user to subscribe to the mail list in such a fashion as to both forward the incoming 
request on to the list server manager, by
sending an email to the list server manager's URL to subscribe the new user to the 
mail list, and then to post a customized
announcement email to the mail list itself informing everyone on the list of the new 
subscriber.

So, in effect I have written the mailet so it will respond by sending out two separate 
emails. I have designed the mailet class such
that each of the two emails is handled by a separate method in the mailet class, and 
what is interesting is that if I run the mailet
with either one of these emailing methods commented out, the mailet works just fine 
and fulfills that part of the functionality. But
if I try to run both methods, then I get the following exception and stack walkback. 
What I suspect is, is that James is hitting the
MySQL database too fast when both methods are ran, and a conflict is occurring trying 
to make the connections to the database. Each
of the mailing methods have been design like the James examples for mailets. Nothing 
out of the ordinary is showing up in any of the
log files.

public void service(org.apache.mailet.Mail mail) throws javax.mail.MessagingException {
if (debug)
System.out.println("ListAcceptMailet service method reached.");
subscribeToListManager(mail);
notifyMailList(mail);
//Stops further James processing on the Mail message.
mail.setState(Mail.GHOST);
}


Wonder if anyone has any ideas?  I can send anyone the complete source code for my 
mailet if you send me an email... I don't know if
this group's mail list server will allow attachments

Thanks for any help offered!   Marc Chamberlin


Phoenix 4.0a4

Application file:/F:/james/jakarta-james-2.0a3/apps/james.sar uses a deprecated
packaging format.
James 2.0a3-cvs
Started POP3 Server plain:110
Started SMTP Server plain:25
Started NNTP Server plain:119
ListAcceptMailet service method reached.
java.lang.RuntimeException: Did not find a record Mail1027976013500-0-!168872769
4 in spool
at org.apache.james.mailrepository.JDBCMailRepository.retrieve(JDBCMailR
epository.java:454)
at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:205)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
ecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
.java:86)
java.lang.RuntimeException: Exception while retrieving mail: Did not find a reco
rd Mail1027976013500-0-!1688727694 in spool
at org.apache.james.mailrepository.JDBCMailRepository.retrieve(JDBCMailR
epository.java:494)
at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:205)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
ecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
.java:86)



Do you think the software industry will ever make software that is as easy and 
reliable for a user to use
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



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




Re: Problems running mailets

2002-07-08 Thread Marc Chamberlin

Hmmm is that the secret? Maybe there needs to be better documentation on this... ;-)  
I have been adding my .class files directly to
the james.bar file under apps\james\blocks by first changing its extension to .zip, 
then using a zip utility like Winzip to add my
mailet.class files into the zip file, and then changing the extension back to .bar...  
Bit tedious but seems to work...

Marc


- Original Message -
From: "Andrei Ivanov" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 8:48 AM
Subject: Re: Problems running mailets


> Try to put your mailet package under phoenix/lib, thoug it is better if you
> will include your mailets.jar into james.sar by modifying sar target inside
> build.xml
> Andrei
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 6:38 PM
> Subject: Problems running mailets
>
>
> > Hello All,
> >
> > this is probably a FAQ, but unfortunately i apperantly can't get it to
> work:
> >
> > I have been using Jame 1.2.1 for quite a while now and I am trying to
> > upgrade to 2.0a3.
> >
> > James starts up without any problems using the default configuration.
> >
> > After that i try to include mailets and matchers that I have allready
> > written: I added mailetpackages and matcherpackages, which i reduced for
> the
> > purpose of testing to one simple mailet.
> >
> > However the classloader fails to find my class files. "Requested mailet
> not
> > found: "
> >
> > I have tried adding classpath variables to the run.bat script but this
> > didn't change the situation
> >
> > I am running W2K and Java 1.3
> >
> > Any suggestions?
> >
> > best regards,
> >
> > Ruud Schramp
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: James crash

2002-06-07 Thread Marc Chamberlin

Already have Serge Danny also asked me to... ;-)   Marc..

- Original Message - 
From: "Serge Knystautas" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 8:30 PM
Subject: Re: James crash


> Thanks for the report... I've seen something similar, so your info is 
> good.  Can you submit a bug report?
> -- 
> Serge Knystautas
> Loki Technologies - Unstoppable Websites
> http://www.lokitech.com/
> 
> Marc Chamberlin wrote:
> > Hi - I thought I would send this in to the group, just for a heads up...  I
> > am running a couple of mail lists on version 2.0a2 of James and I received a
> > piece of spam junk which was apparently sent to the URL for unsubscribing to
> > one of my lists. While James did log the attempt OK, and it did send the
> > spam to the error repository, it appears to have hung/crashed afterwards...
> > I am using the generic AvalonListServManager class to handle the
> > administrative commands for my mail list. I have included the mail header
> > info (slightly modified and body deleted) and the stack walkback that
> > occurred.. Any ideas as to what may have happened?
> > 
> > Return-Path: <[EMAIL PROTECTED]>
> > Received: from mailhost.altanueva.fr ([194.3.113.222])
> > by Darkstar (JAMES SMTP Server 2.0a2) with SMTP ID 930
> > for <[EMAIL PROTECTED]>;
> > Wed, 5 Jun 2002 18:14:10 -0700
> > Received: from mx1.eudoramail.com
> > (0-3pool158-139.nas2.dallas1.tx.us.da.qwest.net [63.232.158.139]) by
> > altatech.altanueva.fr with SMTP (Microsoft Exchange Internet Mail Service
> > Version 5.5.2650.21)
> > id MKDFHW0K; Thu, 6 Jun 2002 02:29:55 +0200
> > Message-ID: <54bd4df9$0aa8$[EMAIL PROTECTED]>
> > To: 
> > From: "Term Quotes, Life Insurance Companies of America"
> > <[EMAIL PROTECTED]>
> > Subject: Your Life Insurance CO does not want you to know this.. LSD
> > Date: Wed, 05 Jun 2002 19:36:21 -1700
> > MIME-Version: 1.0
> > Content-Type: text/html;
> > charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> > Reply-To: [EMAIL PROTECTED]
> > 
> > Wed Jun 05 18:15:29 PDT 2002 [DEBUG  ] (spoolmanager.error): Servicing
> > Mail1023326050020-0-!28925200-!88407890 by NotifyPostmaster Mailet
> > Wed Jun 05 18:15:29 PDT 2002 [ERROR  ] (spoolmanager.error): Exception
> > calling NotifyPostmaster: Illegal whitespace in address
> > javax.mail.internet.AddressException: Illegal whitespace in address in
> > string ``Not Insured''
> >  at
> > javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:837)
> >  at javax.mail.internet.InternetAddress.parse(InternetAddress.java:748)
> >  at javax.mail.internet.InternetAddress.parse(InternetAddress.java:501)
> >  at
> > org.apache.james.core.MimeMessageWrapper.getAddressHeader(MimeMessageWrapper
> > .java:105)
> >  at
> > org.apache.james.core.MimeMessageWrapper.getRecipients(MimeMessageWrapper.ja
> > va:270)
> >  at
> > org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
> > .java:109)
> >  at
> > org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:168)
> >  at
> > org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
> > 241)
> >  at
> > org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:208)
> >  at
> > org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
> > eRunnable.java:47)
> >  at
> > org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
> > 0)
> > 
> > 
> > Marc..
> > 
> > 
> > 
> > 
> > Do you think the software industry will ever make software that is as easy
> > and reliable for a user to use
> > as the automobile industry makes a car easy and reliable for a user to
> > drive?
> > 
> > 
> > A man said unto the universe -  "Sir, I exist!"
> > "However," replied the universe  "I do not see where that creates in me a
> > sense of an obligation."
> >   - Stephen Crane
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



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




James crash

2002-06-05 Thread Marc Chamberlin

Hi - I thought I would send this in to the group, just for a heads up...  I
am running a couple of mail lists on version 2.0a2 of James and I received a
piece of spam junk which was apparently sent to the URL for unsubscribing to
one of my lists. While James did log the attempt OK, and it did send the
spam to the error repository, it appears to have hung/crashed afterwards...
I am using the generic AvalonListServManager class to handle the
administrative commands for my mail list. I have included the mail header
info (slightly modified and body deleted) and the stack walkback that
occurred.. Any ideas as to what may have happened?

Return-Path: <[EMAIL PROTECTED]>
Received: from mailhost.altanueva.fr ([194.3.113.222])
by Darkstar (JAMES SMTP Server 2.0a2) with SMTP ID 930
for <[EMAIL PROTECTED]>;
Wed, 5 Jun 2002 18:14:10 -0700
Received: from mx1.eudoramail.com
(0-3pool158-139.nas2.dallas1.tx.us.da.qwest.net [63.232.158.139]) by
altatech.altanueva.fr with SMTP (Microsoft Exchange Internet Mail Service
Version 5.5.2650.21)
id MKDFHW0K; Thu, 6 Jun 2002 02:29:55 +0200
Message-ID: <54bd4df9$0aa8$[EMAIL PROTECTED]>
To: 
From: "Term Quotes, Life Insurance Companies of America"
<[EMAIL PROTECTED]>
Subject: Your Life Insurance CO does not want you to know this.. LSD
Date: Wed, 05 Jun 2002 19:36:21 -1700
MIME-Version: 1.0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Reply-To: [EMAIL PROTECTED]

Wed Jun 05 18:15:29 PDT 2002 [DEBUG  ] (spoolmanager.error): Servicing
Mail1023326050020-0-!28925200-!88407890 by NotifyPostmaster Mailet
Wed Jun 05 18:15:29 PDT 2002 [ERROR  ] (spoolmanager.error): Exception
calling NotifyPostmaster: Illegal whitespace in address
javax.mail.internet.AddressException: Illegal whitespace in address in
string ``Not Insured''
 at
javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:837)
 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:748)
 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:501)
 at
org.apache.james.core.MimeMessageWrapper.getAddressHeader(MimeMessageWrapper
.java:105)
 at
org.apache.james.core.MimeMessageWrapper.getRecipients(MimeMessageWrapper.ja
va:270)
 at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:109)
 at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:168)
 at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
241)
 at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:208)
 at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
 at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)


Marc..




Do you think the software industry will ever make software that is as easy
and reliable for a user to use
as the automobile industry makes a car easy and reliable for a user to
drive?


A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a
sense of an obligation."
  - Stephen Crane


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Need Help with james web server

2002-06-03 Thread Marc Chamberlin

Anandhan - Two questions...

1. Have you configed James correctly with the address of a valid DNS? This is done in 
the config.xml file... (See the James FAQs)

2. Have you registered user1 as a valid client of your James server? This is done by 
telnet to port 4555, logging in as root, and
adding the user to the list of registered users.  (See the James install instructons)

 Marc


- Original Message -
From: "Danny Angus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "James User List" <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 1:14 AM
Subject: FW: Need Help with james web server


> Im sending this mail to the users list, where I'm sure you'll get an answer.
> d.
>   -Original Message-
>   From: Anandhan [mailto:[EMAIL PROTECTED]]
>   Sent: 03 June 2002 07:52
>   To: [EMAIL PROTECTED]
>   Subject: Need Help with james web server
>
>
>   Hello ,
>   I am sorry to bother you.I saw your mailing address in mailing
> list archive.I have a problem with james web server.I have installed it in
> my machine and i am able to send mails from the same.When i send mails to
> the server e.g  user1@IP address it is able to receive them but for some
> reason it sends it to the Spam folder that i am not able to fetch the
> mails.I am in the middle of my project.If u find time please do mail me on
> this else feel free to delete the mail.Sorry for the disturbance.
>   regds
>
>   anandh
>
>   Anandhan Subbiah
>   Software Engineer
>   Hewlett Packard India Software Operations
>
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mail lists, Postmaster, and config.xml

2002-05-24 Thread Marc Chamberlin

Serge - Thanks for your previous reply and I can accept it... ;-) Now though I have 
another scenario for you  and the group, and I
am again not sure I have solved it correctly.  Being the guy in charge of our James 
email server, I initially thought I should make
the Postmaster's address be my own email address, so I would be made aware of any 
problems that were occurring, and give users a
live email address to contact if they got an error from James. This has turned out to 
be not such a good idea, (I think) because I
also have added my email address to a number of the mail lists that we are supporting. 
The trouble arises when an invalid email
address gets added to the mail list also, either by some spammer/bot, by a user 
terminating their email address and not removing it
from the list,  or by yours truly when I inadvertently make a typo when entering the 
email address directly into our MySQL database.
(oops ;-)  )  The net result is that James gets into a battle with itself, when 
someone attempts to send a mail to the mail list.
This is because it results in a bounce from the invalid address, James picks it up and 
notifies the sender, which in this case is
the mail list, which in turns sends the bounce message back out to all the users of 
the list, and we go into an infinite cycle...
Eventually James will crash...

I am not totally sure as to why this notification is occurring because I have left the 
sections in config.xml commented out to
notify the sender that there was an error or that  their message was dropped into the 
bit bucket as spam...

Anywise, the solution I have come up with is to not use my own email address for the 
Postmaster, but to use a separate email
address - [EMAIL PROTECTED] and to add the "Postmaster" as a valid user of my 
email server... This way I can also pick up
messages to the postmaster via my client email reader. Since the Postmaster address 
will never be added to any of the mail lists,
then when the James server attempts to send a message to a mail list, from the 
Postmaster telling it that one of the emails that it
sent bounced, the mail list rejects the email since it only accepts mail from members 
of the list that it is managing...

If you have followed all that, (it is a bit convoluted!) then my question is, is this 
the right approach? It seems to me that this
solution will work only so long as the mail list is closed and only members of the 
list can send an email through it... For an open
email list which accepts messages from anyone, this will not work and if an invalid 
email address gets entered into the lists member
set, then James will crash. So my suspicions is that there must be another correct way 
to prevent James from getting into an
infinite cycle this way  Would you be so kind again as to enlighten me? ;-) I am 
probably missing something obvious

 Marc

FYI - I am using the supplied AvalonListServ and AvalonListServManager classes to 
handle my mailing lists. The parameters for
membersonly and replytolist are set to true.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mailets repositories config and GHOST

2002-05-23 Thread Marc Chamberlin

I have been doing some experimentation and digging around on writing mailets and have  
a design question First, let me state that my mailets are designed to respond 
based on a match of the mail recipient's name, i.e. a mail sent to 
[EMAIL PROTECTED]  .   Given the basic layout of config.xml, I set it so that 
I, the postmaster, would be notified of any errors that occurred, or if a message was 
marked as spam. When I sent a mail to one of my mailets, the mailet handles the mail 
message OK, but the mail eventually gets passed on from the transport processor to the 
error processor and I the postmaster get notified that an error occurred in processing 
the mail/mailet. EVEN THOUGH no error really occurred. This is because the mailet id 
is not really a registered user.

To get around this, I then tried adding the mailet's recipient name to my list of 
local users. This stopped the error report to the postmaster, as expected, but the 
drawback is that now every mail message sent to my mailets gets stored in the 
database, awaiting the "user/mailet" to pick it up...  Since that won't ever happen, 
the net result will be an ever increasing storage of mail ,sent to mailets, into the 
database. That doesn't sound like a good design either...

I dug further and took a look at the class ToRepository because that mailet has a 
boolean parameter in the config.xml file called "passThrough" and it aroused my 
suspicison. In the service method of ToRepository I discovered that if the passThrough 
parameter is false, then the Mail state is set to Mail.GHOST  Is this the proper way 
for a mailet to consume a Mail message and stop the Mail message from being passed on 
from one processor/mailet to another?  If not, maybe some kind soul will give me a bit 
of guidance here, as I am a bit confused... ;-)

If my suspicions are correct, and the Mail state needs to be set to Mail.GHOST then 
maybe this is a design issue that should be refereed to the James developers. I would 
argue that the GenericMailet class ought to supply a default implementation of the 
passThrough parameter so that this behavior could be inherited in subclassed 
Mailets  (I am really scared of my mailets knowing about ghosts!   ;-)   )

 Marc Chamberlin.


Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



Re: Relay prevention

2002-05-22 Thread Marc Chamberlin

As another user, I have been following this thread with some interest and have a 
couple observations.

1. As for the proposal from Randahl to notify the client, from my experience I will 
have to argue, DON'T!!!  I tried going the route
of notifying clients/spammers that I was dropping their spam into a bitbucket. What 
often happened was that the From: address of the
spammer was bogus, and my server and the server that the client/spammer claimed to be 
from would get into a pitched battle of
notifying each other that they were unauthorized or didn't exist... My ISP eventually 
complained to me saying I was inadvertently
mounting a denial of service attack, and I had to reconfigure James to not attempt to 
notify the sender that I was dropping the
spam

2. I just tested my James against the tests at  www.ordb.org . While I haven't got the 
official response back from them yet, I did
receive a lot of notifications (via my postmaster address) that a lot of attempts were 
made to relay mail through my server, from
the tests, and they were routed into the bit bucket... ;-) So, circumstantial evidence 
seems to indicate that James is not an open
relay, as stated... If I hear otherwise from www.ordb.org I will let the group know...

Marc


- Original Message -
From: "Randahl Fink Isaksen" <[EMAIL PROTECTED]>
To: "'James Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 12:10 PM
Subject: RE: Relay prevention


> Hi Danny and Noel
>
>
> Regarding the Spamlart test: I understand that JAMES may not transmit a
> mail even though it might seem so to the client. Without having any
> thorough insight into the design behind JAMES, I wonder if it would not
> be better for JAMES to respond immediately to the client with an
> "authorization required" or a similar clear message that indicates that
> spamming is not allowed. It is really a question of do we want to inform
> the spammers that their spamming failed? One could argue that it should
> be made hard for a spammer to figure out whether his spamming attempt
> succeeded, however, I think it is a waste of valuable clock cycles to
> have them keep on trying. Also, if JAMES was more clear in its client
> responses I would feel more certain that none of the on-line lists of
> open relays would list a JAMES mail server by mistake.
>
> Again, I am aware that there might be some design reasons to why JAMES
> responds the way it does - still, would it not be an advantage if it
> worked differently?
>
>
> Yours
> Randahl
>
>
> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 19:19
> To: James Users List
> Subject: RE: Relay prevention
>
> > Moreover the open relay database at www.ordb.org has now blacklisted
> my
> > JAMES installation
>
> I'll check my test system against ordb.org later.
>
> > testing it with spamlart made it flunk bigtime.
> >
> http://www.paladincorp.com.au/cgi-bin/spamlart.cgi?DESTINATION=test.rock
> it.d
> k
>
> It appears that spamlart bases its test upon the response during mail
> submission.  As noted in the James FAQ, James (and it is not alone in
> this
> regard) performs mail filtering after the message is received.
> Spamlarts
> tests could form the basis for a Spam filter similar to that present in
> NESSpamCheck, but those rules would be processed during the delivery
> process, not the SMTPhandler.
>
> --- Noel
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Mailing list verification mailet?

2002-05-20 Thread Marc Chamberlin

Noel -  Thanks for your interest.  Here is the issue -  I am using the James
server to support several mailing lists for some local organizations. Up to
this point, I have set up web pages with links on them to allow a user to
subscribe or unsubscribe from these lists. What I am finding is that I get
bogus subscriptions added to the lists from a spammer, with a bogus return
email address. I strongly suspect this is being done by web bots that find
the links on a web page and automatically subscribe to them.  I have
configured James to only allow subscribers to send messages to the mail
list, but this is inadequate to prevent the spammers to send spam to the
members of the list, once they too have subscribed.

So I have decided to change the paradigm so that the subscribe link on the
web pages point to a new subscription verification mailet instead of
directly to the list subscription mailet - AvalonListservManager. My new
subscription verification mailet will respond by sending back an email to
the subscriber which contains the actual link (or a From address so the
subscriber can simply reply to it) to the actual list subscription mailet
handled by the AvalonListservManager class. In this way the subscriber has
to go through a two step process to subscribe to a list, and in the process
verifies that the email address he is subscribing from is indeed valid.

If I can successfully write this new mailet, I will be willing to donate it
to the groups new mailet library if it becomes a reality. ;-) I think others
may find it useful for this purpose as well. I have written my first rough
prototype attempt and include it below... My problem with getting it to work
is that I require users to use SMTP authorization in order to send mail
through my server. (Allows users to roam) But I have been unsuccessful at
getting the James server to recognize my new mailet as an authorized user..
If you are anyone else in the group would care to look this over, (it is not
complicated) I would appreciate any pointers as to where I have gone
wrong... The devil may be in the details such as what is a proper user name
for the authenticator, or maybe the From name and the user name must be the
same (even though I have left the config.xml parameter,
true commented out) unfortunately the
examples for this code that I have found don't show this kind of detail and
I haven't guessed at what is the right configuration setting...

Here is my java code for the prototype mailet -

import javax.mail.*;
public class MyAuthenticator extends javax.mail.Authenticator {
public MyAuthenticator() {
 super();
}
public javax.mail.PasswordAuthentication getPasswordAuthentication() {
// MyMailetsName with aPassword were added to the James user list.
 return new PasswordAuthentication("MyMailetsName", "aPassword");
}
}

/**
 * This class handles the subscription and verification of the email address
of a subscriber to a
 * Jakarta James email list server. When invoked, this mailet will respond
with an email sent back
 * to the subscriber to verify the validity of the sender's email address.
(Hopefully this will foil
 * spammers who use bots to find and subscribe to email lists) The user will
in turn reply to the email
 * thus completing the subscription process.
 * Creation date: (5/19/02 11:50:30 AM)
 * @author: Marc Chamberlin
 */
import java.util.*;
import java.io.*;
import org.apache.mailet.*;
import javax.mail.*;
import javax.mail.internet.*;

public class MyListSubscribeMailet extends org.apache.mailet.GenericMailet {
public MyListSubscribeMailet() {
 super();
}
public void postMail(
String recipient,
String subject,
String message,
String from)
throws javax.mail.MessagingException {

boolean debug = false;

//Set the host SMTP address
Properties props = new Properties();
props.put("mail.smtp.host", "mail.mydomainname.com");

// create some properties and get the default Session
Authenticator auth = new MyAuthenticator();
Session session = Session.getDefaultInstance(props, auth);   //
exceptions here
session.setDebug(debug);

// create a message
Message msg = new MimeMessage(session);

// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);

InternetAddress[] addressTo = new InternetAddress[1];
addressTo[0] = new InternetAddress(recipient);
msg.setRecipients(Message.RecipientType.TO, addressTo);

// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/plain");
Transport.send(msg);

}
public void service(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException {
   try {
MailAddress sender = mail.getSender();
String recipient = sender.toString();
String subject = "Mail List Subscription";
String message = "Test message";
  

Mailing list verification mailet?

2002-05-17 Thread Marc Chamberlin

OK I give up!  *!!%#$ spammers!  I have a couple mail lists set up for my James 
server, with links for our users to subscribe/unsubscribe to them from our web pages. 
Trouble is that there are bots for some spammers which are finding these links and 
automatically subscribing to our lists, then sending out spam to everyone in the 
lists... I don't have time to write a mailet to deal with the verification of valid 
user email addresses right now, and I know the Jakarta mailing lists use a 
verification process whereby the subscriber must send back an email to the mail list 
server before actually being added to a mailing list... I suspect Jakarta groups are 
using the James servers? If so, then there is probably a mailet already written for 
this purpose, and I am wondering if some kind soul would send it to me? I will 
probably need the .java files so I can make any necessary modifications. Much 
appreciate it, I am under some time pressures at the moment and hope this will save me 
a few hours... ;-)

 Marc.



Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



James and MySQL

2002-05-09 Thread Marc Chamberlin

Hi - Well I took a crack at this and didn't succeed.. ;-) I wonder if someone would be 
good enough to volunteer a bit of time and look over my conf.xml for James ver 2.0a2.  
I tried to reconfigure it, using the examples, to use MySQL as a database for it, and 
now when I attempt to use it, James is crashing and locking up my system... Not 
good... ;-)  I am new to James and MySQL so a bit of mentoring would be appreciated as 
well, to get this up an running. So if someone wants to volunteer, send me email to 
[EMAIL PROTECTED] and I will reply and send back the conf.xml file... (Yes, the 
email will reach me ;-)   )

  Marc...


Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



A question about James config on a LAN

2002-04-11 Thread Marc Chamberlin

Hi -  I must admit that I don't understand a whole lot about networks and am wondering 
if someone who does could help me out with the configuration file for the James email 
server.  I have set up a small LAN that consists of both wireless and ethernet wired 
computers, and am running the James email server on one of my computers. I am 
connected to the internet via a DSL connection and have been assigned a static IP 
address and my own domain name. The DSL modem is connected to a wireless base station 
which is running a DHCP server which in turn assigns a set of local IP addresses to 
each of the computers on my LAN. I have also configured the wireless base station to 
use the DNS from my ISP.

Initially I ran into troubles when I tried to send out email from one of the computers 
on my LAN, via my James server using my [EMAIL PROTECTED] and found that the 
James server was not sending anything out, but was routing everything to the spam 
folder, thinking my internally generated emails were being generated from an invalid 
source. (Receiving emails works fine, when sent in to my James server)  I tracked the 
problem down to a section of the James.conf.xml file which has a mailet matcher for 
preventing relaying and setting up the allowable LAN IP address from which mail can be 
sent.  - (shown here)





 spam 

 

I tried changing the value of the matcher for the RemoteAddrNotInNetwork parameter to 
equal one of the IP addresses assigned to one of my computers by my DHCP server and 
that still resulted in the James server failing to send anything out, (that originated 
from that computer) it just continued to route my mail to the spam folder. I thought 
about it some and guessed that because I am using my ISP's DNS to resolve the >From 
URL into a static IP address, I should use my static IP address as the value of the 
RemoteAddrNotInNetwork parameter, and that worked! All my computers are now able to 
send email out via my James server.

But this does not seem logical to me, and it seems that it now opens my James email 
server to being an open relay point for spammers??? Like I mentioned before, I am new 
to all this and having lots of fun ;-) trying to figure out how to set up a LAN with a 
local James email server that can handle both internal emails and routing them in and 
out via my DSL/ISP. I would have thought that I should set up this mailet/matcher to 
reject any emails that does not originate from within my own LAN. Couldn't someone 
else originate an email with a From URL that mimics one of  
[EMAIL PROTECTED]? Am I wrong in my assumptions about how networks behave 
and if not, then can someone help me get James configured right? Much appreciate any 
pointers given

   One slightly confused  Marc.  ;-)




Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



James and Windows XP

2002-03-17 Thread Marc Chamberlin

Hate to ask a straightfoward question, but can't seem to find any answers and the FAQ 
is down

I currently am running James under Win98 and am thinking of upgrading to Windows XP 
Pro.  Has anyone encountered any problems or know of any hitches I should be aware of 
to do this? Has James been tested under Windows XP?  Thanks for any/all replies, just 
trying to forsee any roadblocks! ;-)

   Marc..

Do you think the software industry will ever make software that is as easy and 
reliable for a user to use 
as the automobile industry makes a car easy and reliable for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane



Re: Mailet Question

2001-06-30 Thread Marc Chamberlin
Title: Mailet Question



Ah, a question I feel confident enough to answer! 
;-) (I mostly lurk myself and ask questions once in a while, so maybe I can pay 
back a bit...)
 
Since you are refering to a bat file, I presume you 
are working in a Windows environment.. So, the answer to your question is a 
qualified yes First, of course, you will have to write a mailet to be 
invoked when one of your matchers recognizes where the email came from. The 
James documentation describes the process of writing mailets and 
matchers, and installing them in the James server, and it is not to 
difficult of a procedure to follow
 
 If you were to execute a straight forward 
executable file, you could execute it from a mailet, using the Java 
Runtime.exec() call from within your mailet code...  However, bat files are 
usually interpreted by the Windows interpreter so the process becomes more 
difficult... Instead of trying to guide you through the necessary steps here, I 
will refer you to an excellent article at the following URL which goes into the 
details...  http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
 
I don't have an example of doing exactly what you 
want to do, but have been through enough pain of writing Java code which invokes 
external processes that I had this URL bookmarked in all my browsers! It has 
been a lifesaver... ;-)
 
    Marc Chamberlin
 

  - Original Message - 
  From: 
  Bernstein, Marc 
  (Marc) 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, June 30, 2001 7:39 
  AM
  Subject: Mailet Question
  
  I am looking to have JAMES automatically run a bat file when 
  an incoming email matches a predetermined criteria. 
  Example:  If email is from "[EMAIL PROTECTED]"  run "c:\test.bat".  
  
  Is this possible?  Does anyone have a similar 
  example? 
  Thanks, Marc Bernstein 



Upgrading James

2001-05-26 Thread Marc Chamberlin



These may be more of the type of questions for some 
of the James developers to answer, but I thought I would start with the James 
users because they may have faced some of these issue also (And hopefully a 
few of the James developers are lurking ;-) on this group as well. 
)
 
I have installed the released version of James, 
version 1.2.1 and have configured it to handle a few users, some list servers, 
and a couple of custom mailets. Now, lets say I want to upgrade to one of the 
latest nightly builds, what procedures should I follow in order to preserve my 
existing configuration? Can I simply unzip the download zip files in place over 
the top of my existing James directories, or should I unzip to a separate 
directory? If I should do the latter, then what files from my previous James 
installation should I copy over into my new directories? I can 
certainly figure out a few of the more obvious ones, but am not sure I 
could guess at everything that I would need to do... Are there any guidelines 
published? ;-)
 
A related question, is there any plans to wrap the 
James installation process inside some  installation application, such as 
InstallShield for us handicapped Windows slaves, so as to make the installation 
of upgrades somewhat painless? 
 
And a third question - Is there any expected time 
frame for the next release of James? I am mostly just curious and trying to plan 
ahead a bit... ;-)
 
    Thanks again   
Marc...
 
A 
man said unto the universe -  "Sir, I exist!""However," replied the 
universe  "I do not see where that creates in me a sense of an 
obligation."  - Stephen 
Crane


Administration of the James listserver

2001-05-26 Thread Marc Chamberlin



My apologizes if this has already been answered 
somewhere... ;-)
 
Is there any administrative tools that go along 
with the James mail listserver? Specifically, as the James adminstrator, I would 
like the ability to display the list of users which have subscribed to a mail 
list, and to be able to directly add or remove members to/from a list, should 
the need arise Thanks
 
 Marc...
 
 
  
A 
man said unto the universe -  "Sir, I exist!""However," replied the 
universe  "I do not see where that creates in me a sense of an 
obligation."  - Stephen 
Crane


How do I install a mailet?

2001-05-16 Thread Marc Chamberlin



Hello -
 
What is the process for creating a custom mailet 
and installing it into James? I am trying to create a custom mailet which will 
intercept certain emails sent to a special user and process those emails in a 
special fashion. So far I have figured that I have to insert a 
specification for the mailet in the James.conf.xml file, though I wasn't sure 
exactly where... The xml specification I came up with is as follows 
-
 
    
    
    

 
and I took a guess and placed this specification at 
the beginning of the transport processor section of the James.conf.xml file. 

 
Next, I created my Java class for 
NWAGNewsletterMailet which is a derived class from the GenericMailet class, and 
I exported this class in its own Jar file. 
 
Am I on the right track so far? Now I am not sure 
how to proceed It appears to me, that there is some sort of special 
class loader application that the James/Avalon code is using to load these 
mailets, but I couldn't find any documentation on how it is done Where do I 
place the Jar file containing my mailet class, and how do I specify that it is 
to be loaded... I tried the trick of adding the jar file to the CLASSPATH 
environment variable within the run.bat startup file for the James server, but 
that didn't work... 
 
Thanks for any help that can be offered, I know I 
am working a bit in the dark here If there is some documentation somewhere 
that describes this process, just point me to it, I am quite good at reading the 
manuals! ;-)
 
    Marc..
 

A 
man said unto the universe -  "Sir, I exist!""However," replied the 
universe  "I do not see where that creates in me a sense of an 
obligation."  - Stephen 
Crane


A new user's experiences

2001-05-15 Thread Marc Chamberlin



Hello -
 
I just installed the released version of the James 
mail server on my system and thought I would pass along some of my experiences 
along the way and then hopefully solicit some help for a problem that we are 
experiencing on our testbed system for the James server.
 
First of all, let me say I think this project is 
coming along nicely and I didn't have too much difficulty in getting the basic 
released version up an running on a Windows box, so you folks deserve a "Well 
Done"
 
Now for a couple suggestions which might make 
it a bit easier for the next person.
 
1. On the installation page at the URL http://jakarta.apache.org/james/install.html under 
"Step 1" it would have been helpful to have made this statement a link over to 
the Jakarta binary download pages - http://jakarta.apache.org/site/binindex.html  
I had to hunt around a bit in order to find out how to download the code for 
this project.  I also noted there is no link under the Jakarta source code 
page for the James project, maybe this should also be corrected, or at least 
mention why there isn't a link on this page for the James project. The URL I am 
referring to is at http://jakarta.apache.org/site/sourceindex.html
 
2. I found the configuration notes at the URL - http://jakarta.apache.org/james/configuration.html too 
difficult to fully understand... Obviously, a great deal of documentation is 
still needed ;-) (hey I am a software engineer who also an appreciates the fact 
that documentation is often the last thing done on a project) So, I just 
skimmed over it trying to gleam whatever useful information that I thought might 
be worth noting... One simple thing that would help would be to add a note 
defining what N.A. means. It is found throughout the tables under the default 
values columns. I guessed and came up with two possible meanings, "Not 
Available" meaning there is no default value for that particular parameter and 
the integrator should be concerned about it and supply a value; the other 
possible meaning I thought of is "Not Applicable" meaning the integrator doesn't 
need to worry about supplying a value for that parameter I wasn't sure which 
possible meaning was meant, so I took the lazy approach and didn't do 
anything with those parameters, for now I will come back to this later 
on, an will probably be asking further questions...
 
Other than these two small hiccups, I have managed 
to install the James mail server and get it up an running, for a little 
while So here is where I need to solicit some help I set up a single 
mail user without any difficulty, and I then configured some client applications 
to work with the James server I then tested sending and receiving mail with 
both Netscape Communicator and Microsoft's Outlook Express and again everything 
worked OK.. Another client application that I set up is a mail checker 
program called PopIt that checks the James mailserver for incoming mail, for my 
single mail user, every 5 minutes This seems to run for awhile, but after a 
bit, the James server stops responding to it, and from that point on, no client 
application works with the James mail server The solution so far is to stop 
an restart the server  I did some nosing around a found the log files 
for the server and browsed through them, but it wasn't too helpful The one 
clue that appears comes from the info.log file and I have included the tail of 
this log below So, can I get one (or more) of you James wizards to volunteer 
a bit of time an help me track down what might be the problem? What should be my 
next step in debugging this?  Is there a way to turn on additional 
debugging flags, or another way to test the server?
 
    Marc
 
From the tail of info.log, except for the last 
line, this pattern repeats quite a bit and I suspect it is because the 
PopIt mail checker was querying the server every 5 
minutes 
 

2001.05.15 10:46:57 980 (DEBUG) from SocketManager: ServerSocketAcceptor on 
port 110: request arrived
2001.05.15 10:46:58 040 (DEBUG) from TimeManager: Alarm 
org.apache.james.pop3server.POP3Handler@29428e set by 
org.apache.james.pop3server.POP3Handler@29428e
2001.05.15 10:46:58 530 (DEBUG) from TimeManager: Alarm 
org.apache.james.pop3server.POP3Handler@29428e resetted
2001.05.15 10:46:58 920 (DEBUG) from TimeManager: Alarm 
org.apache.james.pop3server.POP3Handler@29428e resetted
2001.05.15 10:46:59 360 (DEBUG) from TimeManager: Alarm 
org.apache.james.pop3server.POP3Handler@29428e resetted
2001.05.15 10:47:00 560 (DEBUG) from TimeManager: Alarm 
org.apache.james.pop3server.POP3Handler@29428e removed
2001.05.15 10:51:57 990 (DEBUG) from SocketManager: ServerSocketAcceptor on 
port 110: request arrived
2001.05.15 10:51:57 990 (DEBUG) from TimeManager: Alarm 
org.apache.james.pop3server.POP3Handler@50a5d9 set by 
org.apache.james.pop3server.POP3Handler@50a5d9
2001.05.15 10:51:58 040 (DEBUG) from TimeManager: Alarm 
o