Logging usernames with qpopper...
I am launching qpopper with xinetd. (on a RH7.1 machine)
I need to log the username of everyone who checks their mail..
I have added this in the pop3 config file for xinetd:
log_type = FILE /var/log/pop3.log
logonsuccess = HOST USERID
And this is what's being logged to /var/log/pop3.log:
04/6/9@12:08:36: START: pop3 from=0.1.2.3
04/6/9@12:08:37: START: pop3 from=1.1.2.3
04/6/9@12:08:43: START: pop3 from=2.1.2.3
04/6/9@12:08:56: START: pop3 from=3.1.2.3
04/6/9@12:09:07: START: pop3 from=4.1.2.3
Any idea on how I can get the usernames to pop up in my logfile?
2 Replies
Just noticed this though in the manual on Qualcomm's web site…
> log-login
When set, Qpopper logs successful
authentications using the specified
string. Within the string, an
occurrence of %0 is replaced with the
Qpopper version, %1 with the user
name, %2 with the user's host name,
and %3 with the user's IP address.
Default: none, unless
–enable-log-login used with
./configure, in which case (v%0)
POP login by user \%1\ at (%2) %3 is
used.
Did you compile it yourself? Maybe missed a option…
@shpstr:
I have added this in the pop3 config file for xinetd:
I think you're looking in the wrong place. All xinetd is doing is monitoring inbound port connections - it doesn't know anything about POP3 authentication. That information is going to come from the POP3 server. You should be playing with qpopper configuration, not xinetd.
It's quite possible that qpopper is already logging to /var/log/mail.log or similar. Try grep -i pop /var/log/* and see if anything 'pops' up.