Sentora Support Forums
Webmail Access - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: Email Support v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=35)
+---- Thread: Webmail Access (/showthread.php?tid=2762)

Pages: 1 2


Webmail Access - BenI - 04-11-2016

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>


RE: Webmail Access - datatab - 04-11-2016

</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>


RE: Webmail Access - BenI - 04-12-2016

(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.


RE: Webmail Access - Me.B - 04-12-2016

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


RE: Webmail Access - BenI - 04-12-2016

Can you provide a complete vhost configuation?


RE: Webmail Access - Me.B - 04-12-2016

[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


RE: Webmail Access - BenI - 04-12-2016

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>


RE: Webmail Access - TGates - 04-12-2016

You will also need to add webmail to your DNS records for that domain (CNAME record)


RE: Webmail Access - BenI - 04-13-2016

The cname record is created on the dns server, but still doesn't work


RE: Webmail Access - Me.B - 04-13-2016

DNS propagation can be tricky. Try to lookup against your VPS first and see if it's responding correctly.

M B