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 Marc Chamberlin <ma...@marcchamberlin.com> on 2008/06/01 23:49:38 UTC
Howto use log files to trace James activity
I searched around for this answer but could not find any documentation
so decided to join this forum and ask... I see that James does a lot of
logging to various log files, but as an administrator I cannot find any
info on how to really use the information stored within them. Is there
such an administrator guide somewhere that explains the model of how the
log files relate to the model of how James is organized?
To clarify my needs, for example, how can I determine if one of my users
has had his/her email account compromised by a spammer who is now using
that account to send out spam? How do I trace the reception of an email
by the server and its disposition of that email, in particular how do I
trace whether James is relaying or forwarding email that it shouldn't be
doing?
Users sometimes complain to me that they did not receive a particular
email. How does one go about verifying whether James did indeed receive
such an email and whether the user retrieved it or not... I know I can
look in the mail repositories and search them but if the user is not
leaving their email on the server that approach will not work.
I have been puzzling over the log files but without any good
documentation it is very hard to understand exactly what it all means
and what is happening within the server... Thanks for any help or
pointers in advance...
Marc....
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Howto use log files to trace James activity
Posted by Stefano Bagnara <ap...@bago.org>.
Marc Chamberlin ha scritto:
> I searched around for this answer but could not find any documentation
> so decided to join this forum and ask... I see that James does a lot of
> logging to various log files, but as an administrator I cannot find any
> info on how to really use the information stored within them. Is there
> such an administrator guide somewhere that explains the model of how the
> log files relate to the model of how James is organized?
Unfortunately there is no info.
You simply find one logfile for each of our components.
So you have a logfile for the smtpserver (incoming mail), one for the
spoolmanager (spooling), one for the mailets (including remotedelivery).
> To clarify my needs, for example, how can I determine if one of my users
> has had his/her email account compromised by a spammer who is now using
> that account to send out spam? How do I trace the reception of an email
> by the server and its disposition of that email, in particular how do I
> trace whether James is relaying or forwarding email that it shouldn't be
> doing?
There is no easy way to do that.
You can enable debug mode for the spoolmanager and this will tell you a
detailed log of each steps each mail do inside james, but this is a lot
of informations and is not easy to find out answer to the above questions.
> Users sometimes complain to me that they did not receive a particular
> email. How does one go about verifying whether James did indeed receive
> such an email and whether the user retrieved it or not... I know I can
> look in the mail repositories and search them but if the user is not
> leaving their email on the server that approach will not work.
I usually start looking in smtpserver logs to see what identifier has
been assigned by james to that mail (search for sender/recipients/time
in that log), then I grep that identifier in other logs.
Unfortunately some log contains the Message-Id while other contains the
James-Mail-Name, so you have to find out the link between the 2 (don't
remember how, now)
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org