Management operation for addDomainMapping

2011-04-15 Thread Bernd Fondermann
Hi everyone,

I'm currently catching up on all the changes happening in TRUNK over
the last years.
And I'm quite impressed with the result. This is a much better James
than ever before.

Using jconsole, I tried to add a domain mapping to
recipientrewritetable. Since the management component lacks a
dedicated domain mapping operation, I tried to use addMapping, which
requires NULL as a first parameter. This is very hard to do with
jconsole.

So I thought maybe I could just add the missing call
"add/removeDomainMapping" to management?

  Bernd

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Is there a specific timeline identified by when JAMES Server 3.0 GA will be available ?

2009-12-16 Thread Bernd Fondermann
Jankiraman, Radhakrishnan wrote:
> Hi,
> 
> We are looking at the option of using JAMES in one of our products. We use 
> spring and JAMES 3.0 has a component that makes it possible to setup James 
> through Spring ( through the avalon spring bridge module ). So we would like 
> to know by when is it slated for a release ?
> 
> If this is not planned in the near future, we are looking at the option of 
> attempting a Spring integration of the james 2.3.2 implementation. Is this 
> possible ( feasible? ) ? I've just taken a cursory look at both the 3.0 and 
> 2.3.2 codebases. James 2.3.2 uses the phoenix container, in its binary form, 
> in a standard folder structure. Can we just use the spring integration module 
> from the JAMES 3.0 codebase for the 2.3.2 implementation ?
> 
> Has anyone in the user community tried to achieve this ?

(Since this is a question about in-development, unreleased code, it is
more a question for server-...@james.apache.org. Nevertheless, a very
interesting question, thank you for posting it!)

The big advantage of the 3.0 code base is it's modularization. So there
is no easy 1:1 port from 3.0 to 2.3.x. However, it should be possible.
The phoenix container is not needed for running within Spring, but a lot
of libs are, which are spread around at different places. All are
referenced in the James/Spring module.
I'd recommend that you try to replace the 3.0er libs with their
equivalents from 2.3.2 and try to build and run with them. This can
become somewhat of a back and forth experiment, but it's basically what
I did when writing the James/Spring module.

HTH,

  Bernd

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: james deployment crossing different J2EE app server?

2009-05-10 Thread Bernd Fondermann
On Mon, May 11, 2009 at 04:39, jayenho  wrote:
>
> Hi all, I am a newbie as using the james, here comes my first query, I have
> noted that there is an embedded phoenix container within the james,

Yes, James is based upon this container for ages.

> is there
> any simple and feasible approach to migrate james to any J2EE app server,
> e.g. weblogic?

The Geronimo folks worked on integrating with James and there seem to
be other solutions.
But none of them is simple, as of today.

> I also noted that there already existed some like
> spring-deployment branch for james now, can I just use it directly?

Yes, but you have to build it from svn trunk. There is no released and
thoroughly tested version yet.

> any
> missing features comparing to the normal (non-spring) version?

No.

> Would any brother pls kindly help me out? Thank you very much.

Sure, just keep posting. (Please consider joining list
server-...@james.apache.org and post there, because the Spring-based
deployment is  un-released, low documented, in-development stuff).

  Bernd

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Mailets and Spring

2009-03-17 Thread Bernd Fondermann
On Tue, Mar 17, 2009 at 15:57, Corrado Alesso  wrote:
> Hello everyone.
>
> I have to write a Mailet for the James Mail Server, and the Mailet is going
> to need some collaborators defined as Spring Beans.
>
> Do you have any advice about how to architect this system? My problems are
> about Spring Application Context visibility from James.

You could create a singleton object within the Spring App Context
which is also available through a public static getter
"getInstance()". Then, at Mailet creation, you access all spring
context objects through this singleton. Make the singleton implement
ApplicationContextAware.

The best way depends on how you set up your James Server / Spring App.
Can you tell more about how you intend to let both run in the same VM?

  Bernd

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: james server couldn't start

2008-11-15 Thread Bernd Fondermann
What's the exception?

  Bernd

On Sat, Nov 15, 2008 at 11:55,  <[EMAIL PROTECTED]> wrote:
> Hi All
> I can build james (james-with-phoenix-2.2.0-src.tar.gz) successfully but the 
> problem is i couldn't start the james. When i run (./build.sh) it  shows a 
> uncaught exception. In the logs file i saw couples of message like :
> The file SAR-INF/assembly.xml can not be extracted from the Sar 
> "file:/usr/local/james/dist/james-2.2.0/apps/james.sar"  into directory 
> /usr/local/james/dist/james-2.2.0/apps/james/SAR-INF/assembly.xml because 
> there is a file in the  way.
>
> The same message is for file  config.xml, environment.xml, mm.mysql.LICENCE, 
> conf/james-fetchmail.xml, conf/james-listManager.xml,  
> conf/james-listStores.xml,  
> conf/sampl/fetmail/maxMessageSize.xml..etc
>
>
> Please let me know what's the problem of it? Its urgent for me.
>
> Regards
> Dipo
>
>
>
>
> --
> This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
> http://www.opensubscriber.com/messages/server-user@james.apache.org/topic.html
>
> -
> 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]



Re: Installation on Linux (Ubuntu 8.04 Server) - permissions - running as root

2008-10-15 Thread Bernd Fondermann
On Wed, Oct 15, 2008 at 23:38, Eberhard Iglhaut <[EMAIL PROTECTED]> wrote:
> Thank to all of you for your answers!
>
> I think, running as root shouldn't be much of an issue, because what
> is running as root is the jvm, which has a security architecture of
> its own.

Do you plan to enable a security manager?

  Bernd

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



Re: Import James in Eclipse

2008-10-12 Thread Bernd Fondermann
mvn eclipse:eclipse
should generate a proper workspace.

Off-topic: For Intellij IDEA i recommend using "Generate from external
model: Maven"

  Bernd

On Sun, Oct 12, 2008 at 18:56, Eberhard Iglhaut <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there a easy way to import James to Eclipse (Without setting
> src-folders and referenced libs manually)?
>
> Regards, Ebe
>
> -
> 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]



Re: SMTP throughput and JAMES benchmarking

2008-09-22 Thread Bernd Fondermann

Bernd Fondermann wrote:

On Wed, Sep 17, 2008 at 17:33, rafael.munoz <[EMAIL PROTECTED]> wrote:

Hi

I have implemented a application over James (some pretty heavy mail
processing) and the next week I'm going to try to measure the SMTP
throughput and the performance of the solution. Anyone have any experience
with this? I have several doubts (i.e. how measure the total time of a
message processing including spool queue time, all the mailets, etc) and it
will be wonderful and it will save me a lot of work if someone can give me
some guidelines.

For load I guess that the standard option is to use postage, isn't it?
What's the status of postage? It's in active development and ready to be
use?


It's not in active development currently, but this changes as soon as
someone starts working on it ;-)
I had troubles building it recently but never got around to look into
that, unfortunately.
Maybe I get some time to do that over the weekend since I am
interested in using it again, too. But I can't promise that I'll have
the time.


The build problems are now resolved. Please update your local checkout 
to latest TRUNK HEAD.


  Bernd


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



Re: SMTP throughput and JAMES benchmarking

2008-09-19 Thread Bernd Fondermann
On Wed, Sep 17, 2008 at 17:33, rafael.munoz <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have implemented a application over James (some pretty heavy mail
> processing) and the next week I'm going to try to measure the SMTP
> throughput and the performance of the solution. Anyone have any experience
> with this? I have several doubts (i.e. how measure the total time of a
> message processing including spool queue time, all the mailets, etc) and it
> will be wonderful and it will save me a lot of work if someone can give me
> some guidelines.
>
> For load I guess that the standard option is to use postage, isn't it?
> What's the status of postage? It's in active development and ready to be
> use?

It's not in active development currently, but this changes as soon as
someone starts working on it ;-)
I had troubles building it recently but never got around to look into
that, unfortunately.
Maybe I get some time to do that over the weekend since I am
interested in using it again, too. But I can't promise that I'll have
the time.
Maybe you can give it a try since once running it should work pretty well.
Any contribution very welcome  :-)

  Bernd

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



Re: Testing tools for James?

2008-08-29 Thread Bernd Fondermann
On Fri, Aug 29, 2008 at 01:27, paul77 <[EMAIL PROTECTED]> wrote:
>
> We have set up James to facilitate processing
> certain kinds of email-delivered user requests.
>
> We have mailets configured to parse and categorize
> incoming requests. Ultimately, the parsed data is
> stored in a database.
>
> We would like to perform stress tests on our system
> and also test for possible memory leaks.
>
> Are there tools that have been found useful for this kind of testing?
>
> I looked at JMeter, but it doesn't have explicit support for
> SMTP servers so it might not provide much added value in this case.
>
> Suggestions?

I'd suggest looking at our Postage product which is build for testing
mail servers.
You have to build it from the sources, which you'd find here:

svn checkout http://svn.apache.org/repos/asf/james/postage/trunk james-postage

General information and documentation is here:

http://james.apache.org/postage/index.html
http://wiki.apache.org/james/JamesPostage

You are welcome to give feedback about how it works. It's been a while
since I built it.
I am trying to help out and fix where things are broken.


Thanks,

  Bernd

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



Re: Application architecture for a James based solution

2008-07-22 Thread Bernd Fondermann

Ajay Chitre wrote:

Hello,

We are developing a business application based on James for which we are
considering the following architectural ideas/rules:

1)  Do not put any business logic in the Mailets, for the same reason as why
we don't put any business logic in the Servlets.
2)  When a Mailet is called, it will package the information from the
incoming Mail object into a special "Business Object" (BO).  The Mailet may
also retrieve data from some other sources, such as LDAP, and put it in the
BO.
3)  Once the BO is built, the Mailet will pass it on to a Bean.  This bean
will act as a Session Facade that will control the overall flow of the use
case.  It will provide services such as "Transaction Management" etc.
4)  This Bean will be instantiated as a Singleton.
5)  We will use EasyMock to create mock BOs so that we can write stand-alone
unit tests that don't require us to start/stop James.


I am assuming this is a fairly standard architecutre.  Any pros/cons?  Any
other ideas?


Sounds pretty straightforward.

Additionally, you might want to execute your business logic in a 
different thread than the mail processing to avoid that the mailet 
processing is on hold as long as you BL is running - if the mailet does 
not depend on the result  the business logic is going to yield.


  Bernd


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



Re: Request for help on starting a SMTP server using James

2008-06-25 Thread Bernd Fondermann
On Thu, Jun 26, 2008 at 3:30 AM, Anais Yong Fah Yin
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use a SMTP server for my project and I tried to run the
> run.bat for the James Mail Server 2.3.1 but it did not work. The error that
> appeared is:
>
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
> Component named 'smtp server' failed to pass through the Starting stage.
> (Reason: java.net.BindException: Address already in use: JVM_Bind).

Your problem is pure operational. The server is unable to bind to the
SMTP port (port 25), probably because some other mail server is
already running.
Stop that one and then try again to start James, as you did.

  Bernd

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



Two builds [was: Re: Embedding James in a Java application]

2008-06-14 Thread Bernd Fondermann
On Fri, Jun 13, 2008 at 9:39 AM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
> Bernd Fondermann ha scritto:
>>
>> On Thu, Jun 5, 2008 at 10:05 AM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
>>>
>>> nodje ha scritto:
>>>>
>>>> hey thanks
>>>>
>>>> I haven't open the documentation yet but thanks to Maven I  have been
>>>> able
>>>> to compile the whole stuff.
>>>> spring-integration wouldn't compile on it's own though. Some missing
>>>> dependencies - or repository issue.
>>>
>>> I committed fix to poms yesterday, please try again with the latest
>>> version.
>>
>> We are going long ways to maintain two build tools. I'd suggest we
>> better point our users to the ant build and not turn people away early
>> because they try to use maven and fail.
>>
>>  Bernd
>
> If you look at the thread I already suggested him to use ANT but he decided
> to use maven anyway. So I preferred to take the opportunity to fix the maven
> build (we needed this action anyway for our website build).
>
> In my answer I never used the maven word and here is a quote from what I
> suggested him:
>> If you checkout the whole sources for trunk and run "ant" on the root
>> it will build also the spring-deployment packages.
>
> Stefano

Yes, I know. I can read ;-)
The point is: Having two build tools means, changing one build
probably breaks the other one. We did not yet agree to maintain both
(except for using maven for docs). The nightly build for example does
not check the maven build. But having a broken build is bad for those
innocent folks trying to use it.

But there is another aspect. AFAIK, maintaining a complete maven build
is not consensus in the team. This thing appears to be sneaking in. It
is better to try to have an open discussion about that instead of
silently acting upon it. That's also why I bring it up.

I think it is vital for Apache projects to not depend on remote
repositories to be available to make builds work and to have all
dependend libraries in the project's repository. Otherwise, some day,
old builds will no longer work because of missing dependencies.

Apart from that, I do not prefer ant over maven.

Or to put it the other way round: I am +1 to switch to maven if I can do

svn co $TRUNK

rm -rf $LOCAL_MAVEN_REPOSITORY
mvn
=> build succeeds


  Bernd


>
>
> -
> 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]



Re: Embedding James in a Java application

2008-06-12 Thread Bernd Fondermann
On Thu, Jun 5, 2008 at 10:05 AM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
> nodje ha scritto:
>>
>> hey thanks
>>
>> I haven't open the documentation yet but thanks to Maven I  have been able
>> to compile the whole stuff.
>> spring-integration wouldn't compile on it's own though. Some missing
>> dependencies - or repository issue.
>
> I committed fix to poms yesterday, please try again with the latest version.

We are going long ways to maintain two build tools. I'd suggest we
better point our users to the ant build and not turn people away early
because they try to use maven and fail.

  Bernd

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



Re: BOUNTY

2008-06-12 Thread Bernd Fondermann
On Sat, Jun 7, 2008 at 12:32 AM, Athar Shiraz Siddiqui
<[EMAIL PROTECTED]> wrote:
> I totally agree. Great idea Fondermann (only a German could have
> thought of this innovative application)
>
> We should have some "net flix bounty" kind of fund where we give the
> highest prize to the team that comes up with a certain feature set.
>
> We should each contribute to a fund called the "Feature X Lottery"
> with a deadline on "fund collection closing date" (the higher the fund
> the greater the demand for the feature). We should store all paypaled
> money into an online savings account and then have teams go at the
> feature.
>
> Then we should appoint judges who evaluate the best team submissions.
> And award the prize to the winning team.
>
> What do you think?

Just to clarify: Apache's mission is to provide software for the
general public free of charge.
We won't have something like a fund for implementing features here.
And I doubt this would yield the best results. It would only push the
work yielding the most money.

Nevertheless, some Apache committers are paid for working on their
open source projects. At James, as far as I know, no committer is paid
for it.

  Bernd

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



Re: BOUNTY

2008-06-06 Thread Bernd Fondermann
On Fri, Jun 6, 2008 at 4:26 PM, emailguy <[EMAIL PROTECTED]> wrote:
> Steve Short gets the $30.00. Thank you, Steve.
> The bounty is closed.

;-)
Great, this is a really innovative way to get people going to
contribute to open source projects!

  Bernd

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



Re: How to Programmatically Create An Email Account

2008-05-22 Thread Bernd Fondermann
On Thu, May 22, 2008 at 6:16 PM, Athar Shiraz Siddiqui
<[EMAIL PROTECTED]> wrote:
> Where is this james_users table?

In the database, in case you are using a database backend for James,
like many users do.

> Do you understand my question Sir?

I think we do - yes, we do. Pretty frequently asked question this is.

