Hi guys
,
Good work on this project is my aim.
So, one thing what I just do here is a better webmail address for customers.
Ex: webmail.mycustomerdomain.com
Just to sync my software description:
Linux CentOS x64
ispCP 1.0.6
Webmail Roundcube (I simple replaced at /var/www/ispcp/gui/tools/webmail to this)
Lets start:
Code:
cd /var/www/fcgi
cp -r master webmail
chown vu2000:vu2000 webmail -R
sed -i 's/master/webmail/g' webmail/php5-fcgi-starter
So at the file "/etc/ispcp/apache/parts/ispcp_base.tpl" insert the code bellow at the top of "# httpd [{IP}] virtual host entry BEGIN.":
Code:
<VirtualHost {DMN_IP}:80>
<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>
ServerAdmin webmaster@{DMN_NAME}
DocumentRoot /var/www/ispcp/gui/tools/webmail
ServerName webmail.*
<Directory /var/www/ispcp/gui/tools/webmail>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui/tools/webmail>
FCGIWrapper /var/www/fcgi/webmail/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/webmail">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/webmail/
<Directory "/var/www/fcgi/webmail">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui/tools/webmail>
php_admin_value open_basedir "/var/www/ispcp/gui/tools/webmail:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter/rkhunter.log:/var/log/chkrootkit.log:/usr/share/pear/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
At file /etc/ispcp/bind/parts/db_e.tpl increment your DNS template by adding this registry in "CNAME for mail transfer" section:
Code:
webmail IN CNAME mail
After that your new domains will give the webmail access over this kind of URL "webmail.customerdomain.com".
If you wish to do this change in all your already domains follow the steps to regenerate your DNS and Apache Confs at this URLs:
http://isp-control.net/documentation/how...ate_config
Note: The regeneration of confs are possible since 1.0.3 version.
Please give sugestions or report security issues
.