hsphere recreate zone file

To recreate a specific zone file in hsphere:
Login to the cp server

su -l cpanel

java psoft.hsphere.tools.DNSCreator -m creation_method -[dz] -z domain.com

this will switch to the cpanel user and the following line then tells the DNSCreator to recreate the zone file for domain.com

Qmail whitelist IP from RBL checks

In hsphere you can whitelist an IP from RBL checks by using the following:

Edit/Create the file:
/hsphere/local/var/vpopmail/etc/tcp.smtp
Add the following:

#whitelist IP addresses
$IP1:allow,RBLSMTPD=""
$IP2:allow,RBLSMTPD=""

Then: Recompile via Command Line option

cd /hsphere/local/var/vpopmail/etc/
/hsphere/shared/bin/tcprules tcp.smtp.cdb tcp.smtp.tmp < tcp.smtp

Directory Protection in Hsphere

To password protect a directory in hsphere:

Login to Your control panel
Click FTP Manager
Click File Manager (HtProtect)
Click Protect at the bottom
Navigate to the folder you want to protect – You click the actual name of the folder you want to go into to
Once you find the folder you want to protect – you then click the image of the folder next to the name of the folder
If a .htaccess file isn’t already in place it will then ask you if you’d like to create one
Click create
Enter New Login name: example: test
Enter Password: example: password
Confirm Password

Click save
Then Click the Save Disk to the left
Then Click save once more to finalize the changes