> When one logs into the console: telnet localhost:4555
> one can just type "add test test" (for adding of a test user with password
> test).
> I would like to do this programmatically; What is the easiest way of doing
> this programmatically?

In case you are using a database backend, the easiest way is to write
a program against the database, as Sebastion pointed out.

There are also many other ways, a few are described here.

http://markmail.org/message/fx43xflhh4mpskgc
http://markmail.org/message/q4fvcypw47vhypzw
http://markmail.org/message/fjtdpizxhs3mbxw3
http://markmail.org/message/lgj7mmxc3252fspi
http://markmail.org/message/duklfz6iv43isx5x

Don't know what you find is the easiest, though.

 Bernd

> On Thu, May 22, 2008 at 11:27 AM, Sebastian Steinhauer <
> [EMAIL PROTECTED]> wrote:
>
>>
>> Am 22.05.2008 um 16:53 schrieb Athar Shiraz Siddiqui:
>>
>>> I would like to create an email account without "Telnet"ing into a console
>>> i.e. programmatic ally.
>>>
>>> How would I do that ?
>>>
>>
>> If the users are stored in a database, just add a new entry in the
>> james_users table. Thats it.
>>
>

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



Re: James Wont Start

2008-05-20 Thread Bernd Fondermann
On Tue, May 20, 2008 at 7:18 PM, Athar Shiraz Siddiqui
<[EMAIL PROTECTED]> wrote:
> You are right. That is what the problem was. I just didnt read far down the
> error message  to figure that another instance was running of James "
> Address already in use:" is the only hint embedded in there.
>
> Thanks!

No problem. The error message is less than helpful for the
unexperienced and many users run into this.
The message was improved in our unreleased code (see
http://issues.apache.org/jira/browse/JAMES-678 )

  Bernd

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



Re: James Wont Start

2008-05-19 Thread Bernd Fondermann
The error message indicates that James (or another mail server) is
already running.
Terminate properly, then restart.

Changing ports is not necessarily a good solution since mail services
are expected to run on certain ports.

  Bernd

On Mon, May 19, 2008 at 9:24 PM, Athar Shiraz Siddiqui
<[EMAIL PROTECTED]> wrote:
> I am running James from the console because the wrapper does not seem
> to be able to install it as a service but when I do run.bat whereas it
> was working yesterday today it is not.
>
> This is the error in the console window :
>
> James Mail Server 2.3.1
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
> Component named "remotemanager" failed to pass through the Starting
> stage. (Reason: jav
> a.net.BindException: Address already in use: JVM_Bind).
>at 
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
>at 
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
>at 
> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
>at 
> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
>at 
> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
>at 
> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
>at 
> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
>at 
> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)
>at 
> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
>at 
> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
>at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
>at 
> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
>at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)
>at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)
> Caused by: java.net.BindException: Address already in use: JVM_Bind
>at java.net.PlainSocketImpl.socketBind(Native Method)
>at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>at java.net.ServerSocket.bind(ServerSocket.java:319)
>at java.net.ServerSocket.(ServerSocket.java:185)
>at 
> org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory.createServerSocket(DefaultServerSocketFactory.java:74)
>at 
> org.apache.james.core.AbstractJamesService.initialize(AbstractJamesService.java:337)
>at 
> org.apache.james.remotemanager.RemoteManager.initialize(RemoteManager.java:143)
>at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
>at 
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)
>... 22 more
> There was an uncaught exception:
> -
> --- Message ---
> Failed to start application james.
> --- Stack Trace ---
> org.apache.avalon.phoenix.interfaces.DeploymentException: Failed to
> start application james.
>at 
> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:379)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
>at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
>at 
> org.apach

Re: Wrote the Install Utility

2008-05-14 Thread Bernd Fondermann

Shiraz,

Athar Shiraz Siddiqui wrote:

I sent the following email to dev but it apparently didn't make it. I
didn't hear any feedback. 


Your email didn't reach the list, probably is stuck in moderation. Mails 
go easily through when you are sending from the actual mail account 
which you have subscribed to the list.



I know this installation package for windows
might not be the greatest contribution but I was hoping for some
feedback from someone? 


Every contribution is welcome, especially the first one from a new 
contributor. :-)



I think this is exciting. If someone would be
kind enough to give me some user feedback or way of putting this for
the end user it would be great.


Before every successful contribution, there is some learning how to 
contribute in the right way. That means, getting to know how all the 
people who are contributing to Apache projects do it.
For example, see http://james.apache.org/contribute.html , but be sure 
to study some more reading stuff around James and Apache, which you'd 
easily find on our website.


After that, I am sure you are aware of our open source philosophy, that 
everything is about working together and writing source code.

That means sharing the actual code.

Please note also that the right mailing list for development is not this 
 list, since it is reserved for user questions. Please move the 
discussion over to the server-dev mailing list.


More inline...




fromAthar Shiraz Siddiqui <[EMAIL PROTECTED]>
to  James Dev <[EMAIL PROTECTED]>,
dateMon, May 12, 2008 at 7:33 PM
subject Installation Executable for James 2.3.1 ready.
mailed-by   gmail.com
I have the installation script for James 2.3.1 for windows OS is ready.

I would like to send it to someone for testing on a windows OS. I did
it for our own environment but it might be useful for future.
Please keep in mind that I am not very well versed with windows
development and my skills in this arena are limited.


What technology did you use to write the Windows Installer?


It is very simple and basic right now.


That's fine.


It does the following :
0) checks for JVM installation in registry if missing it gives an
error and quits.


We should also support environment variables like JAVA_HOME, which are 
often used to point to a proper java install.



0.1) requests to accept End User License Agreement (Apache)
1) prompt for user info (optional)
2) prompts for install directory
3) gives window with summary of installation
4) installs
5) gives a readme file
6) finish window.


That's fine, but we would need to see the source code. Could you please 
get familiar with our JIRA tool please and upload it there?

If you have any questions about it, just ask.


It has the other basic uninstall features (puts it in add/remove
programs) and allows for un-installation.

What I would like to incorporate in the next release:
1) check for third party installed pre requisite software (like java
and you gave me that already thanks!) but if third party pre requisite
not found install it for the user.
2) provide a check box (as in mysql install) that provides options
asking the user "Do you want to install this as a "Service"? if
checked (yes install as a service) then it runs an executable with an
option that installs the software as a service
3) allow a user to do "custom installs" pick features like "install
this feature, do not install that feature" etc.
4) allow a user to post icons on the desktop or the quick launch
folder that automatically runs run.bat
5) allow a user to change the default "user" and "password" for admin
features (and go into an xml file to put that user and password)
6) allow a user to configure other options in an xml file like
"hostname" or some other value of an xml field that usually requires
mucking with an xml file
7) provide a front end for editing the xml file.
8) provide a front end (windows based) for administering the james mail server.


Shiraz

p.s. I would like to start contributing to the actual james server
please and see if we can have a plan to revamp this to the latest JDK
1.5 or later (if its not too ambitious). To begin I would like to
create useful docs on the server (for newbies like me).


ok, fine. there is a lot of work to do there. ;-)


  Bernd

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



Re: Reproccessing SPAM under James 2.2

2008-04-09 Thread Bernd Fondermann

Dain Kaplan wrote:

Mike,

I'm no JAMES expert, but we had the same problem with James 2.2 
(upgrading has been a challenge for us thus far), and though our 
solution was less than elegant, it did work.


Hi Dain,

concerning upgrading James. Is there anything we can do to help you make 
it easier to upgrade?


  Bernd


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



Re: James not working

2008-04-01 Thread Bernd Fondermann
On Wed, Apr 2, 2008 at 7:13 AM, Norman Maurer <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  please get sure you not use the blacklis "relays.ordb.org" in any of
>  your matchers / mailets. They block all ips since some days for some
>  unknown reason.

AFAIK, they are shutting down their service. With the latest config
change they are trying to raise awareness for this fact. With some
effect, admittedly.

ordb.org was already taken out of our configuration with release 2.3.1.
So this only hits usrs still running on 2.3.0 (or earlier) configurations.
see comments for http://issues.apache.org/jira/browse/JAMES-758

  Bernd


Re: All messages going to SPAM processor

2008-03-28 Thread Bernd Fondermann
According to this credible report

http://isc.sans.org/diary.html?storyid=4198&rss

which says

"Although ORDB.org was shut down on December 18, 2006, yesterday they
changed their behaviour, and instead of timing out, they are blocking
all IP addresses, that is, every e-mail server queried is being
reported as an open relay."

I think it is best to recommend that all James users should change
their configuration and remove ORDB.org immediately.

I will check the configuration source files in svn and open a JIRA to
remove ORDB.org from them if they are still contained.

Thanks,

  Bernd


On Fri, Mar 28, 2008 at 12:25 AM, Tor-Einar Jarnbjo
<[EMAIL PROTECTED]> wrote:
> I had the same problem a few days ago and the mailet with a match for
>  "InSpammerBlacklist=relays.ordb.org.", which redirects the mails to the
>  spam processor was found as the cause. In the default configuration,
>  James checks the blacklists njabl.org and ordb.org for known spam
>  sources and redirect the mails to a black hole if they match. ordb.org
>  has been down for several months now, but something must have happened
>  recently, causing the matcher to match all mails.
>
>  Tor
>
>
>  Hans Liebenberg schrieb:
>
>
> > Hi,
>  >
>  > All of a sudden after running perfectly for many months, my James
>  > server has started to route all smtp traffic to the SPAM processor.
>  > I have left my spam configuration as it was by default, i.e I haven't
>  > enabled any spam mailets e.g InSpammerBlacklist
>  >
>  > I have enabled DEBUG logging on my spool manager and I get the
>  > following output
>  >
>  >
>  > smtp log:
>  >
>  > 27/03/08 10:09:26 INFO  smtpserver: Successfully spooled mail
>  > Mail1206605366485-1414 from [EMAIL PROTECTED] on
>  > 127.0.0.1 for [EMAIL PROTECTED]
>  >
>  > spoolmanager log:
>  >
>  > 27/03/08 10:09:26 DEBUG spoolmanager: Processing
>  > Mail1206605366485-1414 through root
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Servicing mail:
>  > Mail1206605366485-1414
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Servicing
>  > Mail1206605366485-1414 by Postmaster aliasing mailet
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Servicing
>  > Mail1206605366485-1414 by Set Mail Attribute Mailet
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366485-1414 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Checking
>  > Mail1206605366291-1413 with
>  > [EMAIL PROTECTED]
>  > 27/03/08 10:09:26 DEBUG spoolmanager.root: Servicing
>  > Mail1206605366485-1414 by ToProcessor Mailet
>  > 27/03/08 10:09:26 DEBUG spoolmanager: Processed Mail1206605366485-1414
>  > through root
>  > 27/03/08 10:09:26 DEBUG spoolmanager: Result was spam
>  >
>  >
>  >
>  > How can I find out WHY it is resulting as spam from the root processor
>  > (which has no ToRepository=spam configs enabled).
>  > I have checked other log files but cant seem to find anything.
>  >
>  > Thanks Alot
>  > Hans
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional comm

Re: number of received emails different to that set in the 'send count-per-min' setting ##do_not_enrich##

2008-03-04 Thread Bernd Fondermann

Ilan Bowen wrote:

Hi there,

 


I recently installed and configured James and Postage on two separate
windows servers in a test environment. 


I have successfully managed to send a test message from Postage, relaying
via the James server to a third server (Exchange) and I receive the message
without a problem.

I have configured the scenario in the postage.xml file with user internal
and external value of "1" and set the send count-per-min value to "1" also.

I am expecting in this scenario to receive only one email at the destination
address, however for some reason I receive two emails, one 6K and the other
8K.

When changing the send count-per-min value to a higher value, I always
receive at least one or two more emails at the destination address than I
set here.

Any ideas?


This is a known problem. At least to me. I thought it was publicly 
documented in our JIRA issue tracker, but it isn't yet. Maybe you would 
like to create one?


I never figured what was wrong but I suspect this is some race condition 
or mis-counting.


I will have a Postage dev session later this year where I will look into 
this.


Thanks for using Postage. :-)

BTW, the server-user@james.apache.org mailing list is the right place 
for questions like this. Please move completely over to this list when 
you'd reply and drop [EMAIL PROTECTED]


  Bernd


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



Re: Spring integration as a Avalon component

2008-02-28 Thread Bernd Fondermann
On Thu, Feb 28, 2008 at 9:06 AM, Guido Franz <[EMAIL PROTECTED]> wrote:
> Hello
>
>  Yesterday I tried to integrate a Spring application context into James,
>  that can be used within Mailets. It succeeded only halfway. My custom
>  component will be loaded during startup (I print out some loading
>  statements and spring logs some stuff), but I cannot access it with the
>  ServiceManager.
>
>  Assembly.xml looks like this:
>  ##
> class="com.oneandone.ccsys.ccl.james.component.SpringContextLoader" />
>  ##
>
>
>  The .xinfo of the SpringContextLoader component implements a simple
>  interface:
>  ##
>   
>   name="com.oneandone.ccsys.ccl.james.component.SpringContext"/>
>   
>  ##
>
>  The interface has a ROLE:
>  ##
> String ROLE =
>  "com.oneandone.ccsys.ccl.james.component.SpringContext";
>  ##
>
>  But I cannot access the component with the ServiceManager:
>  #
> ServiceManager serviceManager =
> (ServiceManager)
>  getMailetContext().getAttribute(
>
>  Constants.AVALON_COMPONENT_MANAGER);
> SpringContext context =
>
>  (SpringContext)serviceManager.lookup(SpringContext.ROLE);
>  #
>
>
>  Error Message: 'Unable to provide implementation for SpringContext'.
>  When debugging, I cannot see my component in the map of the
>  ServiceManager, but I don't know how to register the component for this.
>  Do I have to implement a special interface like 'Contextualizable' or
>  something like that? This is an Avalon issue, but I don't understand how
>  to create components. There is not much documentation available for
>  Avalon, or let's say I cannot find it.

As far as I understand Avalon's overengineered component model, the
missing link is that you'd have to make the component known to the
_receiving_ component, too. Only then will it appear in the specific
serviceManager map. You can do this by adding a  to
JamesMailetLoader.xinfo.

  Bernd

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



Re: Spring Integration

2008-02-22 Thread Bernd Fondermann
On Fri, Feb 22, 2008 at 11:23 AM, Bernd Fondermann
<[EMAIL PROTECTED]> wrote:
> Hi Guido,
>
>
>  On Fri, Feb 22, 2008 at 9:03 AM, Guido Franz <[EMAIL PROTECTED]> wrote:
>  >
>  >  Hello
>  >
>  >  I want to access a Spring application context from within Mailets. It's 
> easy to load a BeanFactory in a Mailet, but of course what I need is a single 
> application context. How can I handle this?
>
>  I will have a closer look at this and follow up in a separate post.

There are different approaches one could think of.

1. The canonical approach would be to follow the proven mailet
injection path. That would require that you'd add a service
"MyApplicationContextProvider" in assembly.xml which loads your
ApplicationContext. Every mailet which needs access to it and which is
subclassing GenericMailet can now call

ServiceManager serviceManager = (ServiceManager)
getMailetContext().getAttribute(Constants.AVALON_COMPONENT_MANAGER);
MyApplicationContextProvider datasources =
(MyApplicationContextProvider)
serviceManager.lookup(MyApplicationContextProvider.ROLE);

This should work fine for any James release.

2. If you are running the spring-deployment you could wrap
JamesMailetLoader with you own implementation. This implementation
would behave just like JamesMailetLoader itself with the exception
that everytime it loads a Mailet which is implementing
BeanFactoryAware (or ApplicationContextAware) it injects the context
into the Mailet.

