Noel, I just tried your tail tip and must say that I failed to
appreciate earlier how good the tip was.
Hint for windows users: tail for windows is available at
http://unxutils.sourceforge.net
Sorry for the confusion caused by my earlier email. What I meant was
that I wanted the log messages to go to the "command window within which
james is launched" instead of the log files.
With your tail tip in hand I guess the rest of my argument is mute.
Thanks for your response again Noel,
Viru
-----Original Message-----
From: Noel J. Bergman [
mailto:noel@xxxxxxxxxxx]
Sent: Thursday, October 10, 2002 12:10 AM
To: James Users List; virender@xxxxxxxxxxx
Subject: RE: sending debug messages to console?
System.out can be changed via System.setOut(PrintStream), if you are so
inclined to have a log file attached, but I don't think that's at all
what you mean, since System.out DOES go to the "console." And there is
no "james console", unless you mean a command window within which you
launch james. Which is generally a really bad idea for a service.
So at this point, I have no idea what you're talking about now.
However, if you want to write your own Avalon logger subclass to write
everything to System.out instead of the log files, by all means do as
you wish. Personally, I think that it is bad idea. There could be some
useful enhancements to Avalon's logging, e.g., support for log rotation,
but writing logs to the console when they can just as easily be
presented via tail makes little sense to me.
--- Noel
-----Original Message-----
From: Virender Dogra [
mailto:viru@xxxxxxxxxxxxxxxx]
Sent: Wednesday, October 09, 2002 13:56
To: james-user@xxxxxxxxxxxxxxxxxx
Subject: re: sending debug messages to console?
Thanks for the tip Noel. I will be using it for now.
Also I was wondering if someone knew how to specify a different target
in the file environment.xml (based on excalibur logger) to send a
System.out log message to the james console instead of a file.
The following snippet seems to me to be the best point of attack. I
don't know how to modify this yet and so need the groups help here.
<targets>
<file id="pop3server-target">
<filename>${app.home}/logs/pop3server.log</filename>
<format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
<append>true</append>
</file>
<file id="smtpserver-target">
<filename>${app.home}/logs/smtpserver.log</filename>
<format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
<append>true</append>
</file>
Thanks again,
Viru
From: Noel J. Bergman <noel@xxxxxxxxxxx>
Subject: sending debug messages to console?
Date: Tue, 8 Oct 2002 17:11:18 -0400
Content-Type: text/plain;
charset="US-ASCII"
Viru,
On linux you can simply run "tail -f /opt/james/apps/james/logs/*" to
monitor the logs. If you just want to monitor part of the system, just
monitor that log, e.g., smtpserver.log. There is a patch submitted
(hopefully in the CVS soon) that if you are at INFO will emit:
Successfully spooled mail from <sender> for <recipients>
for incoming mail. If you are at DEBUG, you'll see the entire SMTP
transaction.
--- Noel
-----Original Message-----
From: Virender Singh [
mailto:virender@xxxxxxxxxxx]
Sent: Tuesday, October 08, 2002 15:11
To: james-user@xxxxxxxxxxxxxxxxxx
Subject: sending debug messages to console?
How can I get log messages to show up on the james cmd prompt console
when a email is received/delivered by the james server ? This helps me
easily take a peak at the console to see what it's doing.
Thanks,
Viru
--
To unsubscribe, e-mail:
<
mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail:
<
mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe, e-mail:
<
mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail:
<
mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.393 / Virus Database: 223 - Release Date: 9/30/2002
Thread at a glance:
Previous Message by Date:
click to view message preview
RE: Problem with delivery to mailboxes
Yegor,
I'm interested to hear more about the web-based e-mail access.
As for your problem ... I'm bothered by the fact that we don't see
HostIsLocal asked to check on the status. Check the mailet log, too. There
ought to be an error message. Are you using file store or database
repositories? I've actually never used anything other than the database.
If you were using it, it would be easy to check the table.
--- Noel
-----Original Message-----
From: Yegor A.Yenikeev [mailto:topgun@xxxxxxxxxxxxxxx]
Sent: Wednesday, October 09, 2002 15:40
To: james-user@xxxxxxxxxxxxxxxxxx
Subject: Problem with delivery to mailboxes
Hi All!
I have been using James since September to build web-based email access
with user management. Now we moved our stuff to the production server and i
definitely have a
prob with delivery to mailboxes.
For some reason James thinks that user is not local and push all the mail to
the
error folder.
I have next settings in the config.xml:
...
<servername>web-sites-hosts.com</servername>
<servername>webmail.web-sites-hosts.com</servername>
...
<mailet match="All" class="ToProcessor">
<processor> transport </processor>
</mailet>
...
<processor name="transport">
<!-- Is the recipient is for a local account, deliver it
locally -->
<mailet match="RecipientIsLocal" class="LocalDelivery"/>
<!-- If the host is handled by this server and it did not get
locally delivered, this is an invalid recipient -->
<mailet match="HostIsLocal" class="ToProcessor">
<processor>error</processor>
</mailet>
...
In the spoolmanager.log i had sequences like this:
09/10/02 10:09:04 INFO spoolmanager: ==== Begin processing mail
Mail1034150944185-4====
09/10/02 10:09:04 INFO spoolmanager: Processing Mail1034150944185-4 through
transport
09/10/02 10:09:04 DEBUG spoolmanager.transport: Servicing mail:
Mail1034150944185-4
09/10/02 10:09:04 DEBUG spoolmanager.transport: Checking Mail1034150944185-4
with org.apache.james.transport.matchers.RecipientIsLocal@40984b
09/10/02 10:09:04 INFO spoolmanager: ProcessedMail1034150944185-4 through
transport
09/10/02 10:09:04 INFO spoolmanager: Result was error
09/10/02 10:09:04 INFO spoolmanager: Processing Mail1034150944185-4 through
error
09/10/02 10:09:04 DEBUG spoolmanager.error: Servicing mail:
Mail1034150944185-4
09/10/02 10:09:04 DEBUG spoolmanager.error: Checking Mail1034150944185-4
with org.apache.james.transport.matchers.All@b33a0e
09/10/02 10:09:04 DEBUG spoolmanager.error: Servicing Mail1034150944185-4 by
ToRepository Mailet
09/10/02 10:09:04 DEBUG spoolmanager.error: Checking Mail1034150944185-4
with org.apache.james.transport.LinearProcessor$1@34ce4a
09/10/02 10:09:04 DEBUG spoolmanager.error: Servicing Mail1034150944185-4 by
Terminating%Mailet%Name
09/10/02 10:09:04 INFO spoolmanager: ==== Removed from spool mail
Mail1034150944185-4====
I saw the class LocalDelivery sources and as for me user
topgun@xxxxxxxxxxxxxxxxxxxxxxxxxxx
should be parsed as a local user and mail should appears in the mailbox.
I have an idea about how this happens. I've added around 50 users throw
TCP-based james manager and
after that james closes connetion each time when i send the command
listusers.
Probably sthg wron with the user store?
So i have 3 major questions:
1) How to determinate that userstore works ok?
2) How to check if james understood the list of servernames properly.
3) I've downloaded james-2.1a1-cvs from cvs and i was able to build it
with RMI manager support only after i patched the makefile. May i
download binary update with RMI manager support?
I will be appreciate for any help you'll provide.
Thanks folks!
--
(`-()_.-=-.
/66 , , \
=(o_/=//_( /======`
~"` ~"~~`
Yegor A. Yenikeev
Senior developer for Offshorecreations.com
mailto:topgun@xxxxxxxxxxxxxxx
Next Message by Date:
click to view message preview
RE: sending debug messages to console?
it is also possible to configure logkit with different targets than files,
don't ask me how though.
d.
> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@xxxxxxxxxxx]
> Sent: 09 October 2002 19:40
> To: James Users List; virender@xxxxxxxxxxx
> Subject: RE: sending debug messages to console?
>
>
> System.out can be changed via System.setOut(PrintStream), if you are so
> inclined to have a log file attached, but I don't think that's at all what
> you mean, since System.out DOES go to the "console." And there
> is no "james
> console", unless you mean a command window within which you launch james.
> Which is generally a really bad idea for a service.
>
> So at this point, I have no idea what you're talking about now.
> However, if
> you want to write your own Avalon logger subclass to write everything to
> System.out instead of the log files, by all means do as you wish.
> Personally, I think that it is bad idea. There could be some useful
> enhancements to Avalon's logging, e.g., support for log rotation, but
> writing logs to the console when they can just as easily be presented via
> tail makes little sense to me.
>
> --- Noel
>
> -----Original Message-----
> From: Virender Dogra [mailto:viru@xxxxxxxxxxxxxxxx]
> Sent: Wednesday, October 09, 2002 13:56
> To: james-user@xxxxxxxxxxxxxxxxxx
> Subject: re: sending debug messages to console?
>
>
> Thanks for the tip Noel. I will be using it for now.
>
> Also I was wondering if someone knew how to specify a different target
> in the file environment.xml (based on excalibur logger) to send a
> System.out log message to the james console instead of a file.
>
> The following snippet seems to me to be the best point of attack. I
> don't know how to modify this yet and so need the groups help here.
>
> <targets>
> <file id="pop3server-target">
> <filename>${app.home}/logs/pop3server.log</filename>
> <format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
> %{message}\n%{throwable}</format>
> <append>true</append>
> </file>
> <file id="smtpserver-target">
> <filename>${app.home}/logs/smtpserver.log</filename>
> <format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
> %{message}\n%{throwable}</format>
> <append>true</append>
> </file>
>
> Thanks again,
> Viru
>
> From: Noel J. Bergman <noel@xxxxxxxxxxx>
> Subject: sending debug messages to console?
> Date: Tue, 8 Oct 2002 17:11:18 -0400
> Content-Type: text/plain;
> charset="US-ASCII"
>
>
> Viru,
>
> On linux you can simply run "tail -f /opt/james/apps/james/logs/*" to
> monitor the logs. If you just want to monitor part of the system, just
> monitor that log, e.g., smtpserver.log. There is a patch submitted
> (hopefully in the CVS soon) that if you are at INFO will emit:
>
> Successfully spooled mail from <sender> for <recipients>
>
> for incoming mail. If you are at DEBUG, you'll see the entire SMTP
> transaction.
>
> --- Noel
>
> -----Original Message-----
> From: Virender Singh [mailto:virender@xxxxxxxxxxx]
> Sent: Tuesday, October 08, 2002 15:11
> To: james-user@xxxxxxxxxxxxxxxxxx
> Subject: sending debug messages to console?
>
>
> How can I get log messages to show up on the james cmd prompt console
> when a email is received/delivered by the james server ? This helps me
> easily take a peak at the console to see what it's doing.
>
> Thanks,
> Viru
>
>
> --
> To unsubscribe, e-mail:
> <mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
> For additional commands, e-mail:
> <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail: <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail: <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
Previous Message by Thread:
click to view message preview
RE: sending debug messages to console?
System.out can be changed via System.setOut(PrintStream), if you are so
inclined to have a log file attached, but I don't think that's at all what
you mean, since System.out DOES go to the "console." And there is no "james
console", unless you mean a command window within which you launch james.
Which is generally a really bad idea for a service.
So at this point, I have no idea what you're talking about now. However, if
you want to write your own Avalon logger subclass to write everything to
System.out instead of the log files, by all means do as you wish.
Personally, I think that it is bad idea. There could be some useful
enhancements to Avalon's logging, e.g., support for log rotation, but
writing logs to the console when they can just as easily be presented via
tail makes little sense to me.
--- Noel
-----Original Message-----
From: Virender Dogra [mailto:viru@xxxxxxxxxxxxxxxx]
Sent: Wednesday, October 09, 2002 13:56
To: james-user@xxxxxxxxxxxxxxxxxx
Subject: re: sending debug messages to console?
Thanks for the tip Noel. I will be using it for now.
Also I was wondering if someone knew how to specify a different target
in the file environment.xml (based on excalibur logger) to send a
System.out log message to the james console instead of a file.
The following snippet seems to me to be the best point of attack. I
don't know how to modify this yet and so need the groups help here.
<targets>
<file id="pop3server-target">
<filename>${app.home}/logs/pop3server.log</filename>
<format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
<append>true</append>
</file>
<file id="smtpserver-target">
<filename>${app.home}/logs/smtpserver.log</filename>
<format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
<append>true</append>
</file>
Thanks again,
Viru
From: Noel J. Bergman <noel@xxxxxxxxxxx>
Subject: sending debug messages to console?
Date: Tue, 8 Oct 2002 17:11:18 -0400
Content-Type: text/plain;
charset="US-ASCII"
Viru,
On linux you can simply run "tail -f /opt/james/apps/james/logs/*" to
monitor the logs. If you just want to monitor part of the system, just
monitor that log, e.g., smtpserver.log. There is a patch submitted
(hopefully in the CVS soon) that if you are at INFO will emit:
Successfully spooled mail from <sender> for <recipients>
for incoming mail. If you are at DEBUG, you'll see the entire SMTP
transaction.
--- Noel
-----Original Message-----
From: Virender Singh [mailto:virender@xxxxxxxxxxx]
Sent: Tuesday, October 08, 2002 15:11
To: james-user@xxxxxxxxxxxxxxxxxx
Subject: sending debug messages to console?
How can I get log messages to show up on the james cmd prompt console
when a email is received/delivered by the james server ? This helps me
easily take a peak at the console to see what it's doing.
Thanks,
Viru
--
To unsubscribe, e-mail:
<mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail:
<mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail: <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
Next Message by Thread:
click to view message preview
RE: sending debug messages to console?
it is also possible to configure logkit with different targets than files,
don't ask me how though.
d.
> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@xxxxxxxxxxx]
> Sent: 09 October 2002 19:40
> To: James Users List; virender@xxxxxxxxxxx
> Subject: RE: sending debug messages to console?
>
>
> System.out can be changed via System.setOut(PrintStream), if you are so
> inclined to have a log file attached, but I don't think that's at all what
> you mean, since System.out DOES go to the "console." And there
> is no "james
> console", unless you mean a command window within which you launch james.
> Which is generally a really bad idea for a service.
>
> So at this point, I have no idea what you're talking about now.
> However, if
> you want to write your own Avalon logger subclass to write everything to
> System.out instead of the log files, by all means do as you wish.
> Personally, I think that it is bad idea. There could be some useful
> enhancements to Avalon's logging, e.g., support for log rotation, but
> writing logs to the console when they can just as easily be presented via
> tail makes little sense to me.
>
> --- Noel
>
> -----Original Message-----
> From: Virender Dogra [mailto:viru@xxxxxxxxxxxxxxxx]
> Sent: Wednesday, October 09, 2002 13:56
> To: james-user@xxxxxxxxxxxxxxxxxx
> Subject: re: sending debug messages to console?
>
>
> Thanks for the tip Noel. I will be using it for now.
>
> Also I was wondering if someone knew how to specify a different target
> in the file environment.xml (based on excalibur logger) to send a
> System.out log message to the james console instead of a file.
>
> The following snippet seems to me to be the best point of attack. I
> don't know how to modify this yet and so need the groups help here.
>
> <targets>
> <file id="pop3server-target">
> <filename>${app.home}/logs/pop3server.log</filename>
> <format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
> %{message}\n%{throwable}</format>
> <append>true</append>
> </file>
> <file id="smtpserver-target">
> <filename>${app.home}/logs/smtpserver.log</filename>
> <format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
> %{message}\n%{throwable}</format>
> <append>true</append>
> </file>
>
> Thanks again,
> Viru
>
> From: Noel J. Bergman <noel@xxxxxxxxxxx>
> Subject: sending debug messages to console?
> Date: Tue, 8 Oct 2002 17:11:18 -0400
> Content-Type: text/plain;
> charset="US-ASCII"
>
>
> Viru,
>
> On linux you can simply run "tail -f /opt/james/apps/james/logs/*" to
> monitor the logs. If you just want to monitor part of the system, just
> monitor that log, e.g., smtpserver.log. There is a patch submitted
> (hopefully in the CVS soon) that if you are at INFO will emit:
>
> Successfully spooled mail from <sender> for <recipients>
>
> for incoming mail. If you are at DEBUG, you'll see the entire SMTP
> transaction.
>
> --- Noel
>
> -----Original Message-----
> From: Virender Singh [mailto:virender@xxxxxxxxxxx]
> Sent: Tuesday, October 08, 2002 15:11
> To: james-user@xxxxxxxxxxxxxxxxxx
> Subject: sending debug messages to console?
>
>
> How can I get log messages to show up on the james cmd prompt console
> when a email is received/delivered by the james server ? This helps me
> easily take a peak at the console to see what it's doing.
>
> Thanks,
> Viru
>
>
> --
> To unsubscribe, e-mail:
> <mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
> For additional commands, e-mail:
> <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail: <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
For additional commands, e-mail: <mailto:james-user-help@xxxxxxxxxxxxxxxxxx>