1

Topic: Roundcube log

Where are the logs of roundcube access or how to config to log all access on it?

2

Re: Roundcube log

bzcat /var/log/maillog.0.bz2 | grep 'Successful login for'
cat /var/log/maillog | grep 'Successful login for'

3 (edited by xvktr 2010-06-04 22:57:38)

Re: Roundcube log

TKS
one more doubt,
in the log, the ip of login is 127.0.0.1 (server).
is possible config the log to record the IP of client who make the access ?

4

Re: Roundcube log

check index.php from roundcube installed direcory [mine:/usr/local/www/roundcube]
From line 105 to 111 you must have

// log successful login
    if ($RCMAIL->config->get('log_logins')) {
      write_log('userlogins', sprintf('Successful login for %s (id %d) from %s',
        $RCMAIL->user->get_username(),
        $RCMAIL->user->ID,
        $_SERVER['REMOTE_ADDR']));
    }

If you have this please paste some log rows for [cat /var/log/maillog | grep 'Successful login for']

5

Re: Roundcube log

maybe you can test roundcube plugin.

http://trac.roundcube.net/wiki/Plugin_Repository

Log to database - Log to database instead of file