Current time: 11-26-2024, 09:17 AM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Better Webmail Access
Author Message
NewtonPasqualini Offline


Posts: 3
Joined: Oct 2011
Reputation: 0
Post: #1
[HowTo] Better Webmail Access
Hi guys Cool,

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 Big Grin.
(This post was last modified: 10-14-2011 05:07 AM by NewtonPasqualini.)
10-14-2011 02:56 AM
Find all posts by this user Quote this message in a reply
intictWeF Offline


Posts: 1
Joined: Oct 2011
Reputation: 0
Post: #2
Это интересно
Колумбийская певица Шакира вошла в комиссию при президенте США Бараке Обаме, которая займется проблемами образования для латиноамериканцев, сообщает Agence France-Presse.

Комиссия из четырех человек была создана по распоряжению Обамы в 2010 году. Ее основной целью является снижение барьеров для испаноговорящих студентов к образованию в США.
10-15-2011 10:16 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)