Dear Sirs Iīve finally solved this problem.
If it is useful for someone, here is what I do.
I leave permissions over the /maildir/doamin.com/user directory to the user mail, so as to be able to send mails.
But as I said, I canīt login into Roundcube Webmail, so I run:
telnet localhost imap
a login
user@domain.com password
[ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid (This is what I receive when I try to login).
So I find in a post that Courier checks for the SANITY of the setup, so turning this option to "0" solved the problem.
I added this line in /etc/courier/imapd => IMAP_MAILBOX_SANITY_CHECK=0
So if I telnet localhost now I can login ok:
telnet localhost imap
a login
user@domain.com password
a OK LOGIN Ok.
Now when trying to login into Roundcube Webmail, everything works ok, and can send mails ok too.
Thanks to everyone for your help.
Best regards.