3. You could even go further and not actually class-load the bean in
the Loader but take the Mailet instance from an ApplicationContext
itself - where it has already been properly wired with all the stuff
it needs. (BTW, this solution would free the Mailet API from "the
service lookup dilemma" discussed some time ago.)

Which solution is the best in your case depends on your specific requirements.

  Bernd

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



Re: Spring Integration

2008-02-22 Thread Bernd Fondermann
Hi Guido,

On Fri, Feb 22, 2008 at 9:03 AM, Guido Franz <[EMAIL PROTECTED]> wrote:
>
>  Hello
>
>  I want to access a Spring application context from within Mailets. It's easy 
> to load a BeanFactory in a Mailet, but of course what I need is a single 
> application context. How can I handle this?

I will have a closer look at this and follow up in a separate post.

>  When I google 'apache james spring' I will find mails with a package 
> 'org.apache.james.container.spring'.  So I think, Spring will be integrated 
> in an upcoming release?

We have a working spring-based deployment under development in the
main development branch. there is a nightly build artefact available
which is build based on this work. please note, these are not
officially released products, only intended for evaluation and testing
purposes.

That said, I am personally quite positive we will see a release of the
spring-deployment alongside our next 'classical' phoenix-based
deployment. But this is not yet decided.

  Bernd

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



Re: NoSuchMethodError: org.apache.mailet.MailetContext.getSMTPHostAddresses...

2008-02-05 Thread Bernd Fondermann
On Feb 5, 2008 8:31 AM,  <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a question regarding what could be causing the following
> exception located in the mailet-*.log:
>
> 05/02/08 00:49:16 INFO  James.Mailet: RemoteDelivery: Exception caught
> in RemoteDelivery.run()
> java.lang.NoSuchMethodError:
> org.apache.mailet.MailetContext.getSMTPHostAddresses(Ljava/lang/String;)Ljava/util/Iterator;
> at 
> org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:442)
> at 
> org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:)
> at java.lang.Thread.run(Thread.java:595)
>
>
> We are only encountering this exception when running James 2.3.0 on
> Solaris 10 using java 1.5.0_13.  We are attempting to run it in a zone
> if that makes any difference.  We notice this message around 800 times
> per second in the log files.  We have run this same build successfully
> on Mac OS X 10.4 and 10.5, as well as Ubuntu 7.10.  I've confirmed
> that the zone has full outbound DNS access, and external network
> connectivity.  Any thoughts, or additional information needed to help?

Another hint: Please double check that your classpath is cleared from
left-over jars of any kind.
Maybe try to re-deploy in a clean environment.

Errors like this often occur on binding errors (wrong/outdated jar on
the classpath).

 Bernd

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



Re: NoSuchMethodError: org.apache.mailet.MailetContext.getSMTPHostAddresses...

2008-02-05 Thread Bernd Fondermann
On Feb 5, 2008 8:31 AM,  <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a question regarding what could be causing the following
> exception located in the mailet-*.log:
>
> 05/02/08 00:49:16 INFO  James.Mailet: RemoteDelivery: Exception caught
> in RemoteDelivery.run()
> java.lang.NoSuchMethodError:
> org.apache.mailet.MailetContext.getSMTPHostAddresses(Ljava/lang/String;)Ljava/util/Iterator;
> at 
> org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:442)
> at 
> org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:)
> at java.lang.Thread.run(Thread.java:595)
>
>
> We are only encountering this exception when running James 2.3.0 on
> Solaris 10 using java 1.5.0_13.  We are attempting to run it in a zone
> if that makes any difference.  We notice this message around 800 times
> per second in the log files.  We have run this same build successfully
> on Mac OS X 10.4 and 10.5, as well as Ubuntu 7.10.  I've confirmed
> that the zone has full outbound DNS access, and external network
> connectivity.  Any thoughts, or additional information needed to help?

What about IPv6 vs. IPv4 usage?

As you nailed it down to that particular platform and setup, have you
already check for JVM-specific bugreports at sun?

  Bernd

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



Re: Remote user-creation API for a mail server

2007-12-07 Thread Bernd Fondermann

rne18145 wrote:

Why is it that most mail servers don't allow us to create user through an
API? Why isn't there an API that can tell the mail server to create an user
(of course, with proper authentication and authorization).


I cannot speak for other mail servers, but James has more than one way 
to add new user accounts, a telnet-accessible console and JMX support.


  Bernd

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



Re: JAMES Mail Server: Compare mail server customizability

2007-12-06 Thread Bernd Fondermann

Hi fr33m2n,

[Everyone else, please note: fr33m2n is currently working on a GHOP 
task. see 
http://code.google.com/p/google-highly-open-participation-asf/issues/detail?id=18

]

There are many areas to improve the result you are presenting here.

Style & Format - please use some other format to present your results, 
HTML, a wiki page, google doc etc. Plain mail is not very good for 
presenting tabled results.


Context - what did you do? what are talking about?  _I_ tend to know 
what you are trying to tell, but someone else probably doesn't.


Verbosity - you are very brief in your "text". please provide more 
context and explain what you did. remember: the results of your work 
should serve as information for other people.


Original work - what results did you come up with by yourself? We had a 
brief conversation on the list, but I'd like to see more original work 
from you.


The task - the task was to compare mail server customization.
While concrete and common use cases are a start, not everyone is trying 
to do exactly the same thing. keep in mind, people have many use cases 
for customization. we cannot cover every single one of them. but they 
serve as means to prove mail servers features and capabilities. we want 
to highlight theses capabilities by applying the use cases. we do not 
want to look at the use cases for the use cases sake. we know already 
they are solvable - we are interested in what mail servers provide us to 
make it easy to solve them.


Effort - You are on the right track. Just put a bit more effort into 
communicating your results (I know it can be hard in a foreign language, 
and we will not judge that).


  Bernd


Василий Озеров wrote:

2007/12/6, Bernd Fondermann <[EMAIL PROTECTED]>:


this would be determined by integrating with some specific
"availability service" which is not part of the mail server.

  Bernd



  * *

*Postfix*

*Exim*

*James Mail server*

   1. *Add header to all mail*

 Hard (new script)

Easy(one line)

Easy(one line)

   1. *Send mail to online users (external check)*

 Easy(Only external script to check)

Medium(external check-script + add new "router" and "transport" to config)

Medium(external check-script + add a few lines to config)



Is it ok?




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



Re: JAMES Mail Server: Compare mail server customizability

2007-12-05 Thread Bernd Fondermann
On Dec 5, 2007 4:22 PM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> 2007/12/5, Bernd Fondermann <[EMAIL PROTECTED]>:
> >
> > On Dec 5, 2007 6:52 AM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> > > 2007/12/5, Bernd Fondermann <[EMAIL PROTECTED]>:
> > > >
> > > > 
> > > >
> > > > I admit, the DNS configuration is not the customization I was thinking
> > of.
> > > > I was thinking of for example
> > > > 1. adding a footer to every mail going through a processor, for
> > > > example before sending it out
> > >
> > >
> > > Ok. It is very  simple for James Mail server and exim.  Now  i will
> > search
> > > for postfix.
> > >
> > > 2. re-addressing mail sent to a for example [EMAIL PROTECTED] to some
> > > > available support team member
> > >
> > >
> > > It can be done, using aliases.
> >
> > That would be static forwarding. I meant, dynamically, depending on
> > who is available at the moment the mail is processed.
>
>
> And how can mail server understands who is online? In my mind it can be done
> only if IMAP is used.

this would be determined by integrating with some specific
"availability service" which is not part of the mail server.

  Bernd


Re: JAMES Mail Server: Compare mail server customizability

2007-12-04 Thread Bernd Fondermann
On Dec 5, 2007 6:52 AM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> 2007/12/5, Bernd Fondermann <[EMAIL PROTECTED]>:
> >
> > 
> >
> > I admit, the DNS configuration is not the customization I was thinking of.
> > I was thinking of for example
> > 1. adding a footer to every mail going through a processor, for
> > example before sending it out
>
>
> Ok. It is very  simple for James Mail server and exim.  Now  i will search
> for postfix.
>
> 2. re-addressing mail sent to a for example [EMAIL PROTECTED] to some
> > available support team member
>
>
> It can be done, using aliases.

That would be static forwarding. I meant, dynamically, depending on
who is available at the moment the mail is processed.

>
> this can be done by using pre-written and self-written mailets.
> > The question is now, do other mail servers deliver the same features,
> > and how easy is it to get it running.

There you are. There are typical solutions to use cases like this. The
GHOP task would be to compare the general approach mail servers have
towards this kinds of customization. This can be a generic
configuration mechanism (per XML for example), an API (like Mailet),
using standards scripting languages like Sieve, or something else.

> How can I understand is it easy to configure or to hard? :)

Well, if you have to rework the source code of the server it is hard.
If it requires a few lines of configuration, it is easy.

  Bernd


Re: JAMES Mail Server: Compare mail server customizability

2007-12-04 Thread Bernd Fondermann
On Dec 4, 2007 6:53 AM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> 2007/12/4, Bernd Fondermann <[EMAIL PROTECTED]>:
>
> > HI fr33m2n,
> >
> > ok, very good question. :-)
>
>
> Thanks. :)
>
> Mail servers receive emails. Without any customization, the server
> > drops them into the inbox of the receiving user. At any point, the
> > user can view them, delete them, whatever. That's default behavior.
> >
> > Customization is the process of changing the server's configuration
> > and let it do something which is somehow special to your needs.
> >
> > This is done by changing the mail processing pipeline. Either by doing
> > something with the mail itself, or by altering the routing of the
> > message.
> >
> > 1. Can you make up two simple use cases now, one where the email is
> > changed on its way to the receiver, one where the routing of the mail
> > is changed?
>
>
> 1) We must add to the server configuration something like this:
> domain.com  smtp:second-server.com
> This will allow all mail which is adressed to domain.com be  redirected to
> second-server.com
>
> 2) To change routing of the mail is very simple. We must change MX record to
> destination domain.



> 2. Try to identify, where in James' configuration you can do such
> > customizations (hint: Mailet API).
>
>
>  I think, that we can use prewritten mailets. For example Forward mailet.
> Sorry, but now i can't test it, because i am at school and on this computer
> i can't install Java enviroment.]
> That is why I will answer later...

I admit, the DNS configuration is not the customization I was thinking of.
I was thinking of for example
1. adding a footer to every mail going through a processor, for
example before sending it out
2. re-addressing mail sent to a for example [EMAIL PROTECTED] to some
available support team member

this can be done by using pre-written and self-written mailets.
The question is now, do other mail servers deliver the same features,
and how easy is it to get it running.
You wouldn't neccessarily have to do it yourself, it would suffice to
check the documentation of other servers or ask on their lists.

  Bernd


Re: mail server

2007-12-04 Thread Bernd Fondermann
Hi Raphael,

problems can be expected when setting up a mail server for the first time.
What cannot be expected is that nobody jumps in to help you on this list ;-)
Apologies for that. Give us a second chance, please!

How far did you get? Did you manage to build from source?
What did you do in detail?

Thanks,

Bernd


On Nov 30, 2007 3:28 PM, Raphael Holzinger <[EMAIL PROTECTED]> wrote:
> hello,
>
> i have claimed a task to set up the mail server.
>
> first i have downloaded the Source (ZIP Format): james-2.3.1-src.zip from
> http://james.apache.org/download.cgi
> is that right?
> and than i have problems to read the config text file to change the
> servername,dnsserver and so on.
>
> thank you for your help
>
> raphael
>

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



Re: JAMES Mail Server: Compare mail server customizability

2007-12-03 Thread Bernd Fondermann
On Dec 2, 2007 7:25 PM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> Good day.
>
> Can you help me to pick up typical use cases in customization?

HI fr33m2n,

ok, very good question. :-)

Mail servers receive emails. Without any customization, the server
drops them into the inbox of the receiving user. At any point, the
user can view them, delete them, whatever. That's default behavior.

Customization is the process of changing the server's configuration
and let it do something which is somehow special to your needs.

This is done by changing the mail processing pipeline. Either by doing
something with the mail itself, or by altering the routing of the
message.

1. Can you make up two simple use cases now, one where the email is
changed on its way to the receiver, one where the routing of the mail
is changed?
2. Try to identify, where in James' configuration you can do such
customizations (hint: Mailet API).

Please come back to the list with any questions or results.

  Bernd


Re: James Mail server.

2007-12-03 Thread Bernd Fondermann
Hi,

I am sorry for the late answer, but I was offline during the weekend and beyond.

