Webmail Access
#1
Webmail Access
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>
Reply
#2
RE: Webmail Access
</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>
Reply
#3
RE: Webmail Access
(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.
Reply
#4
RE: Webmail Access
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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#5
RE: Webmail Access
Can you provide a complete vhost configuation?
Reply
#6
RE: Webmail Access
[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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#7
RE: Webmail Access
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>
Reply
#8
RE: Webmail Access
You will also need to add webmail to your DNS records for that domain (CNAME record)
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#9
RE: Webmail Access
The cname record is created on the dns server, but still doesn't work
Reply
#10
RE: Webmail Access
DNS propagation can be tricky. Try to lookup against your VPS first and see if it's responding correctly.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Webmail Send / Receive works but Outlook doesn't | Digital Ocean dipakcg 12 42 ,613 04-17-2020, 04:52 PM
Last Post: iraqiboy90
[Help] I have some webmail errors quangpham89 5 16 ,332 08-23-2017, 11:49 PM
Last Post: TGates
cant recevice email on my webmail , programer 1 6 ,480 07-03-2017, 04:53 PM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 4 Guest(s)