[Dovecot] greetings and logging
Howdy,
I've been working with a new CentOS installation and this is my first experience with dovecot. I would like dovecot to provide more logging, however I'm not finding much on how to alter it's logging.
http://wiki.dovecot.org/DovecotFeatures speaks of having Logging Control.
Can anyone point me in the right direction?
Thanks.
-- Edward Chase Providence College Information Technology
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, May 4, 2006 1:04 pm, Edward Chase wrote:
I've been working with a new CentOS installation and this is my first experience with dovecot. I would like dovecot to provide more logging, however I'm not finding much on how to alter it's logging.
http://wiki.dovecot.org/DovecotFeatures speaks of having Logging Control.
What sort of logging were you looking to do? I went through the code and looked at it a little bit, and eventually gave up because I didn't have enough time.
I was trying to log the bandwidth used by the connection for accounting purposes.
Ryan
PGP Fingerprint - E15C CC7D 5830 AB8A C2AE 5C5E 80D8 6B63 D40B 015C
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEWksTgNhrY9QLAVwRAjyWAJ9QFjmBCMi9XpGv/DWwS2kxD+ogtACfZlIo YLIcA8vK+bwKy7DeXpPdlEQ= =iw8z -----END PGP SIGNATURE-----
On Thu, May 4, 2006 1:04 pm, Edward Chase wrote:
I've been working with a new CentOS installation and this is my first experience with dovecot. I would like dovecot to provide more logging, however I'm not finding much on how to alter it's logging.
http://wiki.dovecot.org/DovecotFeatures speaks of having Logging Control.
From: Ryan Kolak [mailto:ryank@rkware.com]
What sort of logging were you looking to do? I went through the code and looked at it a little bit, and eventually gave up because I didn't have enough time.
I was trying to log the bandwidth used by the connection for accounting purposes.
Ryan
Here's an example of what I see with qualcomm popper.
May 5 07:20:22 postoffice qpopper[8770]: [ID 702911 mail.notice] Stats: popuser 91 2173068 116 2543535 10.1.2.3 10.1.2.3
This is telling me that popuser checked mail. The qpopper removed 91 messages / 2173068 bytes from the mailbox, leaving 116 messages / 2173068 bytes. And the operation was done by the machine at 10.1.2.3
I'm not sure why the double IP address. I've never seen them differ.
What helps here is when a user calls with issues, I can say that "your right at your storage quota and your machine appears to be configured to leave some/all of your mail on the server." The difference between "some" and "all" would obvously be the machine configure to leave all mail on server would never be removing anything with each round of POP.
I would also hope that attempts to do POP with bad username/password combos would be logged w/ at least the username showing up.
qpopper's version of this type of logging:
May 3 09:14:03 postoffice qpopper[20215]: [ID 702911 mail.notice] sophisticate11 at 10.1.2.3 (10.1.2.3): -ERR [AUTH] Password supplied for "sophisticate11" is incorrect.
Heck in this case it's really a bad username, qpopper just knows that the username/password combo is not valid.
Dovecot may do the bad password logging. This system hasn't been running long enough for me to notice that yet.
Thanks.
On Fri, 2006-05-05 at 08:21 -0400, Edward Chase wrote:
May 5 07:20:22 postoffice qpopper[8770]: [ID 702911 mail.notice] Stats: popuser 91 2173068 116 2543535 10.1.2.3 10.1.2.3
This is telling me that popuser checked mail. The qpopper removed 91 messages / 2173068 bytes from the mailbox, leaving 116 messages / 2173068 bytes. And the operation was done by the machine at 10.1.2.3
Dovecot should be logging the same things for POP3. In config file:
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
Then again, if you're using v0.99.x it doesn't do that.
I would also hope that attempts to do POP with bad username/password combos would be logged w/ at least the username showing up.
Set auth_verbose = yes
Ah...
I'll wait for CentOS to include a newer version in the distro.
#rpm -qa | grep -i dovecot dovecot-0.99.11-2.EL4.1
Thanks.
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Timo Sirainen Sent: Friday, May 05, 2006 10:26 AM To: Edward Chase Cc: dovecot@dovecot.org Subject: RE: [Dovecot] greetings and logging
On Fri, 2006-05-05 at 08:21 -0400, Edward Chase wrote:
May 5 07:20:22 postoffice qpopper[8770]: [ID 702911 mail.notice] Stats: popuser 91 2173068 116 2543535 10.1.2.3 10.1.2.3
This is telling me that popuser checked mail. The qpopper removed 91 messages / 2173068 bytes from the mailbox, leaving 116 messages / 2173068 bytes. And the operation was done by the machine at 10.1.2.3
Dovecot should be logging the same things for POP3. In config file:
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
Then again, if you're using v0.99.x it doesn't do that.
I would also hope that attempts to do POP with bad username/password combos would be logged w/ at least the username showing up.
Set auth_verbose = yes
participants (3)
-
Edward Chase
-
Ryan Kolak
-
Timo Sirainen