RE: Folder Permissions
03-21-2015, 11:48 AM
(This post was last modified: 05-12-2015, 11:38 AM by tkramer.)
(03-21-2015, 07:02 AM)Me.B Wrote:OK! I Agree with your arguments and thank you for the help !!(03-21-2015, 06:49 AM)tkramer Wrote: Change original folder?? This is the best solution?
Yep for me look a good solution. And we might offer that in next installer move /etc/apps in sentora another vhost with more strict permissions. I don't like having a virtual user/host having access to /etc/apps/webmail wich is a sensitive area. While moving the files will protect the panel if there is any issues.
M B
I managed to solve the problem! But not redirected webmail folder yet! lol
I deleted the custom entry overrride and marked the OpenBase Enabled option again!
After that, I added these statements in my .htaccess
# Webmail Redirect
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/~account/ [OR]
RewriteCond %{HTTP_HOST} ^webmail.cavalcante.eti.br
RewriteRule ^(.*)$ Http://mail.cavalcante.eti.br/etc/apps/webmail/$1 [R, L]
Who interest, replace with your domain and subdomain!
Works well!
OBS .: Notice that I used the default URL sentora for webmail. So did not need to change any permission!
My users can access by: webmail.cavalcante.eti.br normally!
Another tip, in: /etc/sentora/panel/etc/apps/webmail/config/
you can configure the roundcube to accept login without being asked for the email domain, considering the domain of the URL!
To do this, change the options in the file "defaults.inc.php":
$ Config ['username_domain'] = '%d';
and
$ Config ['username_domain_forced'] = true;
and
$ Config ['mail_domain'] = '%d';
Again, thank you for this charming software!