On Dec 2, 2007 6:49 PM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> I have claimed the task "JAMES Mail Server: Compare mail server
> customizability".
> I want to compare James mail server with exim and postfix mail servers. (I
> don't like sendmail and qmail).
>
> Is it ok?

Yes, that's ok.

  Bernd


Re: Google Highly Open Participation Contest

2007-12-02 Thread Bernd Fondermann
You could have claimed the task by adding an appropriate comment to it
on the Google group.

But maybe did already figure it out by yourself.
If not, I am sorry, someone else managed to do it before you.

  Bernd

On Dec 1, 2007 7:52 PM, Василий Озеров <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I want to do this project
> http://code.google.com/p/google-highly-open-participation-asf/issues/detail?id=18&colspec=ID%20Status%20Owner%20ClaimedBy%20Summary
>
> >Subtasks:
> >1. Identify other important open source Mail Servers on the market.
> >2. Subscribe to our server user mailing list, see 
> >http://james.apache.org/mail.html
> >3. Ask for typical use cases in customization. We will help you picking one 
> >or two.
> >time limit for steps 1.-3.: 1 day
>
>
> And I know exim, postfix, sendmail mail servers. And I know qmail mail
> server, but i don't like it...
> I have been configuring this mail servers more than 2 years. I have a
> lot of articles about this mail servers.
>
> What must i do next?
>
> P.S. I don't know, how to mark this project to "Claimed". How can i do this?
> P.S.2 Sorry for my english...
>
> Thanks a lot.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Compiling a FAQ on JAMES

2007-12-02 Thread Bernd Fondermann
On Dec 1, 2007 8:19 PM, Alessandro Delgado <[EMAIL PROTECTED]> wrote:
>
> Thank you for the answers, and sorry for the delay in answering, I had a 
> problem with my Internet connection. (Never happens, gotta happen when I most 
> need it ¬¬ )
>
>
> I will start collecting the answers and writing the FAQ entries. Of course, 
> I'll try to include the problems you mentioned, such as:
>
> "My JAMES doesn't receives and/or sends, what's wrong?"
>
>
> This is a question that, the way I see it, must have plenty of answers; what 
> possibilities do you guys think are the most usual, and therefore important 
> to maintain on the FAQ, besides from the aforementioned Firewall 
> Misconfiguration possibility?

Yeah, we simply want to present users some steps to check before they
have to come to the list.
A FAQ is not a manual. It's answers should not get too long. Instead,
they should refer to documentation where the problem is dealt with
separately.
So you'd have to find the fine line here between covering the frequent
problem and answering briefly.
The complex documentation is not covered by your GHOP task. (Although
nobody stops you from doing it, if you'd want to. ;-))

  Bernd

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



Re: Compiling a FAQ on JAMES

2007-11-30 Thread Bernd Fondermann

Alessandro Delgado wrote:

Hi all!

I'm participating of the Google Highly Open Participation Contest 
(http://code.google.com/opensource/ghop/2007-8/), and I've assigned to myself 
the task of compiling a FAQ list on JAMES 
(http://code.google.com/p/google-highly-open-participation-asf/issues/detail?id=16).

As instructed, I went through the mailing list, and identified some questions 
which are frequently asked. The questions I came up with are:

How to use a database for User Authentication?
How to use a database for Storing Mail?
How to configure a mailing list?
How to prevent spam?
How do I upgrade James?


Very good! :-)


To me, these seem to be the most repeatedly asked questions. I'd like to know 
if you guys on the list think there are any more questions which regularly 
appear on the mailing list, that I failed to mention?


As I remember it, many questions deal with how to get the server to 
receive and send out (relay) email correctly. Often those problems have 
to do with misconfigured firewalls - the particular James server in 
question is not reachable from some destination and cannot connect to 
another server or cannot be connected. We then ask users to "telnet" to 
  the server or do other routine diagnosis. Maybe you have the time to 
explore this field some more...?


  Bernd


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



Re: Categorisation

2007-11-29 Thread Bernd Fondermann
On Nov 29, 2007 9:34 AM, Andoni OConchubhair <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a need for a categorisation engine for mails coming into my
> company to be routed to different queues. I know James has a Baysian
> analysis tool for filtering spam but is there any way I could use/train
> it to filter into more than just "Yes" and "No". Could I train it to
> categorise my emails into 5 or 6 different categories and then tag them.
>
> If I could have the mails arriving in my email application with a tag,
> be it a header or a subject line tag of some sort I could then place
> them in queues for the relevant person to work on.
>
> Please let me know if this exists for James at the moment.

Unfortunately not. But if you (or someone else) want to get your feet
wet and implement something like this, that would be incredibly great.
It is on my secret wishlist for a long time!
I would also support you in getting this into James, though I can't
help implementing the core algorithm.
The approach is described here
http://www.joelonsoftware.com/articles/FogBugzII.html and there is a
paper linked inside this text with more.

  Bernd

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



Re: apache james server

2007-10-05 Thread Bernd Fondermann
are you subscribed to the mailing list?
if not, please send a mail to
[EMAIL PROTECTED]

see also: http://james.apache.org/mail.html

  Bernd

On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi,
>
> j i hope to have some help about the config of the james apache server. i try 
> to send mail to the james users list. its not possible because my mail are 
> look like spam ! what can i do to send mail to help with the james users list 
> ?.
>
> thanks for all
> ray
>

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



Re: dynamically deploy mailets?

2007-09-08 Thread Bernd Fondermann
On 9/7/07, Kristian Rink <[EMAIL PROTECTED]> wrote:
> Am Thu, 06 Sep 2007 16:14:07 +0200
> schrieb Bernd Fondermann <[EMAIL PROTECTED]>:
>
> > The Spring Deployment module is experimental and not released yet.
> > For those developers who want to give it a spin, svn-checkout the
> > module at
> > http://svn.apache.org/repos/asf/james/server/sandbox/spring-integration
> >
> > There is a HOWTO which should get you started.
>
> Well, after all, I built it, and it starts up. Fine. Guess this is
> where the real work is just about to start, isn't it? :)

Have fun! :-)

  Bernd

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



Re: dynamically deploy mailets?

2007-09-06 Thread Bernd Fondermann

The Spring Deployment module is experimental and not released yet.
For those developers who want to give it a spin, svn-checkout the module at
http://svn.apache.org/repos/asf/james/server/sandbox/spring-integration

There is a HOWTO which should get you started.

For in-depth discussion about this module, I'd be happy to meet everyone 
interested on the dev-list :-)


  Bernd

Kristian Rink wrote:

Am Thu, 6 Sep 2007 15:45:38 +0200
schrieb Zsombor <[EMAIL PROTECTED]>:


However it's a bit different, but honestly, with the new,experimental,
spring-container bases James, it's much simpler to work with, so I
think it's worth the trouble to set up.


Sounds good, not just because my mailet packages also rely upon Spring.
Is there a working version of james/spring already?

Cheers & best regards, 
Kristian





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



Re: James Mailet Access to External Servers!

2007-09-06 Thread Bernd Fondermann

Hi Gary,

To narrow down your problem, did you try to get a plain connection from 
the mail server to the web server for example by issuing on the mail 
server's command line

  wget http://:80/
or
  telnet  80
?

  Bernd

Gary Jarrel wrote:

Hi All!

A quick questions - I've got a mailet which uses a closed source API
to connect to a remote server to notify users of mail coming in. The
connection is a simple http connection from the James server (inside
the mailet) to a remote server on port 80.

All seems to function well in the test cases, and when I deploy the
web component of the application under tomcat - i.e. the code is able
to establish the connection and communicate with the remote server.
However when I deploy the james mailet with all the required jars, etc
- it always crashes out reporting that a connection to a remote server
can not be established.

Is there perhaps a security setting of some sort which stops the
mailets from accessing the outside word or any other suggestions?

Thank you!

Gary

-
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]



Re: dynamically deploy mailets?

2007-09-06 Thread Bernd Fondermann

Hi Kristian,

Kristian Rink wrote:

Folks;

is there any way how to deploy a mailet package to a running James
instance without having to restart the server? Right now, being into
heavy testing, this would drastically ease things. ;)


Not that I know of.

But you could switch to Remote Debugging the server and benefit from 
hot-code-replacement as provided by the Java IDE of your choice.


You'd still have to restart the server at times, but for most code 
changes, this should work out quite well.


  Bernd

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



Re: Address already in use exception

2007-06-17 Thread Bernd Fondermann

You should be able to check which process is using the blocked port by invoking

netstat -pant

Then you can kill that process and try again.

 Bernd

On 6/18/07, maomaode <[EMAIL PROTECTED]> wrote:

Hi,

I got the following exception today, the james server can not be started
anymore, i can just a few days ago btw.

Looks like that one port has been used by other process,

but i can not find any other process used the ports with netstat
The james 2.3.1 is deployed on Suse linux

I've tested the config files on the windows box, the config files has no
problem at all.

I guess it's the server environment problem, but i can not figure out a
clue.

Any helps are appreciated.


Thanks in advance,

mmao

INFO2007-06-18 12:15:01.444 [Phoenix.] (): Verifying that the
specified BlockListeners have valid types.
INFO2007-06-18 12:15:01.444 [Phoenix.] (): Verifying that the
specified BlockListeners have valid types.INFO2007-06-18
12:15:01.519 [Phoenix.] (): 22 Blocks to process for phase "startup".
Order of processing = [dnsserver, database-connections, mailstore,
users-store, localusersrepository, spoolrepository, sockets,
thread-manager, scheduler, James, mailetpackages, matcherpackages,
spoolmanager, connections, remotemanager, pop3server, pop3server-tls,
smtpserver, smtpserver-tls, nntp-repository, nntpserver, fetchmail].

ERROR   2007-06-18 12:15:08.451 [Phoenix.] (): Component named
"smtpserver-tls" failed to pass through the Starting stage. (Reason:
java.net.BindException: Address already in use).
ERROR   2007-06-18 12:15:08.452 [Phoenix.] (): There was an error
running phase "startup" for Block named "smtpserver-tls".
(Reason: Component named "smtpserver-tls" failed to pass through the
Starting stage.
(Reason: java.net.BindException: Address already in
use).).org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "smtpserver-tls" failed to pass through the Starting
stage. (Reason: java.net.BindException: Address already in use).
at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)

at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)

-
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]



Re: Subscribe not working?

2007-04-10 Thread Bernd Fondermann

Hi Gav,

subscription is not moderated.

try sending mail to
 [EMAIL PROTECTED]
if that is the email address you want to subscribe with.

please make sure
- the confirmation mail is not in your spam folder
- you send mail as plain text, not HTML
- you have a non-empty subject line

 Bernd

On 4/9/07, Gav <[EMAIL PROTECTED]> wrote:

I tried subscribing to this and the dev@ mail lists for James yesterday but
so far have not had any confirm messages to complete my subscription.

Can someone confirm that it is working ok, are both lists moderated
acceptance?

As I wont get a reply on list can you keep the cc: in place , thanks.

Gav...


-
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]



Restarting James [Re: Exception while interacting with MBean]

2007-03-19 Thread Bernd Fondermann

Unfortunately, as far as I know, James cannot be restarted without
shutting down and restarting the JVM it runs in. To me, this does not
appear being a MBean-specific issue.

 Bernd

On 3/19/07, Scott Mitchell <[EMAIL PROTECTED]> wrote:

Hello, thanks to a couple of list members help I have gotten James up
and running w/the JMX connector started, and my retry logic working.
However, I am now trying to interact with the published MBeans to
attempt to programmatically stop/start the James process depending on
the status of our backend system. Unfortunately I am getting exceptions
with any operation I attempt. Here are the error messages I get from
JConsole when I attempt to view the
"Phoenix:application=james,topic=Application" MBean. The list of
attribute names comes up, but the values are all set to "Unavailable"
and these exceptions are visible in the James console window:



Mar 19, 2007 12:29:42 PM RequiredModelMBean getAttributes(String[])

SEVERE: Failed to get "blockNames": javax.management.MBeanException:
Operation getBlockNames not in ModelMBeanInfo

Mar 19, 2007 12:29:42 PM RequiredModelMBean getAttributes(String[])

SEVERE: Failed to get "description": javax.management.MBeanException:
Operation getDescription not in ModelMBeanInfo

Mar 19, 2007 12:29:42 PM RequiredModelMBean getAttributes(String[])

SEVERE: Failed to get "displayName": javax.management.MBeanException:
Operation getDisplayName not in ModelMBeanInfo

Mar 19, 2007 12:29:42 PM RequiredModelMBean getAttributes(String[])

SEVERE: Failed to get "homeDirectory": javax.management.MBeanException:
Operation getHomeDirectory not in ModelMBeanInfo

Mar 19, 2007 12:29:42 PM RequiredModelMBean getAttributes(String[])

SEVERE: Failed to get "name": javax.management.MBeanException: Operation
getName not in ModelMBeanInfo

Mar 19, 2007 12:29:42 PM RequiredModelMBean getAttributes(String[])

SEVERE: Failed to get "running": javax.management.MBeanException:
Operation isRunning not in ModelMBeanInfo



I have also tried similar things in code but I get the same "Operation
isRunning not in ModelMBeanInfo" exception there are well. Has anyone
seen this before?



Thanks,

Scott




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



Re: [2] JMX Startup Problem

2007-03-16 Thread Bernd Fondermann

Yes, I also ran into problems like this before. Thanks for posting the hint.
You are very welcome to improve the wiki page you were referring to before.

Bernd

On 3/15/07, Scott Mitchell <[EMAIL PROTECTED]> wrote:


OK, I've got it figured out. I had to update line 92 in the run.bat file to
enclose the %PHOENIX_JVM_OPTS% reference in double quotes. Once I did that
everything worked fine. It appeared that only the first -D was getting
evaluated and it's value was all things that followed it. So:

-Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=10201

effectively became:

-Djava.rmi.server.hostname="localhost -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=10201"

So only "java.rmi.server.hostname" received a value (which was a bogus
value)


Scott Mitchell wrote:
>
> Hi, I am attempting to use the Java 5 JMX server with James. I've followed
> the instructions found on the ConfigureJmx page, but to no avail. It fails
> at startup time with a NullPointerException when exporting the Embeddor. I
> am using a freshly downloaded 2.3 James install with tweaks made to the
> kernel.xml file based on the instructions in the wiki. I have also set the
> PHOENIX_JVM_OPTS variable (since I am on Windows at the moment) to
> configure the JVM's JMX settings. The value I've set is:
>
> -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote.port=10201
>
> Here is my component definition from the kernel.xml for the SystemManager:
>
>  role="org.apache.avalon.phoenix.interfaces.SystemManager"
>
> class="org.apache.avalon.phoenix.components.manager.HostedSystemManager"
> logger="manager" >
>
> And finally, here is the error message I'm getting:
>
> There was an uncaught exception:
> -
> --- Message ---
> Unable to export component=Embeddor as mBean.
> --- Stack Trace ---
> org.apache.avalon.phoenix.interfaces.ManagerException: Unable to export
> componen
> t=Embeddor as mBean.
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> t(AbstractJMXManager.java:126)
> at
> org.apache.avalon.phoenix.components.manager.AbstractSystemManager.do
> Register(AbstractSystemManager.java:273)
> at
> org.apache.avalon.phoenix.components.manager.AbstractSystemManager.re
> gister(AbstractSystemManager.java:106)
> at
> org.apache.avalon.phoenix.components.manager.SubContext.register(SubC
> ontext.java:117)
> at
> org.apache.avalon.phoenix.components.manager.SubContext.register(SubC
> ontext.java:117)
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.registe
> rComponents(DefaultEmbeddor.java:659)
> at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initial
> ize(DefaultEmbeddor.java:245)
> at
> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
> nerUtil.java:244)
> at
> org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
>
> at
> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
>
> at
> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
> at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
> Caused by: java.lang.NullPointerException
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> tTopic(AbstractJMXManager.java:277)
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> tTarget(AbstractJMXManager.java:256)
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> t(AbstractJMXManager.java:119)
> ... 16 more
> rethrown from
> java.lang.NullPointerException
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> tTopic(AbstractJMXManager.java:277)
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> tTarget(AbstractJMXManager.java:256)
> at
> org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor
> t(AbstractJMXManager.java:119)
> at
> org.apache.avalon.phoenix.components.manager.AbstractSystemManager.do
> Register(AbstractSystemManager.java:273)
> at
> org.apache.avalon.ph

Re: Embedding James

2007-02-28 Thread Bernd Fondermann

Hi Michael,

Experimental code for running James within a Spring Framework context
is available at
http://svn.apache.org/repos/asf/james/server/sandbox/spring-integration
So theoretically it should be possible to embed James into any
Spring-aware application including web apps.
But we don't distribute this as a separate release yet. You'd have to
build from code.

But you are very welcome to give it a try. If you run into problems,
please join us on the dev list.
I am very eager to hear about your experiences! :-)

Thanks,
 Bernd

On 2/26/07, Michael Cico <[EMAIL PROTECTED]> wrote:

Is it possible to run James as an embedded SMTP/POP service?  That is, I
want to start it in process via an API call, and not launch it from the
command-line .bat file.

Thanks,

Mike

___
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.



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



Re: failure notice

2007-01-17 Thread Bernd Fondermann

This is the relevant part of the error message:

Caused by: org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "smtpserver" failed to pass through the Starting
stage. (Reason: java.net.BindException: Address already in use:
JVM_Bind).

The port you chose for SMTP is already blocked by another application
on that machine.
Please stop that specific application (could also be a Windows
Service) and try again.

 Bernd

On 1/16/07, khushal sharma <[EMAIL PROTECTED]> wrote:



Note: forwarded message attached.








   

Sucker-punch spam with award-winning protection.

 Try the free Yahoo! Mail Beta.



-- Forwarded message --
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: 14 Jan 2007 16:15:39 -
Subject: failure notice
Hi. This is the qmail-send program at yahoo.com.
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.

:
140.211.11.133 failed after I sent the message.
Remote host said: 552 spam score (7.0) exceeded threshold

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 23610 invoked by uid 60001); 14 Jan 2007 16:15:14 -
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  
h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
  
b=FIpRhgNpfk3t27TX0jYKQPIYnmsR83genACJAbExvn5rzsv3TiYIvgL/O4hcYil2Gnt87aGH3srlAZT9m06YUWx3PlBmDQ5n3IvyCDW1bFnCDIdHFIlFVq5YqE4P76DWuWLEJxs7JsIaJVzlLnIYqrhu8BIJ776whW0Rf2t7yCU=;
X-YMail-OSG: 
yegpmw8VM1kNcx.wEQ6ip5EoWfkQgK59KYblSMb9sKB8RnjV3Mkg3HkZNWiQIlQ3asLAXqgbkIiSWXu6kHzL9WPCnajtaKjh5T.tpngBfQYNs8klL4Dv
Received: from [220.224.45.83] by web58615.mail.re3.yahoo.com via HTTP; Sun, 14 
Jan 2007 08:15:14 PST
Date: Sun, 14 Jan 2007 08:15:14 -0800 (PST)
From: khushal sharma <[EMAIL PROTECTED]>
Subject: i cannot run james in xp professional
To: server-user@james.apache.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-1137101895-1168791314=:22865"
Content-Transfer-Encoding: 8bit
Message-ID: <[EMAIL PROTECTED]>

