[Dovecot] pop/imap session
Hello,
Can dovecot log pop/imap session, and notify(by sending mail) admin in case of errors? Something like notify_classes in postfix.
Regards Tomasz
On Sun, 2008-05-04 at 19:01 +0200, Tomasz wrote:
Hello,
Can dovecot log pop/imap session, and notify(by sending mail) admin in case of errors? Something like notify_classes in postfix.
Not directly. How about using some kind of a syslog that supports it?
Ok, but there are errors that are not logged(i assume that debug mode is disabled) Lets take, for example a bug when dovecot freezes and telneting directly to the port shows: Waiting for authentication process to respond...
This could be reported to admin by mail and is faster than reading logs.
On May 8, 2008, at 1:58 AM, Tomasz Suchodolski wrote:
On Sun, 2008-05-04 at 19:01 +0200, Tomasz wrote:
Hello,
Can dovecot log pop/imap session, and notify(by sending mail)
admin in case of errors? Something like notify_classes in postfix.Not directly. How about using some kind of a syslog that supports it?
Ok, but there are errors that are not logged(i assume that debug
mode is disabled) Lets take, for example a bug when dovecot freezes and telneting
directly to the port shows: Waiting for authentication process to respond...This could be reported to admin by mail and is faster than reading
logs.
Shouldn't you rather figure out why it's freezing and fix that? It's
not normal.
Timo Sirainen wrote:
Ok, but there are errors that are not logged(i assume that debug mode is disabled) Lets take, for example a bug when dovecot freezes and telneting directly to the port shows: Waiting for authentication process to respond...
This could be reported to admin by mail and is faster than reading logs.
Shouldn't you rather figure out why it's freezing and fix that? It's not normal.
But if you worry about that kind of thing then monit is a good tool. It can be configured to watch memory usage, number of processes, check a port, then take action and do something like alert an admin and reboot the service, etc
Ed W
2008/5/8 Ed W <lists@wildgooses.com>:
Timo Sirainen wrote:
Ok, but there are errors that are not logged(i assume that debug mode is
disabled) Lets take, for example a bug when dovecot freezes and telneting directly to the port shows: Waiting for authentication process to respond...
This could be reported to admin by mail and is faster than reading logs.
Shouldn't you rather figure out why it's freezing and fix that? It's not normal.
But if you worry about that kind of thing then monit is a good tool. It can be configured to watch memory usage, number of processes, check a port, then take action and do something like alert an admin and reboot the service, etc
Nagios or bash script could also be used but that's not the point. Generally it would be nice if dovecot could report errors internally like postfix and it's notify_classes. This is of course a wish :)
Regards
participants (4)
-
Ed W
-
Timo Sirainen
-
Tomasz
-
Tomasz Suchodolski