Yes, imaps is public and imap is private. But roundcube access it locally so it is fine. But that explains...
Trying xx.xx.xx.xx...
...if you tried to telnet from outside the network.
Try to telnet from the server console
telnet localhost 143
If it still isn't working, disable imap in server-manager and the enable it again.