Login to Roundcube ONLY with IMAP user and not with user@domail.tld

Hi,
I installed Roundcube on my server manually.

All Virtual Server can be accessed via domain.tld / webmail

The problem is the login. is allowed to login only through “IMAP / POP3 / FTP login” (eg user.domaintld) and not with the classic user@domail.tld.

Go already enabled “auto_create_user” to True.

How to fix?

Error file:

[23-Mar-2013 10:05:23 +0100]: IMAP Error: Login failed for iYYo@XXXX.YY from 79.41.246.245. AUTHENTICATE PLAIN: Authentication failed. in /var/www/html/roundcube/program/include/rcube_imap.php on line 191 (POST /webmail/?_task=login&_action=login)

imap file:

[23-Mar-2013 10:05:21 +0100]: [F02C] S: * OK Dovecot ready.
[23-Mar-2013 10:05:21 +0100]: [F02C] C: A0001 CAPABILITY
[23-Mar-2013 10:05:21 +0100]: [F02C] S: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN
[23-Mar-2013 10:05:21 +0100]: [F02C] S: A0001 OK Capability completed.
[23-Mar-2013 10:05:21 +0100]: [F02C] C: A0002 AUTHENTICATE PLAIN AGluZmXXXXXXXXXXXXXXXsQENr
[23-Mar-2013 10:05:23 +0100]: [F02C] S: A0002 NO Authentication failed.
[23-Mar-2013 10:05:23 +0100]: [F02C] C: A0003 LOGOUT
[23-Mar-2013 10:05:23 +0100]: [F02C] S: * BYE Logging out
[23-Mar-2013 10:05:23 +0100]: [F02C] S: A0003 OK Logout completed.

Howdy,

Well, if you’re using the user.domain user format – that’s the user’s username, and is what RoundCube (and Dovecot) would require.

If you’re just getting started with the setup of your Virtualmin server, you could always change the username format being used for email users.

To do that, you can go into System Settings -> Server Templates -> Default -> Mail for Domain, and in there you can change “Format for usernames that include domain” to “user@domain”.

There’s no easy way to change existing users though, that will only change new users.

-Eric