--0-1137101895-1168791314=:22865
Content-Type: multipart/alternative; boundary="0-1868344624-1168791314=:22865"

--0-1868344624-1168791314=:22865
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hello
  could you help me in running the james in windows xp professional.
  I am getting the error which i have attached in the attachment a 'a.txt'









-
Everyone is raving about the all-new Yahoo! Mail beta.
--0-1868344624-1168791314=:22865
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hello   could you help me in running the james in windows xp professional.  I am getting the error which i have attached in the attachment a 'a.txt'http://www.virtuallandmedia.com/a5/6/k.gif"; border=0>http://www.virtuallandmedia.com/a5/6/h.gif"; border=0>http://www.virtuallandmedia.com/a5/6/u.gif"; border=0>http://www.virtuallandmedia.com/a5/6/s.gif"; border=0>http://www.virtuallandmedia.com/a5/6/h.gif"; 
border=0>http://www.virtuallandmedia.com/a5/6/a.gif"; border=0>http://www.virtuallandmedia.com/a5/6/l.gif"; border=0>
  

Everyone is raving about http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta";>the 
all-new Yahoo! Mail beta.
--0-1868344624-1168791314=:22865--
--0-1137101895-1168791314=:22865
Content-Type: text/plain; name="a.txt"
Content-Description: 2344600040-a.txt
Content-Disposition: inline; filename="a.txt"

Using PHOENIX_HOME:   C:\james\james-2.3.0\james-2.3.0
Using PHOENIX_TMPDIR: 
C:\james\james-with-phoenix-2.3.0-src\dist\james-2.3.0\temp
Using JAVA_HOME:  D:\Program Files\Java\jdk1.5.0

Phoenix 4.2

James Mail Server 2.3.0
Remote Manager Service started plain:4555
POP3 Service started plain:110
There was an uncaught exception:
-
--- Message ---
Failed to start application james.
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException: Failed to start 
application james.
at 
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:379)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
at org.apache.avalon.phoenix.frontends.CL

Re: setpassword -> no such user (but there is)

2007-01-12 Thread Bernd Fondermann

Could it be you are having problems with special keys (like backspace)
on your terminal?
Please try to type the command without typos and then again with using
backspace to correct some typo and see if you get different results

 Bernd

On 1/12/07, fbg111 <[EMAIL PROTECTED]> wrote:


Hi all, apologies for the continuing questions but a new one just came up.
When initially setting up James, I telnetted into remote admin and created
two users, reply and bounce.  However, my MUA is giving an error saying it
can't authenticate the user 'bounce'.  So to troubleshoot I telnetted back
to remote admin and ran listusers, getting this result:

listusers
Existing accounts 2
user: bounce
user: reply

Then I ran setpassword on bounce and got this result:

setpassword bounce test
No such user bounce
setpassword reply test
Unknown command setpassword reply test
setpassword reply test
Password for reply reset
setpassword bounce test
Unknown command setpassword bounce test
setpassword bounce test
No such user bounce

Anyone know what might explain this, especially why it doesn't recognize
'bounce' as a user, even though listusers shows bounce as a user?  Thanks!
--
View this message in context: 
http://www.nabble.com/setpassword--%3E-no-such-user-%28but-there-is%29-tf2963147.html#a8290673
Sent from the James - Users mailing list archive at Nabble.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]



Re: RemoteManagerClient

2007-01-02 Thread Bernd Fondermann

Hi Oliver,
in addition to the hint Norman gave you, you can find the class you
mentioned in svn.
please use
svn checkout http://svn.apache.org/repos/asf/james/postage/trunk
to get the sources you are looking for.

Postage has not yet been released, so you have to build it all by
yourself, but we would be happy to help you out over on the server-dev
list with all problems you may encounter.

 Bernd

On 1/2/07, Oliver Nolden <[EMAIL PROTECTED]> wrote:

Hi all,

  I would like to create mail accounts at JAMES in Java.

  At the JAMES website  I found the JavaDoc for the class 
"RemoteManagerClientClient" 
(org.apache.james.postage.client.RemoteManagerClient), this is exactly what I need. But 
unfortunately I could not find the belonging JAR. Could somebody help please?

  Oliver

 __
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails.
http://mail.yahoo.com



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



Re: Remote Manager Tools

2006-12-15 Thread Bernd Fondermann

there is. in the unit tests for RemoteManager contained in class
RemoteManagerTest we use the TelnetClient from commons-net.jar.

 Bernd

On 12/15/06, Dima Retov <[EMAIL PROTECTED]> wrote:

Is there some library that would connect Remote Manager and execute
some commands.

I wish to write such code:-

RemoteManagerTool rm = new RemoteManagerTool("127.0.0.1", 4555);

if(rm.addUser("John", "pwdpwd"))
{
 // User added
}
else
{
 // Failed
}
rm.close();


I am looking for official code that would always work properly.

--
Best regards,
 Dima  mailto:[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]



Re: Cannot get James 2.3 Final to work with MX4J on Java 5

2006-12-05 Thread Bernd Fondermann

Hi,

I looked into it but to no avail. :-(
If you have something to share to workaround or fix this problem this
is highly appreciated.

For the moment I would also like to stick to my workarounds hints
which in your case would require you to run JDK 1.4 (for James) in
parallel to JDK 5 (for anything else).

 Bernd

On 11/17/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote:

On 11/16/06, Bernd Fondermann <[EMAIL PROTECTED]> wrote:

> thanks for reporting your problem. I have no immediate help but will
> look into the problem over the course of the next days.
> Until then, I quickly found a bugreport from Loom reporting a similar
> problem: http://jira.codehaus.org/browse/LOOM-78
> Maybe there are other reports out somewhere.
>
> BTW, would you like to open a JIRA for this? Thank you,

Done, http://issues.apache.org/jira/browse/JAMES-701.

cheers,
Tom

-
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]



Re: Cannot get James 2.3 Final to work with MX4J on Java 5

2006-11-16 Thread Bernd Fondermann

Thomas,

thanks for reporting your problem. I have no immediate help but will
look into the problem over the course of the next days.
Until then, I quickly found a bugreport from Loom reporting a similar
problem: http://jira.codehaus.org/browse/LOOM-78
Maybe there are other reports out somewhere.

BTW, would you like to open a JIRA for this? Thank you,

 Bernd

On 11/15/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote:

On 11/15/06, Bernd Fondermann <[EMAIL PROTECTED]> wrote:

> You want to get MX4J running under J1.5 and explicitly don't want the
> native JVM MBeanServer to be started, right?

Yep, because I want to enable the MX4J HTTP adapter without changing
James' code.

> If yes, have you tried doing what is suggested under "Use James'
> built-in MBean server" on the wiki page you mentioned, without adding
> any other properties (especially without
> javax.management.builder.initial and com.sun.management.jmxremote.*)?
> This should work fine.

With the default configuration, James starts up just fine (though of
course I don't get JMX).
Enabling James' built-in MBeanServer (as described by the Wiki page)
with RMI only, gives me this exception:

java.lang.ClassNotFoundException: mx4j/tools/naming/NamingService
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at 
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiatorImpl.java:437)
at 
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstantiatorImpl.java:72)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:279)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:227)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:463)
at 
org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startRMIAdaptor(MX4JSystemManager.java:248)
at 
org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initialize(MX4JSystemManager.java:167)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponent(DefaultEmbeddor.java:575)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponents(DefaultEmbeddor.java:551)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(DefaultEmbeddor.java:244)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
at org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)


This is on a freshly downloaded binary James 2.3.0 release with only
the kernel.xml edited as directed in the mentioned Wiki page ("Use
James' built-in MBean server").

The interesting thing is that I can see mx4j-tools.jar in both lib and
bin/lib so it ought to be in the classpath, right ? And both jars are
ok (contain the class mentioned in the exception) and are readable and
have the correct permissions and all.

> If no, and you are ready to go without using MX4J, please follow
> suggestions from "Use existing MBeans server".
> In case I got your intentions wrong, please follow up with more info
> about what you want to achieve.

Well, I don't really care about MX4J, but I do want to be able to see
the JMX info via HTTP which I think is something that the Java 5
default JMX server cannot do unless the MX4J http adaptor is
registered with it in code, right ?

cheers,
TYom

-
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]



Re: Cannot get James 2.3 Final to work with MX4J on Java 5

2006-11-15 Thread Bernd Fondermann

Thomas,

You want to get MX4J running under J1.5 and explicitly don't want the
native JVM MBeanServer to be started, right?

If yes, have you tried doing what is suggested under "Use James'
built-in MBean server" on the wiki page you mentioned, without adding
any other properties (especially without
javax.management.builder.initial and com.sun.management.jmxremote.*)?
This should work fine.

If no, and you are ready to go without using MX4J, please follow
suggestions from "Use existing MBeans server".

In case I got your intentions wrong, please follow up with more info
about what you want to achieve.

 Bernd

On 11/14/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote:

Hi folks,

I'm trying to get the HTTP JMX adapter to work in James, but so far
with little success. Here's the steps that I did:

* I added -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
to the RUN_CMD in phoenix.sh, so that Java uses MX4J as the MBean
server instead of its own. This works as an echo $RUN_CMD in this
shell script shows:

Running Phoenix:
/usr/lib/jvm/java-1.5.0-sun/bin/java -classpath
:/usr/local/lib/james-2.3.0/bin/lib/:/usr/local/lib/james-2.3.0/lib/
-Djava.ext.dirs=/usr/local/lib/james-2.3.0/lib:/usr/local/lib/james-2.3.0/tools/lib
-Djava.security.manager
-Djava.security.policy=jar:file:/usr/local/lib/james-2.3.0/bin/phoenix-loader.jar!/META-INF/java.policy
-Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
-Dphoenix.home=/usr/local/lib/james-2.3.0
-Djava.io.tmpdir=/usr/local/lib/james-2.3.0/temp -jar
/usr/local/lib/james-2.3.0/bin/phoenix-loader.jar


* I enabled the MX4J JMX configuration (both HTTP and RMI) in
kernel.xml as explained in http://wiki.apache.org/james/ConfigureJmx .

However, I get a ClassNotFoundException from MX4J:

java.lang.ClassNotFoundException: mx4j.adaptor.http.HttpAdaptor
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
mx4j.server.interceptor.InvokerMBeanServerInterceptor.instantiate(InvokerMBeanServerInterceptor.java:99)
at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.instantiate(DefaultMBeanServerInterceptor.java:105)
at 
mx4j.server.interceptor.SecurityMBeanServerInterceptor.instantiate(SecurityMBeanServerInterceptor.java:72)
at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.instantiate(DefaultMBeanServerInterceptor.java:105)
at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.instantiate(DefaultMBeanServerInterceptor.java:105)
at 
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.instantiate(ContextClassLoaderMBeanServerInterceptor.java:136)
at mx4j.server.MX4JMBeanServer.instantiateImpl(MX4JMBeanServer.java:681)
at mx4j.server.MX4JMBeanServer.createMBean(MX4JMBeanServer.java:743)
at mx4j.server.MX4JMBeanServer.createMBean(MX4JMBeanServer.java:733)
at 
org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startHttpAdaptor(MX4JSystemManager.java:191)
at 
org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initialize(MX4JSystemManager.java:162)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponent(DefaultEmbeddor.java:575)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponents(DefaultEmbeddor.java:551)
at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(DefaultEmbeddor.java:244)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
at org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)


Apparently, the classloader that MX4J uses (which is one that Phoenix
provides ?) cannot find mx4j-tools.jar. So I decided to put the MX4J
also in ext as well as into the lib folder in the james.sar, but to no
avail. Adding MX4J to the system classpath didn't help either.

I also downloaded MX4J 3.0.1 and copied its jars (except examples)
into both lib and bin/lib,

Re: No pop3sserver and smtpsserver in 2.3.0?

2006-11-09 Thread Bernd Fondermann

Looks like you had a customized assembly.xml, too.

 Bernd

On 11/9/06, Al Caponi <[EMAIL PROTECTED]> wrote:

Hello there,
Has the pop3sserver and smtpsserver been removed from
2.3?
I used to have plain POP3 and SMTP (for local access)
and POP3S and SMTPS (for external access) enabled in
2.2.0. How could I enable this now?

When I try to start James 2.3 with my existing
config.xml (after the modifications from the upgrade
instructions), I get the following error message:

There was an uncaught exception:
-
--- Message ---
There is no coresponding Block or Listener for
configuration data in element "pop3sserver".
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException:
There is no coresponding Block or Listener for
configuration data in element "pop3sserver".
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.verifyConfiguration(DefaultDeployer.java:484)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:352)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
at
org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
at
org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
at
org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown
Source)
at
org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
at
org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)

Regards,
Al



__
What will the world find in 2020?
Leave a part of your 2006 in the Yahoo! Time Capsule. Contribute now!
http://timecapsule.yahoo.com/capsule.php?intl=sg

-
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]



Re: First Time Problem

2006-11-08 Thread Bernd Fondermann

as you are running on a unix, I suggest you detect with "netstat"
command the process attached to the port in question (25, that is per
default). I always use "netstat -pant" for that, "man netstat" gives
you an overview what is possible.

 Bernd

On 11/8/06, wrightkevin <[EMAIL PROTECTED]> wrote:


Hi,

Clearly Stefno has pyschic abilities. It did occur (after a while
admitedely) that perhaps I should run james
as root. But when I do, I get treated to the following:

James Mail Server 2.3.0
Remote Manager Service started plain:4555
POP3 Service started plain:110
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component n amed "smtpserver" failed to pass through the Starting stage.
(Reason: java.net.B indException: Address already in use).
at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail
(LifecycleHelper.java:354)

Now the question is: How can I find out what has a hold of my port? (I was
playing with SpamAssasin a
while back, but that is no longer running).

Kevin Wright

Kevin Wright.


Stefano Bagnara-2 wrote:
>
> You're right! My bad!
>
> Stefano
>
> Bernd Fondermann wrote:
>> the interesting part is:
>>
>> "Component named "pop3server" failed to pass through the Starting stage.
>> (Reason: java.net.BindException: Permission denied)."
>>
>> On 11/8/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
>>> THe pop3 port (110) is already in use.
>>> Maybe you have another service using that port. Stop it and restart
>>> james.
>>
>> For me, "Permission denied" does indicate that this is a problem of
>> not running James with root privileges which are needed everytime a
>> process tries to attach to "privileged" ports (e.g. port number <
>> 1024).
>>
>> The problem Stefano described would result in "BindException: Port
>> already in use"
>>
>>  Bernd
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/First-Time-Problem-tf2594277.html#a7237053
Sent from the James - Users mailing list archive at Nabble.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]



Re: First Time Problem

2006-11-08 Thread Bernd Fondermann

the interesting part is:

"Component named "pop3server" failed to pass through the Starting stage.
(Reason: java.net.BindException: Permission denied)."

On 11/8/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:

THe pop3 port (110) is already in use.
Maybe you have another service using that port. Stop it and restart james.


For me, "Permission denied" does indicate that this is a problem of
not running James with root privileges which are needed everytime a
process tries to attach to "privileged" ports (e.g. port number <
1024).

