Ok, I hqve managed to make it work by changing the following line in main.inc.php:
rcmail_config['default_host'] = 'ssl://localhost:993';
(using localhost instead of external ip address of the server ... I guess firewall issue ?)
I need to test it outside our local network but it should now be working, I think.
Regards