Author Topic: how to create folder /var/vmail/domain.com when we create new accounts???  (Read 7395 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hello guys

I was all day trying to fix this issue and finally i found the problem.

PROBLEM :
1 - I create a new client account/domain in CWP : example : domain.com
2 - all goes well but.. when we create a new email , apparently it is created without errors, but never works. (we can SEND but NOT receive). In forums and Google there are LOT people with the same issue in CWP.
3 - Obviusly, another "associated" issue is that roundcubemail not works neither.

SOLUTION :

1 - create a new folder under /var/vmail with the domain created above (like /var/vmail/domain.com)
2 - change group and owner of this folder :
# chown vmail.mail /var/vmail/domain.com
3 - change permissions from 755 to 700 to that folder :
# chmod 700 /var/vmail/domain.com

DONE!

You can now login in roudncube and it creates the corresponding folders, and you also can use the account in OUtlook, Thunderbird, etc, like a charme...

But, CWP PEOPLE.. this is not just a "bug" this is ridiculous!!! Each time we create a new site, we must to do this MANUALLY ????

The domain.com folder under /var/vmail MUST TO BE CREATED AUTOMATICALLY!!!

I hope someone from CWP can read this an fix this terrible issue.
For other things.. the Panel looks perfect, and until now is working all well.

Thanks
Fabian

Offline
*
Re: how to create folder /var/vmail/domain.com when we create new accounts???
« Reply #1 on: February 08, 2019, 12:20:39 PM »
Login in email account form roundcube  ;)
You must update roundcube first, form terminal digit  sh /scripts/mail_roundcube_update

Offline
*
Re: how to create folder /var/vmail/domain.com when we create new accounts???
« Reply #2 on: February 08, 2019, 05:26:44 PM »
Hello

I´ve tried creating a new domain, and going first to roundcube, and nothing happens.
I will try updating roundcube now with sh /scripts/mail_roundcube_update and try again.

Anyway.. the panel itself must to create the folder and enable the email account when we create a new email address, WITHOUT login to roundcube.. many people use emails in outlook and never uses webmail

I will post if the update of roundcube works.

Thanks
Fabian


Offline
*
Re: how to create folder /var/vmail/domain.com when we create new accounts???
« Reply #3 on: February 08, 2019, 05:33:40 PM »
Well

sh /scripts/mail_roundcube_update

###############################
Roundcube is already up-to-date
###############################

And if i create a new client/domain, then create a new email account, and then try to login using roundcube i get this error in roundcube :

"An ERROR OCURRED"
Server Error: STATUS: Internal error occurred. Refer to server log for more information.

and the error is the folder of the domain is NOT created under /var/vmail    :(

If i do all the steps described above, round cube and outlook begins to work.

I have centos 7.5 and last panel version

Regards
Fabian

Offline
*
Re: how to create folder /var/vmail/domain.com when we create new accounts???
« Reply #4 on: February 08, 2019, 06:22:25 PM »
Go to mail menu>mail server manager  and try to rebuilt mail server. Maybe you can solve the problem