The problem Stefano described would result in "BindException: Port
already in use"

 Bernd




Stefano

wrightkevin wrote:
> Hi,
> I have just installed James onto my computer (Fedora Linux) and am
> attempting to run run.sh
> but I get this awful set of errors returned:
>
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
> Component named "pop3server" failed to pass through the Starting stage.
> (Reason: java.net.BindException: Permission denied).
> at org.apache.avalon.phoenix.containerkit.liThere was an uncaught
> exception:
> -
> --- Message ---
> Failed to start application james.
> --- Stack Trace ---
> org.apache.avalon.phoenix.interfaces.DeploymentException: Failed to start
> application james.
> at
> 
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:379)
> at
> 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
> at
> 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
> at
> 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
> at
> 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
> at
> 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
> at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
> at
> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
> at
> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
> at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
> Caused by: org.apache.avalon.framework.CascadingException: Failed to start
> application james.
> at
> 
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:313)
> at
> 
org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
> at
> 
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
> ... 14 more
> Caused by: org.apache.avalon.phoenix.interfaces.ApplicationException:
> Component named "pop3server" failed to pass through the Starting stage.
> (Reason: java.net.BindException: Permission denied).
> at
> 
org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186)
> at
> 
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
> at
> 
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)
> ... 16 more
> Caused by:
> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
> Component named "pop3server" failed to pass through the Starting stage.
> (Reason: java.net.BindException: Permission denied).
> at
> 
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
> at
> 
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
> Type  :quit  to exit Vim
> 12,1-8Top
>
>
> Any thoughts?
>
> Kevin Wright



-
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]



Re: NullPointerException when try to start James from RUN or Avalon Phoenix Launcher Main class

2006-11-02 Thread Bernd Fondermann

On 11/2/06, Miroslav Nachev <[EMAIL PROTECTED]> wrote:

Hi,


My idea to run from a simple class is to be able to debug the code from
IDEs like NetBeans and/or JBuilder.


I recommend using remote debugging, having two separate JVM: one for
James, one for IDE.

This is done by enabling debugging in the startup scripts by
commenting in one line in phoenix.sh for Unix and run.bat for Windows
- just look for the related comments.

You then have to prepare your IDE to connect to the debuggee.
Please refer to the Java reference and the documentation of your IDE
how to establish remote debugging.

For how to properly prepare James for remote debugging, please come
back to the list if you encounter problems.

 Bernd

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



Re: Email unsubscription to JAMES does not work

2006-10-29 Thread Bernd Fondermann

Hi Samuel,

Your account has been manually unsubscribed.

  Bernd

Samuel Sadek wrote:
Well it certainly does not work for me - I have checked no junk filters 
apply to JAMES mail addresses, I have also followed the below 
instructions and am still receiving the dreaded emails!!!


From a legal standpoint this is disastrous as this kind of failure 
would be 


a liability to JAMES, particularly where I have numerously attempted to 
unsubscribe at the stated email address, have kept copies of such emails 
being sent to JAMES and still receiving subsequent JAMES-related emails.


Therefore, can the moderator of this mail list please take note of this 
pending upon for immediate fix with the upmost urgency because this 
clearly is a problem for others not just myself.


Thank you.

Samuel.



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



Re: James 3.0-dev

2006-10-28 Thread Bernd Fondermann

Stable branch can be found under
http://svn.apache.org/repos/asf/james/server/branches/v2.3
A production-ready release 2.3.0 will be announced anytime soon.
As far as I know it is nearly identical with 2.3.0rc5.

Trunk is currently under development. 3.0-dev is only a somewhat
arbitrary label. We will decide on the version number later.

 Bernd

On 10/28/06, Robert SKUBIJ <[EMAIL PROTECTED]> wrote:

Stefano Bagnara napisał(a):
> There is no 3.0 version. Maybe the current trunk is labeled 3.0 but this
> is not definitive.
>
> Btw NO, it is not ready for production servers, otherwise we would have
> released it :-)
>
> Some of us use succesfully snapshots from the trunk.
>
> Stefano
>
> Robert SKUBIJ wrote:
>> Is possible use this version for production servers?
>> For ~100 accounts
>>
>>
>> Regards
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
Hmm
Well, what is in trunk repository? Why sources is labaled 3.0-dev?
This is more that 2.3.0 rc5? It is this same?

thx



--
PS. >>> http://link.interia.pl/f19a6


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




Re: Email unsubscription to JAMES does not work

2006-10-26 Thread Bernd Fondermann

it works, I am getting two mails, one CONFIRM and a second GOODBYE.
subscribing works also

 Bernd (hoping he has not blewn up his list moderation :-/ )


On 10/26/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:

When you all send an empty message from your subscribed address to
"[EMAIL PROTECTED]" you should receive a
confirmation request message with the Subject:
"confirm unsubscribe from server-user@james.apache.org"

Replying to that mail will unsubscribe yuo.

Make sure you don't have filters in place to block the confirmation message.

Let us know if this does not work.

Stefano

Stephen Goodey wrote:
> Yus, please fix this.  I tried to unsubscribe over 100 days ago, but I seem
> to still be getting mails :(
>
> Stephen Goodey
> Test-Direct Ltd
> 01772 270949
> -Original Message-
> From: Dave Harms [mailto:[EMAIL PROTECTED]
> Sent: 26 October 2006 17:12
> To: James Users List
> Subject: Re: Email unsubscription to JAMES does not work
>
> On 26/10/2006 Samuel Sadek wrote:
>>  It has become a nuisance for me.
>
> And for me.
>
> Dave



-
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]



Re: Big eMails / Solution for "java.lang.OutOfMemoryError: Java heap space"

2006-10-19 Thread Bernd Fondermann

On 10/19/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Re-Hi,

> Right at the top of phoenix.sh you find a doc section "Environment
> Variable Prequisites" with all supported variables.
> It suggests to use PHOENIX_JVM_OPTS.
>
> Did you try if that works instead of altering JVM_OPTS?

Didn't try this out, but it shout certainly work (since it is included in 
RUN_CMD).

But what I meant where special vars like "MIN_MEMORY" and "MAX_MEMORY" for the 
people
who do not know about "-Xms" and "-Xmx".


Yes, I got that. ;-)

PHOENIX_JVM_OPTS="-Xms64m -Xmx512m "

should do the same job as

JVM_OPTS= $JVM_OPTS "-Xms64m -Xmx512m "

 Bernd

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



Re: Big eMails / Solution for "java.lang.OutOfMemoryError: Java heap space"

2006-10-19 Thread Bernd Fondermann

Hi,

Right at the top of phoenix.sh you find a doc section "Environment
Variable Prequisites" with all supported variables.
It suggests to use PHOENIX_JVM_OPTS.

Did you try if that works instead of altering JVM_OPTS?

 Bernd

On 10/19/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Hello all,

yesterday my James had to transport an eMail with an 18MB attachment. This 
endet up
with an "java.lang.OutOfMemoryError: Java heap space".

The java-geeks here certainly know what to do, but there may be James-User 
which are
less familiar with the java commandline-options.

The solution is to precede the JVM_OPTS in "phoenix.sh" with "-Xms64m -Xmx512m 
".

Just a thought:
The first time I searched the place to put those options in "phoenix.sh" I had 
to
study the half file where they are set. What about some config-vars at the 
beginning
of the file?

Best regards
Stephan


-
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]



Re: My vote for deployment of James as a Web Application

2006-10-10 Thread Bernd Fondermann

On 10/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

We run James in 4 different environments including production.
Management & maintenance of James has always been a grey area because it
does not fall under a J2EE App Server.
In fact it is the only application which we run outside of Weblogic 8.1.

I would be very interested in helping out in this regard.


Great!
Management & maintenance does not require neccessarily to have a J2EE
environment.
Currently, in trunk, there are two parts in James concerned with m&m:
RemoteManager (telnet-based) and the MBeans (JMX). I would recommend
extending these in the first place.

We are also working on having dedicated components for m&m related
stuff, with RemoteManager & MBeans only being the frontends to this.

For starters, check out trunk and look at how current m&m stuff works.
Then you could try to tackle for example JIRA JAMES-645 and attach
code to it.

More detailed discussion should take place on server-dev for everyone
interested.

 Bernd

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



Re: My vote for deployment of James as a Web Application

2006-10-10 Thread Bernd Fondermann

On 10/10/06, David Woldrich <[EMAIL PROTECTED]> wrote:

Steve Brewin wrote:
> Yes, this is right except that counter to David's requirements, without a
> substantial rework of James such a JCA would have to connect to James
> running in a separate JVM. This is because James acquires and manages its
> own resources, which precludes running as a local J2EE managed connector
> that obtains resources, such as threads and DB connections from the J2EE
> app. server.
>
> As this is the case, its hard to see what advantage is gained by
> implementing a James JCA, which I guess is why no-one has done it.


The original post's goal was to run James within a J2EE server. I
never intended to suggest this would be easy or possible at all ;-)
...


> So in the near future, I don't see how your request could be
> fullfilled, except...


But nevertheless, I think it would be a benefitial long time goal.
Even though this is probably not the use case for the majority of
James users.
And JCA would be the right way to do this.


I have contributed to open source projects before, but usually just to
contribute bug fixes or to file bug reports.  I am currently working on
collaboration software at http://cardmeeting.com that I hope to
integrate James with at some point as the project matures and
notifications are needed.  If I didn't have CardMeeting, I'd probably
take you up on your suggestion - I feel like James is one of the most
important Apache top level projects and there's not enough visibility on
it yet.  A lot of glory yet to be had.  :)


:-) thank you for the flowers. stay tuned!

 Bernd

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



Re: hint error message when run ./run.sh in debian linux

2006-10-09 Thread Bernd Fondermann

hi,

another application already blocks the port you want make your POP3
server listen on.
you can check which process this is using something like
  netstat -pant
"man netstat" provides online help.
you would have to stop this process (which can also be another James
instance) and restart James.

 Bernd

On 10/10/06, myepoch <[EMAIL PROTECTED]> wrote:


hint error message when run  ./run.sh  in debian linux.how to solve it

ERROR   2006-10-10 10:09:18.030 [Phoenix.] (): Component named "pop3server"
failed to pass through the Initialization stage. (Reason:
java.net.BindException: Address already in use).
ERROR   2006-10-10 10:09:18.030 [Phoenix.] (): There was an error running
phase "startup" for Block named "pop3server". (Reason: Component named
"pop3server" failed to pass through the Initialization stage. (Reason:
java.net.BindException: Address already in use).).
org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component
named "pop3server" failed to pass through the Initialization stage. (Reason:
java.net.BindException: Address already in use).
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:289)
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:159)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:138)
at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:251)

--
View this message in context: 
http://www.nabble.com/hint-error-message-when-run--.-run.sh--in-debian-linux-tf2414013.html#a6729048
Sent from the James - Users mailing list archive at Nabble.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]



Re: My vote for deployment of James as a Web Application

2006-10-09 Thread Bernd Fondermann

Hi David,

thanks for the feature request. The natural way to deploy a system
like James within a J2EE container would be by wrapping James into a
JCA module.
As far as Geronimo is involved, James components could also be wrapped
into GBeans.

AFAIK, currently nobody is working on either of this.

So in the near future, I don't see how your request could be
fullfilled, except...
...Maybe you would like to participate and contribute to this
worthwhile effort? :-)
I would try to help wherever I can...

 Bernd

On 10/7/06, David Woldrich <[EMAIL PROTECTED]> wrote:

Hello all,

I'm running a website on a single server configuration.  My goal is to
get all of our components running in one VM.  Part of this goal is to
maximize the limited RAM we have by allocating one giganzo JVM heap,
reduce Java process contention for OS scheduling, and limit the need for
remote EJB calling when I want to invoke components, say, from a mailet
into some deployed EJB's I've got.  If everything is deployed on one VM,
theoretically, I should be able to do local EJB calls.

