9 Oct
2006
9 Oct
'06
1:51 a.m.
On Mon, 2006-09-04 at 10:45 +0200, Krzysztof wrote:
Or are you trying to say that authentication logging to SQL should be a Dovecot feature?
It would be great if Dovecot had that feature.
In Dovecot v2.0 I'm going to use separate log processes, which should then be somewhat easily replaceable with eg. perl scripts that log to database. Or whatever.
I need it for quick view of users login history.
You could do this by pointing mail_executable to a script:
#!/bin/sh
echo "INSERT INTO logins (user, time) VALUES ('$user', now())" | psql mails
exec /usr/local/libexec/dovecot/imap