29 Nov
2006
29 Nov
'06
1:12 p.m.
Hi all,
how to put in databaswe (mysql) some information after login dovecot can only get information from database (user_query, password_query) exist some query to put in, for example last login date into database ?
Maciek
3 Dec
3 Dec
2:58 p.m.
On Wed, 2006-11-29 at 12:12 +0100, SysOp wrote:
Hi all,
how to put in databaswe (mysql) some information after login dovecot can only get information from database (user_query, password_query) exist some query to put in, for example last login date into database ?
Easiest way is to change mail_executable to a script which executes:
#!/bin/sh
echo "update users set last_login = now where username = '$USER'" | mysql .. exec /usr/local/libexec/dovecot/imap
6565
Age (days ago)
6569
Last active (days ago)
1 comments
2 participants
participants (2)
-
SysOp
-
Timo Sirainen