mails through H-sphere control panel


Can we send mails through H-sphere control panel ?

H-Sphere 2.5 and up integrates MS Exchange Server hosting that enables you to send and receive electronic mail and other forms of interactive communication through computer networks. The centralized e-mail servers connect to the Internet and private networks where e-mail messages are sent to and received from other e-mail users. Exchange Server offers you integrated collaborative messaging features such as scheduling, contact, and task management capabilities.

When you are signed up for an MS Exchange plan, you can do the following in your user control panel:

  • Manage mailboxes
  • Manage SMTP domains
  • Add MX DNS records
  • Manage distribution lists

Mailbox is an area in memory or on a storage device where e-mail is placed. In e-mail systems, each user has a private mailbox. When the user receives e-mail, the mail system automatically puts it in the mailbox.

Managing an existing mailbox:

  1. Go to MS Exchange->Mailboxes menu of your Control Panal
  2. On the form that appears, you can:
  • View general information on your mailboxes
  • Increase Mail Store Quota and Public Store Quota by clicking on the edit icon and agreeing to charges, if any.
  • Add a mailbox
  • Edit an existing Mailbox
  • Remove an existing Mailbox by clicking the Trash icon next to the Mailbox you need.
  1. Go to MS Exchange->Mailboxes menu of your Control Panel
  2. Click the Add mailbox icon
  3. Fill in the form you will be taken to

Here:

  • Mail Box Plan – you can choose the plan that suits you best
  • Principal name – your mailbox name
  • Password – is a mailbox password which corresponds with win server password restrictions

For Editing an existing mailbox:

  1. Go to MS Exchange->Mailboxes menu of your Control Panel
  2. Click the Edit icon next to the mailbox you want to edit
  3. Make necessary changes in the form you will be taken to:

Set up Internet SMTP domains


How can we set Internet SMTP domains?

Advance thanx for any help

MS Exchange allows you to set up Internet SMTP domains, that you may want to accept messages for.

How to add new SMTP domain

To add new SMTP domain:

  1. Go to MS Exchange->SMTP Domains menu of your Control Panel
  2. Click the Add new domain icon
  3. Fill in the form you will be taken to:

Hi,
I want to remove my existing SMTP domain.

Plz. help

To remove SMTP domain:

  1. Go to MS Exchange->SMTP domains menu of your Control Panel
  2. Click the Trash icon next to the domain you need

I want to set an existing SMTP domain as Primary.

To set an existing SMTP domain as Primary:

  1. Go to MS Exchange->SMTP domains menu of your Control Panel
  2. In the column Primary, click the button to enable/disable next to the desired domain

You cannot remove SMTP domain with a mailbox already created on it.

Send a mail to a list of e-mail addresses at a time


I want to send a mail to a list of e-mail addresses at a time. how can i do it?

U can use Distribution list

A Distribution list is a list of e-mail addresses identified by a single name, such as list_name@domain.com. When an e-mail message is sent to the distribution list name, it is automatically forwarded to all the addresses in the list. MS Exchange allows you to manage centralized mailing lists for groups of users.

Thanx stevon

How to add a Distribution list ?

To add a Distribution list:

  1. Go to MS Exchange->Distribution list menu of your Control Panel
  2. Click the Add Distribution List icon
  3. Fill in the form you will be taken to:

and How to To remove a Distribution list.

To remove a Distribution list:

  1. Go to MS Exchange->Distribution list menu of your Control Panel
  2. Click the Remove icon next to the list you need

I have a Distribution list but now I want to edit it. Plz. help

To edit an existing Distribution list:

  1. Go to MS Exchange->Distribution lists menu of your Control Panel
  2. Click the Edit icon next to the list you want to edit
  3. Make necessary changes in the form you will be taken to:

Back up H-Sphere system data


Anyone can explain me how to back up H-Sphere system data ?

You can back up H-Sphere system data with the help of H-Sphere backup script. It requires postgresql client version 7.1 or higher installed and the psql program available in the system paths on the CP server.

Thanx alemcherry

How to use H-Sphere backup script ?

Backing Up System Data

The backup script is located in the /hsphere/shared/backup directory of the CP server and includes the following files:

hs_bck – the main script file;
hs_bck.cfg – the script configuration file;
hs_bck.txt – description/readme file.
The script backs up

H-Sphere properties file.
SiteStudio properties files.
The main H-Sphere Postgresql DB.
This script does not automatically back up the content of user directories, mail data and DNS settings. To back up user content by means of the backup script, configure the hs_bck.cfg config file by adding user content directories specified below.

