Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: trcosta on July 26, 2018, 03:35:29 PM

Title: Roundcube Login Problem - Cant Connect - Log Error on IMAP - * BYE Internal Erro
Post by: trcosta on July 26, 2018, 03:35:29 PM
Hi.
One problem started today: I can't connect to roundcube.

(https://imageshack.com/a/img924/1526/z9YRZ1.png)

In /usr/local/cwpsrv/var/services/roundcube/logs/errors

[26-Jul-2018 15:17:12 +0000]: <6dq7unhf> IMAP Error: Login failed for nfe@hmluvas.com.br from 138.204.24.121. AUTHENTICATE PLAIN: * BYE Internal error occurred. Refer to server log for more information. in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_imap.php on line 193 (POST /?_task=login&_action=login)


Maybe someone can guide me here, because I do not know where to start...
Thanks!
Title: Re: Roundcube Login Problem - Cant Connect - Log Error on IMAP - * BYE Internal Erro
Post by: trcosta on July 26, 2018, 03:45:58 PM
Services is showing as ok, but mentioned error still ocurring.

(https://imageshack.com/a/img924/9536/lb2HGh.png)
Title: Re: Roundcube Login Problem - Cant Connect - Log Error on IMAP - * BYE Internal Erro
Post by: josemnunez on July 27, 2018, 12:48:06 AM
Please check the permissions of the directory of this mailbox in:

/ var / vmail / MYDOMAIN / MAILBOX

Let me know how it went after this
Title: Re: Roundcube Login Problem - Cant Connect - Log Error on IMAP - * BYE Internal Erro
Post by: trcosta on September 14, 2018, 02:34:03 AM
I think it is +w permission, according to dovecot.log

failed: Permission denied (euid=101(vmail) egid=12(mail) missing +w perm: /var/vmail, dir owned by 1061:1061 mode=0751)
Title: Re: Roundcube Login Problem - Cant Connect - Log Error on IMAP - * BYE Internal Erro
Post by: trcosta on September 14, 2018, 02:48:25 AM
adding more info.
when looking for /var/vmail permission the folder was with some account name "bemestar" but it should be "1061".
looking /etc/passwd I found that users start to be created with code 1018...1019... and 1061 is now some client account created throught cwp panel.

how to fix it?
old users are working because inside /var/vmail the accounts are showing with owner vmail and group mail.

any documentation or fix arount this issue?
Title: Re: Roundcube Login Problem - Cant Connect - Log Error on IMAP - * BYE Internal Erro
Post by: trcosta on September 14, 2018, 02:55:07 AM
More info, I created manually the domain folder inside /var/vmail and changed user to vmail and group to mail and now I can login and use the email.

I am looking how to change entire vmail permission without causing other problems.