Logs access Roundcube

Hello everyone, how are you? A client contacted me requesting the IP addresses of people who accessed his email. Where can I find this information? Is there anything I can do in this case?

If you mean roundcube logins, then, by default it only saves failed attempts in /var/log/roundcube/errors.log

You can edit file /etc/roundcube/config.inc.php and add the directive log_logins:

$config['log_logins'] = true;

From now on, it will save the login info (email account and ip) in /var/log/roundcube/userlogins.log

If the users are using an email client instead of roundcube webmail, you can search for the users in dovecot.log, this log also has the info for logins using roundcube but you will only see the local ip 127.0.0.1.

2 Likes

Thank you very much, @Sahsanu! This will help me a lot. I will activate this option right away.

2 Likes