Marcio Merlone wrote:
Is there a way to make courier-imap register last time login on ldap server and its last IP?You have this information already in your maillog, entries like
Nov 8 15:50:35 frog imapd-ssl: LOGIN, user=oracle, ip=[194.109.240.22]
For the purposes you want this, you could write a script that
periodically walks the logs, checks who logged in and puts his
IP and the login date and time in LDAP. Once you have that,
you can directly query your LDAP server for users who haven't
logged in in X period of time. You might need to set a default
value to begin with and translate the log time to UNIX time
or some other format that makes calculations easier. Take a
look at the Net::LDAP CPAN module for ease of writing to LDAP.
Z
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
