pop/imap session

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

pop/imap session

tommy.s
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

Reply | Threaded
Open this post in threaded view
|

Re: pop/imap session

Timo Sirainen
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?


signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pop/imap session

Tomasz Suchodolski

> 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.


 

                         

Reply | Threaded
Open this post in threaded view
|

Re: pop/imap session

Timo Sirainen
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.


PGP.sig (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pop/imap session

Ed Wildgoose-2
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
Reply | Threaded
Open this post in threaded view
|

Re: pop/imap session

Tomasz Suchodolski
2008/5/8 Ed W <[hidden email]>:

> 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