Can't login with user@domain.com for virtualmin user in roundcube

Thank you for the clarification.


When a new virtual server is created, a new default user along with an email is created.
When i try to login into roundcube, i can only login with the username like, not with the default email.e.g example@example.com additional emails also doesn’t work as roundcube login user.
The problem is when i login as the user without the domain name, I log in as example@localhost on the roundcube but i would like to log in as example@example.com by default. Otherwise i have edit the user identities of every new virtualserver from the roundcube to user@domain.com for them to use it properly.
By log in as example@localhost user can not send any email outside localhost. gmail doesn’t accept it.