Instructions for deleting the swap file after import in Ensim
Eg. partition - /dev/hda3 mounted on /, swap file - /var/swapfile.
Turn off swapping for file “/var/swapfile” with the following command:
swapon, swapoff - enable/disable devices and files for paging and swapping
Swapoff disables swapping on the specified devices and files.  When the -a flag is given, swapping is disabled  on all known swap devices and files (as found in /proc/swaps or /etc/fstab)
Delete the file “/var/swapfile” with the following command:
				 
								
			 	
					
				
				
					Instructions to setup swap file
Select the partition where you want to create the swap file. This partition must have free disk space to create the swap file.
Create a file for swap with the following command (# is shell prompt):
#dd if=/dev/zero of=/var/swapfile bs=1024 count=[count]
 
where [count]= number of 1024 blocks required. If count=1024000 size of /var/swapfile will be 1024* 1024000 = 1 GB . 
You can decide the size of “/var/swapfile” depending on the size of the backup tar file.
Setup an extra swap with the following command:
Enable “/var/swapfile” for swapping with the following command:
Verification: The file “/proc/swaps” must contain the entry for the swap file “/var/swapfile”. If this entry is not present, then swapping has not been enabled for the swap area.
				 
								
			 	
					
				
				
					Fix MemoryError exception occuring during import sites with Ensim Pro
Restore of appliance, reseller, site and user fails with the “MemoryError” if the size of the backup tar file is greater than the aggregate size of RAM and swap space.
Add extra swap space to the EPL server before doing the restore.
The extra swap space is added to the EPL server by setting up a new swap file and enabling swapping on it. The EPL server must have enough disk space to create the swap file. After the restore is successful the swap file can be deleted following the instructions provided to delete the swap file.
				 
								
			 	
					
				
				
					Recommended firewall setup for Ensim Pro for Linux
The following is the list of ports used by Ensim Pro for Linux that need to be open if the server is installed behind a firewall.
TCP Port    Service
20     FTP Data
21     FTP
22	SSH
23	Telnet
25     Sendmail SMTP
53	DNS
80     HTTP
110   POP3
143   IMAP
443   SSL
783   Spamassassin
3306  MySQL
19638 Control panel
 
UDP  Port    Service
				 
								
			 	
					
				
				
					Setting up sendmail over SSL on Ensim Pro Control Panel for Linux
Login as root on your Ensim Pro Control Panel for Linux box
Backup your current sendmail conf file
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak
 
Prepare sendmail’s certificate
cd /usr/share/ssl/certs
make sendmail.pem
 
You will be prompted with several questions typical for SSL certificate generation)
Backup /usr/lib/opcenter/sendmail/install/sendmail.mc file
cp /usr/lib/opcenter/sendmail/install/sendmail.mc /usr/lib/opcenter/sendmail/install/sendmail.mc.bak
 
Edit /usr/lib/opcenter/sendmail/install/sendmail.mc file
vi /usr/lib/opcenter/sendmail/install/sendmail.mc
 
Uncomment the following lines to point to your generated certificate
define(`confCACERT_PATH’,`/usr/share/ssl/certs’)
define(`confCACERT’,`/usr/share/ssl/certs/ca-bundle.crt’)
define(`confSERVER_CERT’,`/usr/share/ssl/certs/sendmail.pem’)
define(`confSERVER_KEY’,`/usr/share/ssl/certs/sendmail.pem’)
Add DAEMON_OPTIONS to make sendmail listen on port 465
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA’)dnl
DAEMON_OPTIONS(`Port=smtps, Name=SSLMTA, M=s’)dnl
 
 
Rebuild sendmail conf file
m4  /usr/lib/opcenter/sendmail/install/sendmail.mc > /etc/mail/sendmail.cf
 
Restart sendmail
/sbin/service sendmail restart
 
You can check if sendmail is listening on 465 port by issuing command
Reference: http://parallels.com