You can edit the hs_bck.cfg file to specify the backup storage directory, the number of latest backups to be stored (7 by default), the log file, etc.

Also, H-Sphere includes the /hsphere/shared/scripts/cron/hs_bck file which launches the backup script. For regular automatic backups, add the execution of this file into the CP server crontab configuration. For example, to run the backup script every day at 6:13 AM, add the following line:

13 6 * * * /hsphere/shared/scripts/cron/hs_bck hs_bck.cfg >/dev/null 2>&1

These are the files and directories that are backed up by the script:

H-Sphere and SiteStudio postgres DBs:
hsphere
counter
poll
guestbook

H-Sphere and SiteStudio configuration files:
/hsphere/local/home/cpanel/shiva/psoft_config/*
/hsphere/shared/SiteStudio/psoft_config/*

Can we also Back Up User Content ?

Yes, u can Back Up User Content.

Below is the list of databases, directories and files that need to be backed up in order to preserve all H-Sphere user data.

You can back them up either manually or by the means of the /hsphere/shared/backup/hs_bck script running locally on H-Sphere servers. To configure the script to back up user content, add the corresponding directories to the /hsphere/shared/backup/hs_bck.cfg config file (see /hsphere/shared/backup/hs_bck.txt for the script options).

Control Panel Server

dump all postgresql DBs and back up the postgres content directory (usually, /var/lib/pgsql on your CP server).
~cpanel/shiva/psoft_config/
~cpanel/shiva/shiva-templates/IMAGES/
~cpanel/shiva/custom/
/hsphere/shared/SiteStudio/psoft_config
/hsphere/shared/SiteStudio/var/websites/
If the database is large, the dump can take several hours to complete. You can speed it up by setting
fsync=off
in postgresql.conf. When you are done, unset this option back for safety reasons.

DNS Server

/etc/named.conf
/hsphere/local/var/named/
Web Server

/hsphere/local/home/ (users’ dirs)
/hsphere/local/config/ (httpd and ftp configs)
/usr/local/frontpage/ (frontpage configs)
Mail Server

~vpopmail/domains/
~vpopmail/etc/
~qmaild/users/
~qmaild/control/
MySQL Server

~mysql/
PostgreSQL Server

Dump all user DBs at once with the pg_dumpall utility:
pg_dumpall > db.out
(pg_dumpall might need to connect several times to the PostgreSQL server, asking for a password each time. It is convenient to have the $HOME/.pgpass file in such cases. See man pg_dumpall for more details.)

Note: dump file is created with 644 permissions by default; you need to set more secure 600 permissions to prevent the data from being read by other users:
chmod 600 db.out
It is also very helpful to back up the postgres content directory (usually, /var/lib/pgsql on your PGSQL box).

Restoring the H-Sphere System Database


How to Restore the H-Sphere System Database ?
The H-Sphere backup location is set in the /hsphere/shared/backup/hs_bck.cfg config file. The default location is /var/backup.

hs_bck stores the system data backup (with user content if configured in hs_bck.cfg) in the following files in the BCK_DIR directory:

<ARCHIVE>.tgz – the latest backup; <ARCHIVE> is the name of the backup file set in hs_bck.cfg. This is the default name:
BACKUP hs_bck
Older backup files are named <ARCHIVE>.1.tgz, <ARCHIVE>.2.tgz, …
hsphere.sql – the H-Sphere system database backup;
counter.sql, poll.sql, guestbook.sql – SiteStudio system databases are also backed up if SiteStudio is integrated with H-Sphere.

Restoring The H-Sphere System Database

The H-Sphere system database restore is described here.

Restoring System Data

Untar <ARCHIVE>.tgz in the H-Sphere backup directory. System data is restored to the corresponding locations on the CP server:

~cpanel/shiva/psoft_config/ (H-Sphere configuration files)
~cpanel/shiva/shiva-templates/IMAGES/ (H-Sphere and custom images)
~cpanel/shiva/custom/ (customization directory)
/hsphere/shared/SiteStudio/psoft_config/ (SS config)
/hsphere/shared/SiteStudio/var/websites/ (SS sites)

And how to Restore User Content ?
Restoring User Content

Untar <ARCHIVE>.tgz in the H-Sphere backup directory on a box you wish to restore user content. User content is restored to the corresponding locations:

DNS server:

/etc/named.conf
/hsphere/local/var/named/
Web server:

/hsphere/local/home/ (users’ dirs)
/hsphere/local/config/ (httpd and ftp configs)
/usr/local/frontpage/ (frontpage configs)
Mail server:

~vpopmail/domains/
~vpopmail/etc/
~qmaild/users/
~qmaild/control/
MySQL server:

~mysql/

PostgreSQL server:

For Linux servers:
~postgres/
For FreeBSD servers:
~pgsql/

Restoring H-Sphere services


How to restore H-Sphere services (logical servers).

To restore H-Sphere services (logical servers) on Linux/Unix boxes. You must have all user content and configuration files backed up.

We suggest the following recovery procedure:

Step 1. Download H-Sphere Installer
Step 2. Generate Configuration Files
Step 3. Resolve Possible Conflicts in the System
Step 4. Run Recovery Tool
Step 5. Restore User Content

Thanx getpfunky

Can u tell me in more detail ?

following recovery procedure:

Step 1. Download H-Sphere Installer
Step 2. Generate Configuration Files
Step 3. Resolve Possible Conflicts in the System
Step 4. Run Recovery Tool
Step 5. Restore User Content

Step 1. Download H-Sphere Installer

Download the latest version of the H-Sphere installation scripts (if you already have the previous version of hsinst.tgz in the current directory, please remove or rename this file before the download):
# wget http://www.psoft.net/shiv/HS/hsinst.tgz
Untar/ungzip the hsinst.tgz archive:
# tar xfz ./hsinst.tgz
and cd into the installation directory:
# cd ./hsinst

Step 2. Generate Configuration Files

On this step, create configuration files from H-Sphere system database.

If your H-Sphere was installed with the installer older than version 2.3, collect your current H-Sphere configuration:
# ./import
Launch the configuration wizard to enter installation data:
# ./configure
In the configuration menu, check the ID of the server you want to restore.
Check if all services on this box are properly configured.
Save the number of the server that you added a service on in the configuration menu.
Save configuration and exit with ‘-‘ or ‘s’+’q’ commands
Execute:
# make add-server-ID
where ID is the number of the server that you added the serivce on. This will regenerate install configuration, upload install scripts to this server and configure SSH keys to access it.
Login to the server where you install the new service and execute:
# cd /hsphere/install
1) If you have to re-install all services, type:
# make install
2) If you need to install a particular service, type:
# make add-service S=<SERVICE>
where <SERVICE> takes one of the following values:
dns
mail
weblite
web
mysql
psql
DNS Server
Mail Server
Webmail server
Web server
MySQL server
PostgreSQL server

Step 3. Resolve Possible Conflicts in the System

If you have a mail server and want to add a web server on the same box:
stop apache on this box by running the following command:
– Linux: /etc/rc.d/init.d/httpd stop
– FreeBSD: /usr/local/etc/rc.d/apache.sh stop
uninstall webmail apache rpm or package:
– Linux: rpm -e hsphere-apache-lite
– FreeBSD: pkg_delete `pkg_info | grep ^hsphere-apache-lite`
If you want to add a mail server and don’t have a web server, after ‘make add-service S=mail’ execute:
# make add-service S=weblite


Step 4. Run PhysicalCreator

To restore your H-Sphere physical resources, log in as the cpanel user and run PhysicalCreator.

Do not confuse the account ID with the server ID you used when generating configuration files. Account IDs could be found in the accounts table of the H-Sphere system database.

Step 5. Restore User Content

Finally, restore user content from the backup.

Recreating H-Sphere physical and logical servers, users, and resources


How to recreate H-Sphere physical and logical servers, users, and resources.

Servers are recreated on empty machines with a newly installed operating system. This is an alternative to the manual recovering services procedure.

Don’t use this instruction to recreate boxes with the CP server, including one server installations.

Servers are recreated by means of a perl script, which is inluded into H-Sphere distributions starting with version 2.4 Patch 3.

You must have all user content and configuration files backed up.

Step 1. Prepare the server
Step 2. Download the installer
Step 3. Run the recreator
Step 4. Restore user content

Step 1. Prepare The Server

To start the recreate, you need to set up a clean server with the IP address of the server you are recreating and prepare it for H-Sphere installation.

Step 2. Download Current Installer

Log into the CP server as root:
su –
Make sure you don’t have installers for older versions. If you do, delete them.
Download H-Sphere 2.4 installer:
Linux:
wget http://www.psoft.net/shiv/HS/hsinst24.tgz
FreeBSD:
fetch http://www.psoft.net/shiv/HS/hsinst24.tgz
untar/ungzip the downloaded archive:
tar xfz ./hsinst24.tgz
and cd into the installation directory:

cd ./hsinst

Step 3. Run The Recreator

Run the recreator:

./phbox_recreate.pl
It will allow you to select the server to recreate, and will take you through the recreation wizard. Once it finishes, the server will be up and running.

Step 4. Restore User Content

If you are recovering servers with user content, such as web, mail, or mysql, postresql, you need to restore user content from backup. This is not necessary for DNS servers.

Restoring the H-Sphere System Database From Backup


I want to Restore the H-Sphere System Database From Backup.

Plz. help

You can restore the H-Sphere system database from the backup made by the H-Sphere hs_bck script. If you back up your system PostgreSQL database manually using pg_dump, the procedure would be basically the same, except for the names and locations of the backed up system databases.

The backup destination directory for the /hsphere/shared/backup/hs_bck script is set in the /hsphere/shared/backup/hs_bck.cfg config file. The default location is:
BCK_DIR /var/backup

hs_bck stores the system data backup in the following files in the BCK_DIR directory:

<ARCHIVE>.tgz – the system data content; <ARCHIVE> is the name of the backup file set in hs_bck.cfg:
BACKUP hs_bck
Older backup files are named <ARCHIVE>.1.tgz, <ARCHIVE>.2.tgz, …
hsphere.sql – the H-Sphere system database backup;
counter.sql, poll.sql, guestbook.sql – SiteStudio system databases are also backed up if SiteStudio is integrated with H-Sphere.


I. Restoring the H-Sphere database on a server where PostgreSQL is not installed:

Log in to the server as root:
su –
Install PostgreSQL to the server.
Start PostgreSQL for the first time:
On RedHat servers:
/etc/rc.d/init.d/postgresql start
On FreeBSD servers, you need to inititiate the PostgreSQL service database manually before you start Postgres:
su – pgsql -c initdb
/usr/local/etc/rc.d/010.pgsql.sh start
Log in as PosgreSQL user:
On RedHat servers (the PostgreSQL service database is initiated automatically on login):
su – postgres
On FreeBSD servers:
su – pgsql
Create the user wwwuser:
createuser wwwuser
Answer yes to all prompts.
Enter the PostgreSQL service database:
psql tempate1
Restore the wwwuser password:
alter user wwwuser with password ‘old_password’;
alter user pgsql with password ‘old_password’;
Here, old_password is the wwwuser password to be restored.
Quit from PostgreSQL:
q
Configure PostgreSQL passwords in the ~pgsql/data/pg_hba.conf file, according to instructions provided in this file.
Here it may be also helpful to optimize H-Sphere memory usage for better PostgreSQL performance.
Restart PostgreSQL.
Create H-Sphere database:
createdb -U wwwuser hsphere
SiteStudio databases are created in the similar way.
Import the database content from the backup:
psql -U wwwuser -f <HS_BCK>/hsphere.sql hsphere
where <HS_BCK> is the backup directory. SiteStudio databases are imported in the similar way.

II. Restoring the H-Sphere database content if the database already exists:

Log in to the CP server as root:
su –
Drop the H-Sphere database:
dropdb -U wwwuser hsphere
Create the H-Sphere database:
createdb -U wwwuser hsphere
Import the database content from the backup:
psql -U wwwuser -f <HS_BCK>/hsphere.sql hsphere
where <HS_BCK> is the backup directory.
SiteStudio databases are restored in the same way.

Fixing Crashed H-Sphere Database


Hi,
My H-Sphere Database is crashed. How I fix it ?
Sometimes PostgreSQL database can get corrupted to the point of no return. That might manifest itself in things like:

hsphere=# VACUUM ;
ERROR: Relation 71343 does not exist

This usually means that index is corrupted.

To recover from the problem:

Login as root:
su –
Stop Postgres if it is running.
Make sure that no Postgres processes are running using the command:
ps auxw | grep post
If any of them are running, kill them.
Remove Postgres’ pid file:
rm -f PGSQL_HOME/data/postmaster.pid
From now on, we note PGSQL_HOME as the Postgres home directory which is /var/lib/pgsql on RedHat servers, and /usr/local/pgsql on FreeBSD.
Switch to Postgres user:
# su – postgres (on RedHat)
# su – pgsql (on FreeBSD)
Backup PostgreSQL database stored in the PGSQL_HOME/data directory:
cp -r PGSQL_HOME/data pgdata.backup
Try to connect to the H-Sphere database in single mode:
postgres -D PGSQL_HOME/data -O -P hsphere
If you get any errors like:

FindExec: found “/usr/bin/postmaster” using argv[0]
2002-03-22 13:42:46 [6002] DEBUG: database system was shut down at 2002-03-22 11:46:11 CET
2002-03-22 13:42:46 [6002] DEBUG: ReadRecord: invalid resource manager id 157 at (0, 561372168)
2002-03-22 13:42:46 [6002] DEBUG: Invalid primary checkPoint record
2002-03-22 13:42:46 [6002] DEBUG: Invalid RMID in secondary checkPoint record
2002-03-22 13:42:46 [6002] FATAL 2: Unable to locate a valid CheckPoint record
2002-03-22 13:42:46 [6002] DEBUG: proc_exit(2)
2002-03-22 13:42:46 [6002] DEBUG: shmem_exit(2)
2002-03-22 13:42:46 [6002] DEBUG: exit(2)
/usr/bin/postmaster: reaping dead processes…
/usr/bin/postmaster: Startup proc 6002 exited with

The messages such as:
ReadRecord: invalid resource manager
and other are culprit of the error.

In view of the above errors, do the following:

Execute:
pg_resetxlog PGSQL_HOME/data
(this will reset the write-ahead log and other control information of a PostgreSQL database cluster; they are important but this is the only way to recover).
Try to log into Postgres again in single mode:
postgres -D PGSQL_HOME/data -O -P hsphere
Once you are in, type:
reindex database hsphere;
Exit the database:
q
Finally, start Postgres and see if everything is working.
Here, two Postgres tools are used:
– reindex database to recover corrupted indexes;
– pg_resetxlogs to reset write-ahead log files and the state of Postgres.

Error while trying to access Control Panel by domain name


Hi,
I have just installed H-Sphere, I receive the following error while trying to access Control Panel by domain name:

Control Panel Error
You have entered invalid control panel location. Please enter your account login and password.

Plz. help

In this case, you need to change your hostname to your CP domain name instead of the IP address:

1. Log into your CP server as the cpanel user:
su – cpanel
2. Edit the hsphere.properties file:
vi ~cpanel/shiva/psoft_config/hsphere.properties
In the CP_HOST field, enter the domain name instead of the IP address.
3. Restart H-Sphere.

For Changing Entire CP URL

Starting from version 2.4, Control Panel runs on the Tomcat servlet engine and therefore CP URL pathname configuration differs from that of JServ in prevous versions.

A typical H-Sphere control panel URL looks similar to
http://example.com:8080/psoft/servlet/psoft.hsphere.CP/
where:
example.com is the domain name,
psoft/servlet is the mount point,
psoft.hsphere.CP is the servlet name.

Login to CP server as the cpanel user:
su –
su – cpanel

Edit ~cpanel/shiva/psoft_config/hsphere.properties to change your servlet name and mount point:

# old settings — commented out
# UPLOADER_URL = /psoft/servlet/psoft.hsphere.Uploader
# DOWNLOAD_URI = /psoft/servlet/psoft.hsphere.Downloader
# CP_URI = /psoft/servlet/psoft.hsphere.CP
# CLIENT_CP_URL = psoft.hsphere.CP

# new settings
UPLOADER_URL = /cp/servlet/hsphere.Uploader
DOWNLOAD_URI = /cp/servlet/hsphere.Downloader
CP_URI = /cp/servlet/hsphere.CP
CLIENT_CP_URL = hsphere.CP

Important: To avoid problems, please check that the same servlet name and mount point are set in all these parameters! CP_URI takes the precedence otherwise.

Logout from cpanel back to root and run the jakarta_servlet_upt.pl script to apply the new servlet name and mount point to the Tomcat configuration files and to the index page template ~cpanel/shiva/shiva-templates/index.html:

cd ~cpanel/shiva/psoft_config
./jakarta_servlet_upt.pl
The script replaces old servlet name and mount point in the following files:
~cpanel/hsphere/WEB-INF/web.xml
~cpanel/apache/etc/mod_jk.conf
~cpanel/jakarta/conf/server.xml
~cpanel/shiva/shiva-templates/index.html

Original configuration files are backed up:
~cpanel/hsphere/WEB-INF/web.xml.ORG
~cpanel/apache/etc/mod_jk.conf.ORG
~cpanel/jakarta/conf/server.xml.ORG
~cpanel/shiva/shiva-templates/index.html.ORG

Important: Don’t forget to run this script after the H-Sphere update to apply your CP URL customization in the new version!

Restart H-Sphere