Control Web Panel

WebPanel => E-Mail => Topic started by: carmageddon63 on January 02, 2015, 11:15:40 AM

Title: webmail alias
Post by: carmageddon63 on January 02, 2015, 11:15:40 AM
hi search but have not see anything about this.
how can i change ip/roundcube like example.com/webmail

thank you
Title: Re: webmail alias
Post by: maestrofx on January 05, 2015, 03:45:47 AM
hi search but have not see anything about this.
how can i change ip/roundcube like example.com/webmail

thank you

you can make symlink from roundcube folder to webmail one. And fix permission. It works.
Title: Re: webmail alias
Post by: sjorsnl on January 16, 2015, 03:10:25 PM
Got a quick tutorial for that? I tried:

ln -s /usr/local/apache/htdocs/roundcube /usr/local/apache/htdocs/webmail

but that does not seem to be working...
Title: Re: webmail alias
Post by: cgo372 on January 16, 2015, 04:55:18 PM
I also have a problem with the webmail. Let me explain I have several websites on the vps and a shared IP.
When I type the shared IP XXX.XXX.XXX.XXX/webmail or Roundcube I get the Roundcube page
When I type www.mysite.com/webmail or roundcube I have an error 500.

I fixed the permissions for each account and it doesn't work. Is there something I'm missing there!

I created a conf file for apache with the following

Alias /webmail /usr/local/apache/htdocs/roundcube
Alias /roundcube /usr/local/apache/htdocs/roundcube

<Directory /usr/local/apache/htdocs/roundcube>
  Options +FollowSymLinks
  DirectoryIndex index.php
  AllowOverride All
  Order Deny,Allow
  Allow from All
</Directory>

So I get the symlink to Webmail but not the website.com/webmail

Any clue? thanks for your help
Title: Re: webmail alias
Post by: Administrator on January 19, 2015, 03:05:55 AM
you can't use domains since the SECURITY (suPHP and SUExec) will block it.
you can only user server hostname and IP for webmail, ftp and phpmyadmin.
Title: Re: webmail alias
Post by: cgo372 on January 21, 2015, 08:56:58 AM
But then what makes that this way is possible with ISPConfig3 using also SUPHP?
Title: Re: webmail alias
Post by: cgo372 on January 22, 2015, 09:22:08 AM
So my question now is how to bypass suPHP to get roundcube to work?
Title: Re: webmail alias
Post by: Waldorf on January 28, 2015, 10:37:16 PM
In /usr/local/apache/conf/httpd.conf create an alias to the roundcube directory:

Code: [Select]
Alias /roundcube /usr/local/apache/htdocs/roundcube
and add the directory settings:

Code: [Select]
<Directory /usr/local/apache/htdocs/roundcube>
    Options -Indexes
    AllowOverride All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/config>
    Order Deny,Allow
    Deny from All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/temp>
    Order Deny,Allow
    Deny from All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/logs>
    Order Deny,Allow
    Deny from All
</Directory>

Add the following directory setting to /usr/local/apache/conf.d/vhosts.conf:

Code: [Select]
<Directory /usr/local/apache/htdocs/roundcube>
    Options -Indexes
    AllowOverride All
    <IfModule mod_suphp.c>
         suPHP_Engine On
         suPHP_UserGroup nobody nobody
     </IfModule>
</Directory>

Finally, configure suphp to allow access to the round cube directory by adding the roundcube directory to the docroot in /usr/local/apache/conf.d/suphp.conf. You can also set check_vhost_docroot to false, but this is not recommended as it is a potential security risk.

Hope this helps... 
Title: Re: webmail alias
Post by: Administrator on February 04, 2015, 01:23:53 AM
new version comes with this fixes