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 using webmail.mydomain.com
#1
webmail access using webmail.mydomain.com
I need to access to webmail like this way.

webmail.mydomain.com

I have referred old post in this forum and configured vhost.conf. but always redirected to sentora login page not redirect to roundcude login.

Please help me to setup it

Many tnx
Reply
Thanks given by:
#2
RE: webmail access using webmail.mydomain.com
(07-17-2015, 03:49 AM)sknd Wrote: I need to access to webmail like this way.

webmail.mydomain.com

I have referred old post in this forum and configured vhost.conf. but always redirected to sentora login page not redirect to roundcude login.

Please help me to setup it

Many tnx

1 - Open Menu: Admin > Module Admin .

2 - In Administration Modules, open Apache Config .

3 - In Override a Virtual Host Setting, --Select a domain-- and click the button Select Vhost .

4 - In Virtual Host Override, edit the code like your config and paste in Custom Entry:


Code:
</VirtualHost>

# Configuration for WebMail
# This configuration enable webmail for all domains. 
# If you want enable only a specific domain, change * to your domain name ind ServerAlias.

<VirtualHost *:80>
 ServerAlias webmail.* 
 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> 

5 - Click Save Vhost .


Enjoy and be Happy !!!  Big Grin
Reply
Thanks given by: TGates
#3
RE: webmail access using webmail.mydomain.com
Getting "Internal Server Error"
Reply
Thanks given by:
#4
RE: webmail access using webmail.mydomain.com
(07-17-2015, 10:07 AM)sknd Wrote: Getting "Internal Server Error"

Please do not double post.

Without any info about the error or what you have done we can not help you.
One option is to give us your etc/sentora/configs/apache/httpd-vhosts.conf file, most likely the error is there.

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by:
#5
RE: webmail access using webmail.mydomain.com
(07-17-2015, 01:56 PM)Ron-e Wrote:
(07-17-2015, 10:07 AM)sknd Wrote: Getting "Internal Server Error"

Please do not double post.

Without any info about the error or what you have done we can not help you.
One option is to give us your etc/sentora/configs/apache/httpd-vhosts.conf file, most likely the error is there.

I followed above ic.rezende's expatiation ,

</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAlias webmail.*
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>

and in that file i can see my main domain entry
<virtualhost *:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin admin@mydomain.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mydomain_com"
</virtualhost>

Then when ivisit : webmail.mydomain.com .I can see Internal Server error
Reply
Thanks given by:
#6
RE: webmail access using webmail.mydomain.com
Try adding the full domain:

</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAlias webmail.domain.tld
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>
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#7
RE: webmail access using webmail.mydomain.com
Currently I have this for my webmail:
Code:
# DOMAIN: webmail.domain.tld
<virtualhost *:80>
    ServerName webmail.domain.tld
    ServerAlias  webmail.domain.tld
    ServerAdmin server@domain.tld
    DocumentRoot "/etc/sentora/panel/etc/apps/webmail"
    php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/etc/sentora/configs/roundcube:/var/sentora/temp/"
    php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
    ErrorLog "/var/sentora/logs/base_services/webmail_domain.tld-error.log"
    CustomLog "/var/sentora/logs/base_services/webmail_domain.tld-access.log" combined
    CustomLog "/var/sentora/logs/base_services/webmail_domain.tld-bandwidth.log" common
    <Directory "/etc/sentora/panel/etc/apps/webmail">
      Options +FollowSymLinks -Indexes
      AllowOverride All
      Require all granted
    </Directory>
    AddType application/x-httpd-php .php3 .php
    DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm

</virtualhost>
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#8
RE: webmail access using webmail.mydomain.com
(07-17-2015, 07:43 PM)sknd Wrote:
(07-17-2015, 01:56 PM)Ron-e Wrote:
(07-17-2015, 10:07 AM)sknd Wrote: Getting "Internal Server Error"

Please do not double post.

Without any info about the error or what you have done we can not help you.
One option is to give us your etc/sentora/configs/apache/httpd-vhosts.conf file, most likely the error is there.

I followed above  ic.rezende's expatiation ,

</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAlias webmail.*
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>

and in that file i can see my main domain entry
<virtualhost *:80>
ServerName mydomain.com
ServerAlias  www.mydomain.com
ServerAdmin admin@mydomain.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mydomain_com"
</virtualhost>

Then when ivisit : webmail.mydomain.com .I can see Internal Server error


Did yo end the webmail part with "</VirtualHost>", its not present in your text.

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by:
#9
RE: webmail access using webmail.mydomain.com
I have done Ron-e's and apinto's advices . Now i can see white blank page Smile. No round cube login page
Reply
Thanks given by:
#10
RE: webmail access using webmail.mydomain.com
If oyu are using zpanel, please change sentora to zpanel on our tips Smile
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
[split] Can Not Log Into PHPMyAdmin or Webmail after upgrading to PHP 7.1.24 ogika 2 4 ,312 09-14-2021, 06:25 AM
Last Post: sparkrack
SSH Access rsthomas 2 5 ,074 01-06-2021, 12:14 AM
Last Post: rsthomas
No access after reinstall brucecy92 1 3 ,633 10-10-2020, 01:50 PM
Last Post: Jettaman

Forum Jump:


Users browsing this thread: 1 Guest(s)