Had some similiar problems time ago... I use roundcube behind a proxy/firewall which is changing it's IP adress.
try setting:
// check client IP in session athorization $rcmail_config['ip_check'] = FALSE;
in config/main.inc.php
maybe this will help...
patrick