[Dovecot] Event on Logout
Hi, @all!
Is it possible, with Dovecot, to do something (eg: an SQL-Query) when the User logs out (POP3) or do some action (IMAP)?
My problem is to notify a DB when the user logs out or delete E-Mail (in this case, just for IMAP).
Thanks for your answer!
P.S.: if it is NOT possible, it is my Hit for the next version! :)
Luca Bertoncello -Programmierung / Mailserver-
IMS Internet-Media-Service GmbH Bayrische Str. 18 01069 Dresden
Geschäftsführer: Axel C.E. Wittig Registergericht: Amtsgericht Dresden HRB 12 899
Fon: +49 351 2112034 Fax: +49 351 2112020 E-Mail: bertoncello@internet24.de
On Fri, 2007-02-23 at 09:38 +0100, Luca Bertoncello wrote:
Hi, @all!
Is it possible, with Dovecot, to do something (eg: an SQL-Query) when the User logs out (POP3) or do some action (IMAP)?
My problem is to notify a DB when the user logs out or delete E-Mail (in this case, just for IMAP).
http://wiki.dovecot.org/PostLoginScripting
But instead of execing pop3 do something like:
#!/bin/sh
/usr/local/libexec/dovecot/pop3 echo "update logged_out..." | mysql
Of course that means that there are now extra shell processes waiting for users to log out.
As for deleting mails, there's currently no simple way to do it. You could pretty easily modify mail-log plugin though. Some day in future there will be some more generic "event plugin".
Timo Sirainen tss@iki.fi schrieb:
This means that I have some process, running as root, for every login... It's not a good solution for a cluster with many thousend accounts... :)
As for deleting mails, there's currently no simple way to do it. You could pretty easily modify mail-log plugin though. Some day in future there will be some more generic "event plugin".
Maybe an event called at logout, too! :)
Thanks a lot
Luca Bertoncello -Programmierung / Mailserver-
IMS Internet-Media-Service GmbH Bayrische Str. 18 01069 Dresden
Geschäftsführer: Axel C.E. Wittig Registergericht: Amtsgericht Dresden HRB 12 899
Fon: +49 351 2112034 Fax: +49 351 2112020 E-Mail: bertoncello@internet24.de
participants (2)
-
Luca Bertoncello
-
Timo Sirainen