This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#5
RE: Webmail Access
Can you provide a complete vhost configuation?
Reply
Thanks given by:
#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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#9
RE: Webmail Access
The cname record is created on the dns server, but still doesn't work
Reply
Thanks given by:
#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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:


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

Forum Jump:


Users browsing this thread: 2 Guest(s)