Since version 2.5 Parallels H-Sphere provides integration with Microsoft Exchange mail hosting plans. The following four default MS Exchange plans are already included into Parallels H-Sphere as resources:
Parallels H-Sphere admin can also import more plans created on MS Exchange server into Parallels H-Sphere as MS Exchange hosting resources. This document is an example of a step-by-step procedure on how to do it:
msExchangePlans.xml file with description of your new custom MsExchange plan (it will be merged with the standard msExchangePlans.xml):<plans>
<plan type="new_plan">
<planName>NewPlanName</planName>
<planDescription>New MS Exchange Plan Name</planDescription>
<planFeatures>
. . . .
<feature>
<featureName>some_feature</featureName>
<featureDescription>This feature's description</featureDescription>
<featureValue>some_value</featureValue>
</feature>
. . . .
</planFeatures>
</plan>
</plans>
msexchange.xml file that will be merged with the standard hsphere plan wizard xml (msexchange.xml):<PlanWizard name="msexchange" description="planeditor.res_msexchange">
<categories>
<category description="planeditor.other">
<resource name="new_plan" required="1" class="psoft.hsphere.resource.mpf.hostedexchange.HostedExchangePlan"/>
</category>
</categories>
<resources>
<res_bizuser>
<mod name="new_plan">
<initresource name="new_plan"/>
</mod>
</res_bizuser>
</resources>
</PlanWizard>
where new_plan is the name of the MS Exchange hosting plan you are adding. This name must not exceed 10 symbols.
Notes:
java psoft.hsphere.tools.HePlanExctractor
This utility prints XML output with properties of all available MS Exchange hosting plans. Or, you can obtain plan features in XML form in the HostedExchange Web interface under the GetPlanDetail service.
cpanel user.~cpanel/shiva/custom/Packages:mkdir ~cpanel/shiva/custom/Packages
cd ~cpanel/shiva/custom/Packages
java psoft.hsp.tools.PkgConfigurator --with-prefix=./ms_customization --with-xmls --with-properties --with-sql
Package configurator will create the ms_customization directory, which includes the following structure:
src/pkg_config/ - directory with the default.properties file src/pkg_xmls/ - directory directory where you will place msExchangePlans.xml and msexchange.xmlsrc/_pkg.xml:<?xml version="1.0" encoding="UTF-8"?>
<pkg build="00" description="Description for test package" info="Additional information" name="MSExchangeCustomization"
vendor="Vendor" version="00.00.00">
<xmls src="pkg_xmls/"/>
<config path="pkg_config/default.properties"/>
Note: Package name can't contain spaces and special characters.
src/_SCRIPTS/_pkg.sql. Add the following line into it: INSERT INTO type_name (id, name, price, description, rprice) VALUES ('resource_type_id', 'new_plan', 'RFS', 'resource_type_description', 'RFS');
where:
RFS for all MS Exchange plans you add.For example, a standard MS Exchange plan will have the following records:
hsphere=# SELECT * from type_name where description like 'Hosted Exchange%';
id | name | price | description | rprice | required | priority | ttl
------+------------+-------+-----------------------------------------+--------+----------+----------+-----
7222 | plat_mailp | RFS | Hosted Exchange Platinum Mail Plus Plan | RFS | | |
7219 | base_mail | RFS | Hosted Exchange Base Mail Plan | RFS | | |
7221 | plat_mail | RFS | Hosted Exchange Platinum Mail Plan | RFS | | |
7220 | gold_mail | RFS | Hosted Exchange Gold Mail Plan | RFS | | |
msExchangePlans.xml and msexchange.xml files to ms_cutomization/src/pkg_xmls/:cp /some/location/msExchangePlans.xml ~cpanel/shiva/custom/Packages/ms_customization/src/pkg_xmls/
cp /some/location/msexchange.xml ~cpanel/shiva/custom/Packages/ms_customization/src/pkg_xmls/
src/pkg_config/default.properties:Add properties that specify location of xml file implemented in this package:
PLAN_WIZARDS_DIR=.
HOSTED_EXCHANGE_PLANS = msExchangePlans.xml
Return from the package directory and run package builder:
cd ~cpanel/shiva/custom/Packages
java psoft.hsp.tools.PkgBuilder --with-source=ms_customization
The hsp package, for example, MSExchangeCustomization-00.00.00-01.hsp, will be created in the directory.