On Thu, 23 Dec 2004 09:24 +0800, Tim Villa wrote:

After reading through the list archives and all manner of resources, I'm stumped as to why my POP stats are not being logged. I'm using the "--enable-log-login" and "--enable-log-facility=LOG_LOCAL0" configure options, and while the login information shows up as it should, the Stats do not. They do work fine on my old mail server (Sol 8) however.

In /etc/syslog.conf I've tried both:

local0.debug /var/log/local0.log
and
local0.debug ifdef(`LOGHOST', /var/log/local0.log, @loghost)


with "loghost" the current machine in the DNS.

In /etc/inetd.conf I've specified the -s argument (and also tried a trace file, which does result in debugging information being logged).

Everything seems to log EXCEPT the damned statistics!!

We had a similar situation when we upgraded to Solaris 9. That was so long ago, I don't remember all the gory details, but I'll piece together what I can.


Your syslog.conf entry isn't the problem. If it allows qpopper to write entries for pop logins, it will allow qpopper to write session statistics. For example, here's the relevant entry in my syslog.conf:

# POP3 server logs to local0
local0.debug                                    /var/adm/poplog

The problem is that qpopper doesn't write statistics by default, and for some reason invoking it from inetd.conf with the -s option stopped working once we moved to Sol 9. After messing around with it for a while I eventually did a plain vanilla compile and used a configuration file instead. You'll find a sample config file in the tarball. The relevant lines are:

set statistics   = true
set timing       = true
set log-login    = "(v%0) POP login by user '%1' at (%2) %3"

That gives you a login entry, a statistics entry, and a timing entry for each session.

Popper is invoked by inetd with the following /etc/inet/inetd.conf entry:

pop3 stream tcp nowait root /usr/local/lib/popper popper -f /usr/local/etc/qpopper.conf

That's all one line, of course. The -f flag tells popper to use /usr/local/etc/qpopper.conf as its configuration file.

Works fine for us.  YMMV.

--
Chip Old (Francis E. Old)                  E-Mail:  [EMAIL PROTECTED]
BCPL Network Operations Administrator      Phone:   410-887-6180
BCPL.NET Internet Services Administrator   FAX:     410-887-2091
320 York Road
Towson, MD 21204-5179  USA

Reply via email to