My J2EE server is Geronimo 1.1, I'm launching hypersonic DB from within
Geronimo, and now I'd like to be able to deploy James as an EAR that can
gracefully startup and shutdown with Geronimo - a servlet could manage
the James lifecycle via the init() and destroy() methods.  (If James
doesn't support shutdown without JVM shutdown, then that's a feature
that I would like to see added to James as well.)  I envision the
startup/shutdown order within Geronimo would be:

   1. Hypersonic DB
   2. My Shared Components (custom EJB's, J2C connectors)
   3. James + Mailets (using Hypersonic DB)
   4. My Application

In the future, I imagine the Apache DNS and LDAP Directory server could
also be deployed in Geronimo as well once I feel like it's ready for
primetime, probably started between 1 and 2.

Since there seems to be a lot of active development in both Geronimo and
James right now, I thought now would be a good time to throw in my $0.02
and make the request.  For the time being, I will deploy James in a
separate VM, (but with far fewer system resources than it would get if I
could launch it within Geronimo.)

Cheers,
Dave Woldrich





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



Re: JMX configuration

2006-09-01 Thread Bernd Fondermann

OK, I am able to reproduce both errors.

You have two choices.

Either, go with a 1.4 JDK and keep the original configuration you
posted. ("Use James' built-in MBean server" approach)
Or, stick with 1.5 JDK, use the HostedSystemManager and additionally
(without it you get the second error you posted) change phoenix.sh
according to the wiki. ("Use existing MBeans server" approach)

 Bernd

On 9/1/06, Kevin Burkart <[EMAIL PROTECTED]> wrote:

I tried that too. But with that I get a JMX error :Unable to export
component=Embeddor as mbean .

If anyone has this working I would appreciate if you could post your
kernel.xml and the run.bat file.

Thanks,
Kevin

Bernd Fondermann wrote:
> have you enabled Java5's built-in MBeanServer?
>
> please try to replace MX4JSystemManager with HostedSystemManager
>
> did you change JVM_OPTS  settings in phoenix.sh/bat?
>
> hope this helps,
>
>  Bernd
>
> On 8/31/06, Kevin Burkart <[EMAIL PROTECTED]> wrote:
>> Sorry, my cut and paste must not have put that in there. My JAVA_HOME is
>> set correctly and it comes up as such on the run. I have James running,
>> when I change the Kernel.xml file is when shit hits the fan.
>>
>> Here is my Kernel.xml:
>>
>> 
>>
>> 
>> >
>> class="org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor">
>>
>> >
>> class="org.apache.avalon.phoenix.components.installer.DefaultInstaller"
>> logger="installer"/>
>>
>> >
>> class="org.apache.avalon.phoenix.components.deployer.DefaultDeployer"
>> logger="deployer"/>
>>
>> > role="org.apache.avalon.phoenix.interfaces.LogManager"
>>
>> class="org.apache.avalon.phoenix.components.logger.DefaultLogManager"
>> logger="logs"/>
>>
>> 
>>
>> 
>>
>> 
>>
>> > role="org.apache.avalon.phoenix.interfaces.SystemManager"
>>
>> class="org.apache.avalon.phoenix.components.manager.MX4JSystemManager"
>> logger="manager">
>>
>> 
>> 
>>
>> 
>>  
>>
>> 
>> 
>>
>> 
>> 
>>
>> 
>> 
>>
>> 
>>
>> true
>>
>> 
com.sun.jndi.rmi.registry.RegistryContextFactory
>>
>> 1099
>>
>>
>> 
>>
>> 
>>
>> 
>> 
>> >
>> class="org.apache.avalon.phoenix.components.kernel.DefaultKernel"
>> logger="kernel"/>
>>
>> > role="org.apache.avalon.phoenix.interfaces.ConfigurationRepository"
>>
>> 
class="org.apache.avalon.phoenix.components.configuration.DefaultConfigurationRepository"
>>
>> logger="config"/>
>>
>> 
>>
>> > role="org.apache.avalon.phoenix.interfaces.ConfigurationValidator"
>>
>> 
class="org.apache.avalon.phoenix.components.validator.DefaultConfigurationValidator"
>>
>> logger="validator">
>> > uri="http://relaxng.org/ns/structure/1.0"/>
>> 
>>
>> > role="org.apache.avalon.phoenix.interfaces.ClassLoaderManager"
>>
>> 
class="org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager"
>>
>> logger="classes"/>
>> > 
role="org.apache.avalon.phoenix.components.extensions.pkgmgr.ExtensionManager"
>>
>>
>> 
class="org.apache.avalon.phoenix.components.extensions.DefaultExtensionManager"
>>
>> logger="packages"/>
>> 
>>
>> 
>> >
>> class="org.apache.avalon.phoenix.components.monitor.DefaultDeploymentMonitor"
>>
>> logger="monitor">
>> 
>> 1000
>> 
>>
>> > role="org.apache.excalibur.instrument.InstrumentManager"
>>
>> class="org.apache.excalibur.instrument.manager.NoopInstrumentManager"
>> logger="instrument"/>
>>
>> 
>> 
>> 
>>
>>
>>
>> Mark Fitch wrote:
>

Re: JMX configuration

2006-09-01 Thread Bernd Fondermann

have you enabled Java5's built-in MBeanServer?

please try to replace MX4JSystemManager with HostedSystemManager

did you change JVM_OPTS  settings in phoenix.sh/bat?

hope this helps,

 Bernd

On 8/31/06, Kevin Burkart <[EMAIL PROTECTED]> wrote:

Sorry, my cut and paste must not have put that in there. My JAVA_HOME is
set correctly and it comes up as such on the run. I have James running,
when I change the Kernel.xml file is when shit hits the fan.

Here is my Kernel.xml:
























 












true

com.sun.jndi.rmi.registry.RegistryContextFactory
1099















http://relaxng.org/ns/structure/1.0"/>









1000










Mark Fitch wrote:
> Kevin,
>
> It looks to me like you have not defined the location of your java install
> to James.  You have to edit your run.bat file (if you use Windows) in the
> james\bin folder. Add the following line of code to the beginning of the
> file:
>
> set JAVA_HOME=YOURJAVADIRECTORY
>
> change the YOURJAVADIRECTORY to the location of your java folder (probably
> C:\Program Files\java\jdk_1.5 or something like that).  Make sure this is
> the first line of code after all of the beginning rem statements (before the
> line: if not "%JAVA_HOME%"=="" goto found_java).
>
> Thanks,
> --Mark
>
> -- Original Message ---
> From: Kevin Burkart <[EMAIL PROTECTED]>
> To: server-user@james.apache.org
> Sent: Thu, 31 Aug 2006 11:26:25 -0400
> Subject: JMX configuration
>
>
>> I am trying to get JMX working with the James 2.3 release and jre
>> 1.5. I change the kernel.xml just like the
>> wiki.apache.com/james/configureJMX says and try to run but it I get
>> this error
>>
>> Using PHOENIX_HOME:   C:\james-2.3.0rc2
>> Using PHOENIX_TMPDIR: C:\james-2.3.0rc2\temp
>> Using JAVA_HOME:
>>
>> Phoenix 4.2
>>
>> There was an uncaught exception:
>> -
>> --- Message ---
>> The MBean class could not be loaded by the context classloader
>> --- Stack Trace ---
>> javax.management.ReflectionException: The MBean class could not be
>> loaded by the
>>  context classloader
>> at
>> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(Unknown Sourc
>> e)
>> at
>> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(Unknown Sourc
>> e)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Unk
>> nown Source)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Unk
>> nown Source)
>> at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(Unknown Source)
>>  at
>>
> org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startR
>
>> MIAdaptor(MX4JSystemManager.java:248)
>> at
>> org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initia
>> lize(MX4JSystemManager.java:167)
>> at
>> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
>> nerUtil.java:244)
>> at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupCo
>> mponent(DefaultEmbeddor.java:575)
>> at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupCo
>> mponents(DefaultEmbeddor.java:551)
>> at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initial
>> ize(DefaultEmbeddor.java:244)
>> at
>> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
>> nerUtil.java:244)
>> at
>> org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
>>
>> at
>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
>>
>> at
>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)at
>> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>  at java.lang.reflect.Method.invoke(Unknown Source)at
>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
>>  at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
>> Caused by: java.lang.ClassNotFoundException:
>>
> mx4j/tools/naming/NamingService
>
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Unknown Source)
>> ... 21 more
>> rethrown from
>> java.lang.ClassNotFoundException: mx4j/tools/naming/NamingService
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Unknown Source)
>> at
>> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(Unknown Sourc
>> e)
>

Re: James javadocs...

2006-08-18 Thread Bernd Fondermann

Cool, thanks!

On 8/18/06, Norman Maurer <[EMAIL PROTECTED]> wrote:

Hi guys,

i just fixed it.

bye
Norman


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



Re: Admin console

2006-08-18 Thread Bernd Fondermann

On 8/17/06, Marc Oesch <[EMAIL PROTECTED]> wrote:

Bernd,

Somebody wrote up a list in the Wiki. This was the web admin link I
wanted to ask about earlier...

http://wiki.apache.org/james/WebAdminConsole

got the URL wrong in my earlier mail, sorry :)

If I got your answer right, the preferred way to go is JMX and the
entry in the Wiki is just a plan, ie. there is no active work on a web
admin tool for JAMES going on or planned ?


Yes. The JMX infrastructure within the server is well established and
can be extended quite easily.
A web console would raise questions like:
Do we embed a webserver or provide a webservice on server side?
How do we handle security/login?
How do pages get build? (UI, Framework, WebDesign)?

There is no work on a web based console that I am aware of.

Rather than a web _admin_ console, I would like to have a pure-java
ASF-licensed web-based _mail_ application. I never found a good one.
(But maybe I missed one.)

 Bernd

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



Re: James javadocs...

2006-08-17 Thread Bernd Fondermann

you are right, the mailet link is broken. thanks for reporting!

 Bernd

On 8/17/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote:

The one mentioned on the james website seems to be broken: -
http://james.apache.org/server/mailet/index.html

By the way, thanks alot for the link.

Santosh.
Bernd Fondermann wrote:
> works fine for me: http://james.apache.org/server/apidocs/index.html
>
> what's the exact problem you have?
>
>  Bernd
>
> On 8/17/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote:
>> ...don't seem to be accessible.
>>
>> I didn't check thoroughly though. Please verify.
>>
>> Santosh.
>>
>> -
>> 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]




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



Re: James javadocs...

2006-08-17 Thread Bernd Fondermann

works fine for me: http://james.apache.org/server/apidocs/index.html

what's the exact problem you have?

 Bernd

On 8/17/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote:

...don't seem to be accessible.

I didn't check thoroughly though. Please verify.

Santosh.

-
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]



Re: Admin console

2006-08-17 Thread Bernd Fondermann

Lately, we improved management functionality in the "RemoteManager" (a
telnet console) and in its JMX counterpart (can be accessed using JMX
consoles like MC4J). This is available in the nightly builds.

I'd recommend using JMX ("Java Management Extensions") over telnet or
a web app as it is more lightweight to implement and setup, yet
offering the same functionality. JMX is the "standard Java way" to
provide server management.

for more information, see http://wiki.apache.org/james/ConfigureJmx

If there is any missing management functionality (and I _bet_ there is
:-)) I'd be happy if users post their feature requests here on the
list.

 Bernd

On 8/16/06, Marc Oesch <[EMAIL PROTECTED]> wrote:

Hello,

>   i was looking for graphical user interface for james which i found on the 
sourceForge.net site

Are you referring to this project ?

https://sourceforge.net/projects/ajaconsole/

I was going to ask in general if there are other projects in the
meantime ? Found this proposal in the James Wiki but I am not sure if
anyone is working on web admin tools for James...

https://sourceforge.net/projects/ajaconsole/

Could this be a planned feature for James 2.4 or 3.0 ?

Thanks,

-
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]



Re: JAMES Administration

2006-07-25 Thread Bernd Fondermann

On 7/25/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:

Bernd Fondermann wrote:
> However, in James 2.2.0 and the upcoming 2.3 release, the support for
> JMX within James is limited.
>
> But, work has started to put more management operations in. This can
> currently be found in source code only (in the "trunk"). It covers
> more or less all operations already available in the telnet console
> (RemoteManager).
> This functionality will become available in the next major release, I
> guess.

Nightly builds for the current trunk are available here if you want to
test it:
http://people.apache.org/builds/james/nightly/


Exactly, and more information about how to use JMX can be found here:
http://wiki.apache.org/james/ConfigureJmx

 Bernd

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



Re: JAMES Administration

2006-07-25 Thread Bernd Fondermann

Hi,

Mark, thanks for bringing this topic on the table.

In the Java world, JMX (Java Management Extensions) is the weapon of
choice for the use cases you are describing. (see
http://java.sun.com/j2se/1.5.0/docs/guide/jmx/index.html)

However, in James 2.2.0 and the upcoming 2.3 release, the support for
JMX within James is limited.

But, work has started to put more management operations in. This can
currently be found in source code only (in the "trunk"). It covers
more or less all operations already available in the telnet console
(RemoteManager).
This functionality will become available in the next major release, I guess.

So this is not an answer to your question, but I am interested in
hearing from you and others what management operations are currently
missing to do the administrative work, so we can steadily improve
James' JMX interface.

When talking about manipulating the config file(s). There are many,
many configuration items within James and the list is growing for the
upcoming 2.3.
It think it would be cool to have a wizzard-like installer application
which is able to present and alter the config file content in a
user-friendly way, separating basic from advanced options, presenting
help texts, guiding the user through the whole setup process.
Maybe someone wants to start some effort in this direction?

 Bernd

On 7/25/06, Mark Brennand <[EMAIL PROTECTED]> wrote:

I am interested in what Administration solutions other JAMES users are
currently using. Still remotely managing via telnet?? Have built custom
management interface?? Using an open source management tool that I haven't
heard of??

Obviously the DB backend lends itself to direct manipulation but I am not
ready to switch all storage mail over to DB just yet. I am, however, ready
to generate a system that can directly manipulate config and environment
vars, offer reporting and analysis via log parsing etc

It would be great to hear what everyone else is doing (or even thinking of
doing).

Regards MB





-
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]



Re: Postage "failed to setup" error

2006-07-18 Thread Bernd Fondermann

Hi Vincenzo,

Thanks for trying Postage!

My first guess would be the changes introduced in revision 419513.

Unfortunatly, I am not using the latest from James 2.3 branch. But this 
reminds me to update my local env as soon as possible to keep Postage 
integration code up-to-date with James.


Tomorrow I can revisit this issue. Maybe you could try to workaround 
this. Either by using an older James 2.3 or by improving 
SMTPMailSink/SimpleSMTPServerConfiguration (and provide a patch :-), 
that would be cool).


(Please note that currently you could commit changes to Postage SVN 
directly by yourself, but SVN notifications are not yet activated, 
AFAIK, so that is stopping me from committing there.)


  Bernd


Vincenzo Gianferrari Pini wrote:

Hi Bernd,

I'm experimenting Postage (with James 2.3.0b3, both compiled and ran 
under jdk 1.4.2), but I'm always getting the following error:


-
Buildfile: build.xml

initialize:

run-debug:
[java] 18-lug-2006 14.47.33 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int1
[java] 18-lug-2006 14.47.33 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int2
[java] 18-lug-2006 14.47.33 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int3
[java] 18-lug-2006 14.47.34 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int4
[java] 18-lug-2006 14.47.34 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int5
[java] 18-lug-2006 14.47.34 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int6
[java] 18-lug-2006 14.47.34 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int7
[java] 18-lug-2006 14.47.34 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int8
[java] 18-lug-2006 14.47.35 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int9
[java] 18-lug-2006 14.47.35 org.apache.james.postage.PostageRunner 
addUser

[java] INFO: user created: test_int10
[java] 18-lug-2006 14.47.36 org.apache.james.postage.PostageRunner 
setupInboundMailing

[java] INFO: availability of inbound mailing verified
[java] 18-lug-2006 14.47.36 org.apache.james.postage.PostageRunner 
setupInboundMailing

[java] INFO: availability of inbound mailing verified
[java] 18-lug-2006 14.47.36 org.apache.james.postage.PostageRunner 
setupInboundMailing

[java] INFO: availability of inbound mailing verified
[java] 18-lug-2006 14.47.36 org.apache.james.postage.PostageRunner 
setupInboundMailingChecker
[java] INFO: availability of checking for inbound mailing (POP3) 
verified
[java] 18-lug-2006 14.47.36 
org.apache.james.postage.smtpserver.AvalonToPostageLogger error
[java] INFO: No messageHandler configured. Check that 
SendMailHandler is configured in the SMTPHandlerChain
[java] 18-lug-2006 14.47.36 org.apache.james.postage.PostageRunner 
execute

[java] GRAVE: could not even start the runner successfully
[java] org.apache.james.postage.StartupException: failed to setup
[java] at 
org.apache.james.postage.PostageRunner.setupForwardedMailInterceptor(PostageRunner.java:405) 

[java] at 
org.apache.james.postage.PostageRunner.execute(PostageRunner.java:107)
[java] at 
org.apache.james.postage.PostageRunner.run(PostageRunner.java:158)

[java] at org.apache.james.postage.Main.runScenarios(Main.java:82)
[java] at org.apache.james.postage.Main.main(Main.java:66)

BUILD SUCCESSFUL



James itself runs perfectly (obiously when  is disabled in 
RemoteDelivery).


Any hint?

Thanks,

Vincenzo

-
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]



Re: Using JMS from a Mailet

2006-07-12 Thread Bernd Fondermann

Scott Stephany wrote:


I've been playing around with JMX in my mailets as well - with JDK1.5 it
works great.  I was having trouble using the MBeanServer that comes with the
JDK, though, to use the MBeans created with James.  Couldn't find the
org.apache.avalon.phoenix.components.manager.HostedSystemManager class as
defined in the phoenix kernel.xml file as described in the Wiki.


Are you running James 2.2.0 or the 2.3 branch?
What exception do you get on startup?
Can you post the kernel.xml you are using?

Thanks,

  Bernd

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



Re: Integrate James Wih Web Application

2006-07-02 Thread Bernd Fondermann

Hi Kumarasamy,

J2EE Servers like Weblogic are required to support sending out email
through JavaMail (J2EE 1.4 Spec, 2.6.9).

Receiving mail requires a bit more effort: You would have to poll a
James POP3 account from within your web application.

Hope that helps,

 Bernd

On 6/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Dear All,
I'm very much new to James. I have installed and configured the James. And i'm 
able to run the JAMES using run.bat and through console i'm able send mails and 
i can receive in outlook also.

My doubt is somethink like I want to run this JAMES for sending and receiving 
mails in my web application running on Weblogic.

In my SAR-INF/config.xml i have changed the following entries..

[EMAIL PROTECTED]


10.0.0.2 



110

mymailserver.com
12




25

mymailserver.com
36
0



This is what i ahev changed in my config file. I think i have to configure 
Spool and JDBC to access the mail.

My another doubt is when i'm running my webapplication i have to run JAMES as a 
seperate service or how to tell my web application to catch the JAMES to send 
and receive mails.
Thanks and Regards
Kumarasamy.M

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/server-user@james.apache.org/topic.html

-
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]



Re: there is a file in the way?

2006-06-21 Thread Bernd Fondermann

