Try to reconfigure Roundcube to connect to the server hostname (instead of localhost) and to use SMTP auth.