You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Magnus Olstad Hansen <ma...@rialtoforlag.no> on 2008/03/25 18:22:43 UTC
No reply to commands / only 220 greeting
Hello!
I've been working a while to setup a minimalistic James server to handle
some incoming mail based data. At first I thought it was my
disassembling and stripping of James components that caused this, but it
seems I have no more luck with out-of-the-box James 2.3.1.
Starting with James 2.3.1 out of the box, and all I've done with
config.xml is multiply the ports by 1000 because I'll not be running
James as root. James seems to start fine:
james@iaaserver:~/test/james-2.3.1/bin$ ./run.sh
Using PHOENIX_HOME: /home/james/test/james-2.3.1
Using PHOENIX_TMPDIR: /home/james/test/james-2.3.1/temp
Using JAVA_HOME: /usr
Running Phoenix:
Phoenix 4.2
James Mail Server 2.3.1
Remote Manager Service started plain:4555
POP3 Service started plain:11000
SMTP Service started plain:25000
NNTP Service started plain:11900
FetchMail Disabled
...however it seems James is not interested in my client after saying
220 (...) to it. Heres what happens:
james@iaaserver:~$ nc interactive-id.no 25000
220 iaaserver.<mydomain> SMTP Server (JAMES SMTP Server 2.3.1) ready
Tue, 25 Mar 2008 18:03:36 +0100 (CET)
HELO test.no
EHLO test.no
QUIT
QUIT
QUIT
No response... I must be missing something really important that I've
just not noticed when I've previously set up James...
As for logs, I don't see anything that look like an error. Heres what
the SMTP component spits out at init (at DEBUG level, this is actually
from my stripped down server config):
25/03/08 18:13:41 INFO smtpserver: Authorized addresses:
[127.0.0.0/255.0.0.0, <myip>/255.255.255.255]
25/03/08 18:13:41 INFO smtpserver: No maximum message size is enforced
for this server.
25/03/08 18:13:41 INFO smtpserver: The idle timeout will be reset every
20480 bytes.
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.VrfyCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.AuthCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.QuitCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.HelpCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.HeloCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.MailCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.DataCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.RcptCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.EhloCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added MessageHandler:
org.apache.james.smtpserver.SendMailHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.NoopCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.ExpnCmdHandler
25/03/08 18:13:41 INFO smtpserver: Added Commandhandler:
org.apache.james.smtpserver.RsetCmdHandler
25/03/08 18:13:41 DEBUG smtpserver: SMTP Service init...
25/03/08 18:13:41 DEBUG smtpserver: SMTP Service ...init end
25/03/08 18:13:41 INFO smtpserver: SMTP Service started plain:25000
25/03/08 18:13:41 DEBUG smtpserver: Using a bounded pool for SMTP
handlers with upper limit 30
...and when connecting the client:
25/03/08 18:15:31 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
25/03/08 18:15:31 DEBUG smtpserver: Getting SMTPHandler from pool.
25/03/08 18:15:31 INFO smtpserver: Connection from <myip> (<myip>)
25/03/08 18:15:31 DEBUG smtpserver: Sent: 220 iaaserver.<mydomain> SMTP
Server (JAMES SMTP Server 2.3.1) ready Tue, 25 Mar 2008 18:15:31 +0100 (CET)
25/03/08 18:15:31 DEBUG smtpserver: Calling start()
25/03/08 18:15:31 DEBUG smtpserver: Watchdog default Worker #3 has time
to sleep 360000
...and finally when the client disconnects (without getting replies to
any coommands):
25/03/08 18:15:45 DEBUG smtpserver: Calling stop() default Worker #3
25/03/08 18:15:45 DEBUG smtpserver: Closing socket.
25/03/08 18:15:45 DEBUG smtpserver: Calling disposeWatchdog() default
Worker #3
25/03/08 18:15:45 DEBUG smtpserver: Watchdog default Worker #3 is
exiting run().
25/03/08 18:15:45 DEBUG smtpserver: Returning SMTPHandler to pool.
25/03/08 18:15:45 DEBUG smtpserver: Returning a
org.apache.james.smtpserver.SMTPHandler to the pool
This leaves me clueless... The only error I can see is when termination
James (goes for both out-of-the-box and my stripped down config):
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "thread-manager" failed to pass through the Destruction
stage. (Reason: java.lang.IllegalThreadStateException).
at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.shutdown(LifecycleHelper.java:288)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.shutdown(DefaultApplication.java:566)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:482)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.stop(DefaultApplication.java:233)
at
org.apache.avalon.framework.container.ContainerUtil.stop(ContainerUtil.java:292)
at
org.apache.avalon.framework.container.ContainerUtil.shutdown(ContainerUtil.java:66)
at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.shutdown(DefaultKernel.java:346)
at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.removeApplication(DefaultKernel.java:455)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.undeploy(DefaultDeployer.java:244)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.dispose(DefaultDeployer.java:154)
at
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306)
at
org.apache.avalon.framework.container.ContainerUtil.shutdown(ContainerUtil.java:67)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.shutdownComponents(DefaultEmbeddor.java:598)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.dispose(DefaultEmbeddor.java:342)
at
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306)
at
org.apache.avalon.framework.container.ContainerUtil.shutdown(ContainerUtil.java:67)
at
org.apache.avalon.phoenix.frontends.CLIMain.shutdown(CLIMain.java:326)
at
org.apache.avalon.phoenix.frontends.CLIMain.forceShutdown(CLIMain.java:295)
at
org.apache.avalon.phoenix.frontends.ShutdownHook.run(CLIMain.java:386)
Caused by: java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.destroy(ThreadGroup.java:750)
at
org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.dispose(DefaultThreadPool.java:76)
at
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306)
at
org.apache.avalon.cornerstone.blocks.threads.AbstractThreadManager.dispose(AbstractThreadManager.java:69)
at
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306)
at
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.shutdown(LifecycleHelper.java:274)
... 19 more
Any help greatly appreciated!
Regards, Magnus
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James db table names?
Posted by Norman Maurer <no...@apache.org>.
Am Donnerstag, den 03.04.2008, 15:58 -0400 schrieb Dockery, Michael E
SFC NG NG NGB:
> I would like to use sql to view emails in the james db tables
>
> is there a document
> or a place to find information about the database layouts
> (ie: table names, columns, etc)
Not that i know... You can look at sqlResources.xml to get a better
overview of the layout.
Cheers,
Norman
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
James db table names?
Posted by "Dockery, Michael E SFC NG NG NGB" <mi...@us.army.mil>.
I would like to use sql to view emails in the james db tables
is there a document
or a place to find information about the database layouts
(ie: table names, columns, etc)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org