Chad Lloyd wrote:
Yes, everything is the same, and there wasn't actually an outage - I was 
anticipating a power outage due to storm conditions, so I shut down 
everything normally. After the storm had passed, I started the server up 
as per normal, and saw this message in the log. I actually got a number 
of messages like this in the log. do I need to shut down james, and 
then remove everything from C:\james\james-2.2.0\apps\james\SAR-INF\lib\ 
before starting up again?


I don't think so. To double-check you could try sending test mails in 
and out to be sure that everything is running fine.


  Bernd

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



Re: there is a file in the way?

2006-06-21 Thread Bernd Fondermann

Chad Lloyd wrote:

Hello;

I am just restarting my James server after a power shutdown, and I am getting 
this message:


2006-06-21 10:27:44.546 [Phoenix.] (): Installing Sar located at 
file:/C:/james/james-2.2.0/apps/james.sar.
WARN2006-06-21 10:27:44.859 [Phoenix.] (): The file SAR-INF/lib/mm.mysql.LICENCE can 
not be extracted from the Sar "file:/C:/james/james-2.2.0/apps/james.sar" into 
directory C:\james\james-2.2.0\apps\james\SAR-INF\lib\mm.mysql.LICENCE because there is a 
file in the way.

Does anyone know what this means? Thanks.


Probably this very file is already at the target location from a 
previous start? Please try to remove the file and restart.
Are you trying to start James with the same user/priviledges as it was 
before the outage?


  Bernd

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



Re: HELP!! Thousands of files stuck in spool at 'transport' state

2006-06-21 Thread Bernd Fondermann

Stefano Bagnara wrote:



Instead, about the use of multihomed ips I don't want to rediscuss a 
thing that the RFC say has been controversial and does not specify the 
correct way.


The sentence from the rfc is: "The question of whether a sender should
   attempt retries using the different addresses of a multihomed host
   has been controversial. The main argument for using the multiple
   addresses is that it maximizes the probability of timely delivery,
   and indeed sometimes the probability of any delivery; the counter-
   argument is that it may result in unnecessary resource use"

I just want to know if anyone will put a veto on the the patch attached 
to this issue: http://issues.apache.org/jira/browse/JAMES-358


+1 to apply the patch (config option to deliver to 1 address only)



I'll probably start a real vote soon if I don't understand the response 
to this.


What I really know is that without that patch one of my production 
server was not able to deliver my 200K mails per day (200K mails in a 
single hour, but only once a day), having a lot of non working host. 
This means that my outgoing was growing to much and to increase the 
probability of delivery to non working servers I decreased the 
probability to deliver most of my mail.


Stefano


-
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]



Re: Mailing list

2006-06-16 Thread Bernd Fondermann

Could you be more specific about your setup and what you are trying to achieve?
Did you check log files?
Did you check your network/firewall configuration?


On 6/16/06, Rocky Castaneda (Fresh Studio) <[EMAIL PROTECTED]> wrote:

Im not receiving any mails from my email server through the mailing list
that I configured why is this?



-rocky





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



Re: James SIG language

2006-06-02 Thread Bernd Fondermann

"interface" = "network interface" = "network device"

in very simplified terms network interfaces are "logical devices" like 
loopback/localhost (127.0.0.1), 1st network card (e.g. 196.254.0.1)..nth 
network card (e.g. 196.254.0.N), dsl devices and so on. more or less 
everything having an IP address on the local machine. sometimes there is 
a real hardware device related to it.


if you want to specify a socket to "bind to all interfaces", you attach 
it to IP 0.0.0.0, which means: every TCP/IP device around.


(only to clarify, not a scientific answer)

  Bernd

Michael Masiak wrote:

I apologize up front for this question if it’s uninformed.

I’ve read the phrase “bind to all interfaces” in several threads from this
group.  I'm not certain what is intended by interfaces here--is this
sockets?  I understand binding sockets and binding languages, but never have
seen this usage.

Thanks,
Mike Masiak

-
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]



Re: com.sun.mail.util.SharedByteArrayInputStream

2006-05-15 Thread Bernd Fondermann

Can't wait to see that! :-)

Bing Ran wrote:

Hi Stefano,

Thanks for your interest.  I'll try to pack it up a bit in the next
few days pending on available time. Once some part of it is working,
I'll submit it for your review.


Bing

On 5/15/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:


Hi Bing,

I'm really interested in your work.
Can you submit it to JIRA for us to review? There is nothing better than
a code to look at!
I would like to see your corrent efforts even if they are uncomplete!

Thank you,
Stefano

Bing Ran wrote:
> Hey thanks, Stefano.
>
> My code was a few weeks behind the "current". I'm happy to see the use
> of javamail 1.4.
>
> For the last few weeks I have been using some of my time to replace
> the Avalon IOC with the Spring framework, hoping that some of my team
> developers who used to feel alienated by Avalon will feel right at
> home and start to develop on top of James. It has not been as smooth
> as I'd hoped, because the code also uses quite bit of cornerstone
> packages, which also depend on Avalon IOC and the XML configuration
> format.  Right now I'm not ready to remove the dependency on
> cornerstone yet, due to time constraint.
>
> IMHO, the sooner we remove Avalon from James, the sooner we'll see
> more people start developing with James.
>
> Ciao,
>
> Bing


-
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]



Re: Creating/Adding a user to James

2006-05-15 Thread Bernd Fondermann

Telnet is the easiest way that I know of.
You could write a short program which instruments telnet to add users. 
You could even put a GUI on top of that.


There is another way using JMX.
To use it, you'd have to enable JMX in "conf/kernel.xml", start James 
and connect to it using a JMX console which is able to talk to MX4J 1.x. 
(This is the very short version of an HOW-TO.)


  Bernd

Santosh wrote:

Hello,
 
Does the James API provide any way to create/add a new user?

They only way I know is through Telnet.
 
Thanks,

Santosh.
 




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



Re: »Ø¸´£º how to add users in a programming way?

2006-03-28 Thread Bernd Fondermann
alternatively, you could use the RemoteManager commands (adduser,
deluser) programmatically.

see: http://james.apache.org/adding_users_2_1.html

On 3/28/06, -=Kobye=- <[EMAIL PROTECTED]> wrote:
>  hi,Phil,
>
> you mean, we  can directly operate the DB,
> when using   a DB repository?
>
> It sounds a good ide.
> I will try it.
>
>
> thanks
>
> Best Wishes
>
> >
> >
>
>
> --
> I love Java!
> I love Sports!
> I love this Game !
>
> home:http://www.jsports.org
> blog:
> http://blog.csdn.net/jsports
> http://blog.matrix.org.cn/page/jsports
>
>

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



Re: Running current trunk as a NT service

2006-03-24 Thread Bernd Fondermann
> Ok. I've downloaded version 3.2.0 and replaced wrapper.exe, wrapper.jar,
> wrapper.dll.
> Then I installed the service using "wrapper -i ..\conf\wrapper.conf".
> When I start the service either using "net start James Mail Server 2.3.0" or
> "wrapper -t ..\conf\wrapper.conf" the same error appears on the logs:
>
> FATAL  | wrapper  | 2006/03/24 10:19:38 | ERROR: Could not write pid file
> /var/run/phoenix.pid: Das System kann den angegebenen Pfad nicht finden.
> (0x3)
>
> The service, obviously, doesn't start.

look at http://wrapper.tanukisoftware.org/doc/english/troubleshooting.html
under "I get an error about not being able to write a pid file when
starting the Wrapper."

hope this helps.

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



Re: JVM exiting abnormally. Shutting down Phoenix

2006-03-23 Thread Bernd Fondermann
Gaurav,

just to make sure you are not running into non-Java problems: did you
have a look at the linux syslog for related logs at crash time?

something like
   localhost kernel: Out of Memory: Killed process 28272 (java).


On 3/23/06, Gaurav Handa <[EMAIL PROTECTED]> wrote:
> Hi Stefano,
>
> There is a difference of OS versions on the two servers.
>
> Server A (running fine) - Red Hat Linux release 8.0 (Psyche)
> Server B (shutting down) - Red Hat Linux release 9 (Shrike)
>
> Traffic wise, Server B handles more mails and Server A does not have that
> much load.
>
> JVM version is same on both the servers.
>
> Can I try adding some debug statements in the code of Server B so that the
> next time it crashes, I get more informational log messages? I think the
> error is comming from the underlying avalon phoenix framework. Please let me
> know the classes in which i shall add some debug messages. I would also try
> checking for some more differences between the two servers.
>
> -Gaurav
>
>
>
> On 3/23/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
> >
> > Gaurav Handa wrote:
> > > The problem is specific to only one server. And after I've increased the
> > JVM
> > > heap size on this server, the frequency of shutdown has decreased from
> > > 'thrice a day' to 'once in 2 days' (a drastic improvement).
> >
> > Are the servers configurations identical?
> > Operative System / Hardware / Java virtual machine / James Configuration
> >
> > Is the mail traffic of the server similar? (same type of messages,
> > medium size, etc).
> >
> > We can't exclude VM problems: try to upgrade you jvm to the latest one.
> > (You are using an OLD 1.4.2_08). Try the 1.4.2_11 or the 5.0 Update 6.
> >
> > Stefano
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> rgds,
> gaurav handa
>
>

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



Re: phoenix log

2006-03-22 Thread Bernd Fondermann

Bernd Fondermann wrote:

Seems to be a problem with excalibur-cli-1.0.jar.
I'll have a look if I can find the source code somewhere.


Anyone knows where to find the code for "Phoenix 4.2"?

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



Re: phoenix log

2006-03-22 Thread Bernd Fondermann
On 3/21/06, Walker, Aaron  L <[EMAIL PROTECTED]> wrote:
> I feel like a troublemaker.  Like I say, logs/phoenix.log does not get
> touched when I try to pass options, because it doesn't get far enough.

That's the kind of trouble I appreciate ;-)

I get the very same error on the Linux command line.

Seems to be a problem with excalibur-cli-1.0.jar.
I'll have a look if I can find the source code somewhere.

Would you like to file a JIRA bug report containing the stack trace
you provided?

Anyone else reproducing this?

  Bernd

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



Re: use as relay with multiply gateways per domain

2006-03-14 Thread Bernd Fondermann
Norman,
are you looking for this?: http://wiki.apache.org/james/SmartOrSecondaryHost

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



Re: Suitable Mail Client for James

2006-03-01 Thread Bernd Fondermann
what happens if you execute the following on a command line:

telnet localhost 995


On 3/1/06, nurularesya ;p <[EMAIL PROTECTED]> wrote:
> hmm thanks...but why outlook express said..server connection error..
>
>   --in outlook express i configure
>
>   user : [EMAIL PROTECTED]
>
>   pop server : localhost
> smtp server : localhost
>
>   pop port : 995
>   smtp port : 465
>
>   -end-
>
>   in config.xml i configure
>
>   
>   localhost
>   
>
>   
>   995 //used SSL/TLS
>   
>
>   
>   465
>//used SSL/TLS
>
>   end
>
>   after configuration, i try to connect the mail client with james server but 
> it's doesnt work..any suggestion?
>
>   or any mail client suitable for james besides outlook express?and what 
> about breeze?its one of the mail client?
>
>   thanks,
>   nurularesya
>
>Bernd Fondermann <[EMAIL PROTECTED]> wrote:  every client supporting POP3 
> + SMTP should work like a breeze.
>
> On 3/1/06, nurularesya ;p  wrote:
> > hello there...
> >
> >  can i know..when i use james as mail server..what a suitable mail  client 
> > should i used?i've try to used gmail with outlook express as  mail client 
> > but its doesnt work..how about james user's?can anyone tell  me what a 
> > suitable mail client for james besides outlook xpress?
> >
> >   thanks,
> >   nurularesya
> >
> >
> > -
> > Yahoo! Mail
> > Bring photos to life! New PhotoMail  makes sharing a breeze.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Yahoo! Mail
> Bring photos to life! New PhotoMail  makes sharing a breeze.
>

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



Re: Suitable Mail Client for James

2006-03-01 Thread Bernd Fondermann
every client supporting POP3 + SMTP should work like a breeze.

On 3/1/06, nurularesya ;p <[EMAIL PROTECTED]> wrote:
> hello there...
>
>   can i know..when i use james as mail server..what a suitable mail  client 
> should i used?i've try to used gmail with outlook express as  mail client but 
> its doesnt work..how about james user's?can anyone tell  me what a suitable 
> mail client for james besides outlook xpress?
>
>   thanks,
>   nurularesya
>
>
> -
> Yahoo! Mail
> Bring photos to life! New PhotoMail  makes sharing a breeze.
>

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



Re: encoding and ü and ß!

2006-02-20 Thread Bernd Fondermann
On transport, non-ASCII chars are encoded as shown in the example you provided.
Your mail client decodes them back into a user readable format, i. e.
the original non-ASCII chars.
This is a rather general fact and completely normal.

That said, could you please provide more specific information about
your setup and where James is involved in there?

Another question: When you read this very email, do you see correctly
the umlaute you sent out? => Gl=FCckwunsch! .. it should be
Glückwunsch.
If not, it could be an issue with your email client's configuration.


On 2/20/06, Norman Maurer <[EMAIL PROTECTED]> wrote:
> Hi i have stragne problems with some special chars.
>
> When i get an email with ß or ü for example i only get something like :
>
>
> What can be the problem ?
>
>
>
>
>
> -
> 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]



Re: Bounce mailet bug?

2006-01-25 Thread Bernd Fondermann
come on, don't give up so fast.

go back to the JIRA page, hit "log in" and you can read:
>>
Welcome to Apache's JIRA issue tracker!

Anyone is free to find issues. You must register and login if you want
to create, comment, vote, or watch issues.
<<

so take a few seconds, register and participate.
James needs your user feedback, input and contribution.

please take into account the countless time which went into building
it, all being there at no additional cost than that.

you could even directly append the fix, which would be great.

thanks,

Bernd

On 25/01/06, Gabor Kincses <[EMAIL PROTECTED]> wrote:
>
>
> --- Stefano Bagnara <[EMAIL PROTECTED]> wrote:
>
> > Gabor Kincses wrote:
> > > The Bounce mailet extends AbstractNotify which
> > extends
> > > AbstractRedirect that carries most of the
> > > functionality.
> >
> > Can you post the bug to our issue tracker?
> > http://issues.apache.org/jira/browse/JAMES
>
> Nope, can't find the new issue button.
>
> 86% unassigned?  Not interested in adding yet another
> dead issue.  It's a 2-minute fix, I had already spent
> 7-minutes staring at the JIRA page in utter
> befuddlement.  Makes no sense to me.
>
> Sorry,
> Gabor
>
> >
> > Thank you,
> > Stefano
> >
> > > The setSubjectPrefix() method is implemented in
> > > AbstractRedirect that observes the incoming
> > subject's
> > > charset.  AbstractNotify in turns reimplements
> > > setSubjectPrefix() without observing the charset,
> > > possibly resulting in platform default encoding of
> > the
> > > subject.  This may not be desirable.
> > >
> > > More specifically:
> > > Subject: =?ISO-8859-5?Q?DE=E1=DE=D1=DD=EF=DA?=
> > >
> > > becomes:
> > > Subject:
> > >
> > =?Cp1252?Q?undelivered_mail_=3F=3F=3F=3F=3F=3F=3F?=
> > >
> > > Seems wrong to me.  Removing the
> > > AbstractNotify.setSubjectPrefix() seems to fix the
> > > problem.
> > >
> > > Hope this helps,
> > > Gabor
> > >
> > > Gabor Kincses
> > > Running Mandrake Linux 10.0
> > >
> > > __
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> > >
> >

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



  1   2   >