Sentora Support Forums

Full Version: Webmail Access
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Good day,

I would like to setup webmail access for domains. I added a separate configuration file that will keep the webmail virtual host configurations. However, when I test the url I only get the sentora control panel main page.

When I add the /etc/apps/webmail to the url, I do get to webmail. I am not sure what's the issue with the configuration, perhaps you can assist. Here is the configuration.

<VirtualHost *:80>
 ServerAdmin webmaster@domain.com
 DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
 ServerName webmail.domain.com
 AddType application/x-httpd-php .php3 .php
 <Directory /etc/sentora/panel/etc/apps/webmail/>
   Options FollowSymLinks Indexes
   AllowOverride All
   Order Allow,Deny
   Allow from all
 </Directory>
<VirtualHost>
</VirtualHost>

# Configuration for WebMail
<VirtualHost *:80>
ServerAlias mail.*
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
(04-11-2016, 11:21 PM)datatab Wrote: [ -> ]</VirtualHost>

# Configuration for WebMail
<VirtualHost *:80>
ServerAlias mail.*
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>

Thanks. However, still the same result only getting to control panel.
I don't advice to use that. It's messy to do it like that.

It won't work as openbase_dir won't allow users domains to access /etc/sentora.

Best to setup a vhost <VirtualHost webmail.*:80> that will allow access to webmail under their own subdomain.

M B
Can you provide a complete vhost configuation?
[EDIT] 'Above solution' removed as it is a security risk. - TGates

The above solution is not secure as any user can access webmail files. This is why I said it should be isolated under their own VHOST, so users can't access the webmail but only have it working on their domain.

M B
I understand that, so you mean to that the virtual host configuration should be like this?
<VirtualHost webmail.*:80>
 ServerAdmin webmaster[at]domain.com
 DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
 ServerName webmail.domain.com
 AddType application/x-httpd-php .php3 .php
 <Directory /etc/sentora/panel/etc/apps/webmail/>
   Options FollowSymLinks Indexes
   AllowOverride All
   Order Allow,Deny
   Allow from all
 </Directory>
<VirtualHost>
You will also need to add webmail to your DNS records for that domain (CNAME record)
The cname record is created on the dns server, but still doesn't work
DNS propagation can be tricky. Try to lookup against your VPS first and see if it's responding correctly.

M B
Pages: 1 2