[Dovecot] Logging options
Hi,
is it possible to configure dovecot's logging so it logs stuff like "User x logged in from IP/Host y and had z new messages" like I'm used from qpopper? That immensely helps when debugging PEBKAC issues.
Enabling auth_verbose isnt really helpfull since a failed login generates 4 lines, some even without a pid - so it's a bit hard guessing which log entry belongs to which login attempt or even writing a script which checks for those.
Regards, Thomas
Any suggestions on what I can do to diagnose this problem?
Thanks,
Doug
Mar 9 10:50:02 aurora dovecot: imap-login: Login: doug [127.0.0.1] Mar 9 10:50:04 aurora dovecot: IMAP(doug): Growing pool 'index_header_lookup_ctx' with: 1024 Mar 9 10:50:04 aurora last message repeated 3 times Mar 9 10:50:06 aurora dovecot: IMAP(doug): Growing pool 'maildir_uidlist_sync' with: 65536 Mar 9 10:50:06 aurora dovecot: IMAP(doug): Growing pool 'maildir_uidlist_sync' with: 131072 Mar 9 10:50:06 aurora dovecot: IMAP(doug): Growing pool 'maildir_uidlist_sync' with: 262144 Mar 9 10:50:06 aurora dovecot: IMAP(doug): Growing pool 'maildir_uidlist_sync' with: 524288 Mar 9 10:50:06 aurora dovecot: IMAP(doug): imap in malloc(): error: allocation failed Mar 9 10:50:06 aurora dovecot: child 28235 (imap) killed with signal 6
On 9.3.2005, at 20:52, doug@dovecot.con.com wrote:
Mar 9 10:50:06 aurora dovecot: IMAP(doug): Growing pool 'maildir_uidlist_sync' with: 524288 Mar 9 10:50:06 aurora dovecot: IMAP(doug): imap in malloc(): error: allocation failed Mar 9 10:50:06 aurora dovecot: child 28235 (imap) killed with signal 6
How big is your maildir?
Raising mail_process_size setting probably helps, although you'd have to have quite a large maildir to go above the default 256MB.. Unless something got corrupted (indexes?) and tries to allocate too much memory because of it. I don't think that should ever happen, though..
I get a report of 2698352 from du -k on this particular Maildir. I'm not sure if that's considered "large" for private mailboxes.
What would be a good setting? And is there a good way to rebuild all the indices?
Thanks,
Doug
On Wed, 9 Mar 2005, Timo Sirainen wrote:
On 9.3.2005, at 20:52, doug@dovecot.con.com wrote:
Mar 9 10:50:06 aurora dovecot: IMAP(doug): Growing pool 'maildir_uidlist_sync' with: 524288 Mar 9 10:50:06 aurora dovecot: IMAP(doug): imap in malloc(): error: allocation failed Mar 9 10:50:06 aurora dovecot: child 28235 (imap) killed with signal 6
How big is your maildir?
Raising mail_process_size setting probably helps, although you'd have to have quite a large maildir to go above the default 256MB.. Unless something got corrupted (indexes?) and tries to allocate too much memory because of it. I don't think that should ever happen, though..
Le Jeu 10 Mars 2005 22:02, doug@dovecot.con.com a écrit :
I get a report of 2698352 from du -k on this particular Maildir. I'm not sure if that's considered "large" for private mailboxes.
for that I dunno
What would be a good setting? And is there a good way to rebuild all the indices? just delete the dotfiles dovecot created, it will create them again.
·O· Pierre Habouzit ··O OOO http://www.madism.org
On Thu, 2005-03-10 at 13:02 -0800, doug@dovecot.con.com wrote:
I get a report of 2698352 from du -k on this particular Maildir. I'm not sure if that's considered "large" for private mailboxes.
I think 2 GB is a pretty big mailbox. Although the number of mails is more important than their size.
What would be a good setting?
You can disable it by setting "mail_process_size = 0". For "normal" sized mailboxes the default 256MB limit should never be reached..
And is there a good way to rebuild all the indices?
Deleting them is pretty much the only way.
On Wed, 2005-03-09 at 11:11 +0100, Joebstl Thomas wrote:
is it possible to configure dovecot's logging so it logs stuff like "User x logged in from IP/Host y and had z new messages" like I'm used from qpopper? That immensely helps when debugging PEBKAC issues.
Not yet. You could change the code yourself though.
pop3/client.c at the end of client_create() and/or beginning of client_destroy(). Put something like:
i_info("message count = %u", client->messages_count);
The IP can be set with dovecot-stable and 1.0-test releases from config file:
mail_log_prefix = "%Us(%u,ip=%r): "
participants (4)
-
doug@dovecot.con.com
-
Joebstl Thomas
-
Pierre Habouzit
-
Timo Sirainen