Monthly Archives: December 2012

How do I set up Microsoft Outlook 2007 using POP?

Step 1:   
On your computer, click the Start Menu and select Control Panel.

Step 2:
If using Windows XP, double-click the Mail icon.
If using Windows Vista, Windows 7 or above, type Mail into the search box at the top-right of the Control Panel window to quickly find the Mail icon. Then, double-click it.

Step 3:
Click the Email Accounts button.

Step 4:
Under the Email tab, click the New button to add your email account.

Step 5:
Check the box for Manually configure server settings or additional server types and then click the Next button.

Step 6:
Select the Internet Email type of account and then click the Next button.

Step 7:
Select POP from the Account Type drop-down box.

Step 8:
Enter Your Name. This is the name that will appear when others receive your e-mail.
Enter your email address.
Make sure that POP is selected from the Account Type drop-down box.
Enter mail.yourdomain.com as the Incoming mail server.
Enter smtp.yourdomain.com as the Outgoing mail server (SMTP).
Enter your full e-mail address as the User Name.
Enter the e-mail account’s Password.
Check the box for Remember password if you do not want to enter your password every time you check or send mail from this account.
Click the More Settings button.

Step 9:
Select the Outgoing Server tab from the top of the new window that opens.

Step 10:
Check the box for My outgoing server (SMTP) requires authentication and ensure that Use same settings as my incoming mail server is selected.

Next, click the Advanced tab at the top of the window.

Step 11:
Enter port “110″ as the Incoming server (IMAP) port and ensure that “None” is chosen from the Use the following type of encrypted connection drop-down box.

Step 12:
Choose “None” from the drop-down box next to Use the following type of encrypted connection and enter 25  or 587 as the Outgoing server (SMTP) port.
Click the OK button to save your settings.

Step 13:
Now you can click the Test Account Settings button to verify that the e-mail account can send and receive mail.

Step 14:
If the part of the test fails, go through the previous steps and double-check all of your settings in Outlook. If the test is successful, click the Close button.

Step 15:
Click the Next button.

Step 16:
Click the Finish button.

Step 17:
You may now launch Outlook 2007 and begin writing and checking your mail!

How do I set up Microsoft Outlook 2007 using IMAP?

Step 1:   
On your computer, click the Start Menu and select Control Panel.

Step 2:
If using Windows XP, double-click the Mail icon.
If using Windows Vista, Windows 7 or above, type Mail into the search box at the top-right of the Control Panel window to quickly find the Mail icon. Then, double-click it.

Step 3:
Click the Email Accounts button.

Step 4:
Under the Email tab, click the New button to add your e-mail account.

Step 5:
Check the box for Manually configure server settings or additional server types and then click the Next button.

Step 6:
Select the Internet Email type of account and then click the Next button.

Step 7:
Select IMAP from the Account Type drop-down box.

Step 8:
Enter Your Name. This is the name that will appear when others receive your e-mail.
Enter your email address.
Make sure that IMAP is selected from the Account Type drop-down box.
Enter mail.yourdomain.com as the Incoming mail server.
Enter smtp.yourdomain.com as the Outgoing mail server (SMTP).
Enter your full e-mail address as the User Name.
Enter the e-mail account’s Password.
Check the box for Remember password if you do not want to enter your password every time you check or send mail from this account.
Click the More Settings button.

Step 9:
Select the Outgoing Server tab from the top of the new window that opens.

Step 10:
Check the box for My outgoing server (SMTP) requires authentication and ensure that Use same settings as my incoming mail server is selected.

Next, click the Advanced tab at the top of the window.

Step 11:
Enter port “143” as the Incoming server (IMAP) port and ensure that “None” is chosen from the Use the following type of encrypted connection drop-down box.

Step 12:
Choose “None” from the drop-down box next to Use the following type of encrypted connection and enter 25  or 587 as the Outgoing server (SMTP) port.
Click the OK button to save your settings.

Step 13:
Now you can click the Test Account Settings button to verify that the e-mail account can send and receive mail.

Step 14:
If the part of the test fails, go through the previous steps and double-check all of your settings in Outlook. If the test is successful, click the Close button.

Step 15:
Click the Next button.

Step 16:
Click the Finish button.

Step 17:
You may now launch Outlook 2007 and begin writing and checking your mail!

How to increase disk quota of your virtual server using OpenVZ.

Below are the steps on how to increase disk quota of a virtual server running on openvz.

1. Check the disk status of your disk quota.

[root@openvz ~]# vzquota stat 101

[root@openvz ~]# vzquota stat 101
resource          usage       softlimit      hardlimit    grace
1k-blocks         631508         2097152        2306867
inodes          29386          200000         220000
2. In this example, I will increase the disk quota twice as the current size. Take note of the soft limit and hard limit.

[root@openvz ~]# vzctl set 101 –diskspace $(( 2097152*2 )):$(( 2306867*2 )) –save
CT configuration saved to /etc/vz/conf/101.conf

3. Restart the vz service to take effect the changes.

[root@openvz ~]# /etc/init.d/vz restart
Suspending CT 101
Bringing down interface venet0: [ OK ]
Stopping OpenVZ: [ OK ]
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Starting CT 101: [ OK ]

How to backup/restore vm from openvz in Centos 5.8

http://webserverpage.com/?p=237

This is in continuation of the link above.

[root@openvz ~]# vzlist -a
CTID      NPROC STATUS    IP_ADDR         HOSTNAME
101         12 running   192.168.2.127   subopenvz.com

Backup/Restore Openvz VMs with vzdump on CentOS

1. Download and install cstream as it is a depedency for vzdump.
http://pkgs.repoforge.org/cstream/

wget http://pkgs.repoforge.org/cstream/cstream-2.7.4-3.el6.rf.i686.rpm

rpm -Uvh cstream-2.7.4-3.el6.rf.i686.rpm

2. Download and install vzdump.

http://download.openvz.org/contrib/utils/vzdump/

wget http://download.openvz.org/contrib/utils/vzdump/vzdump-1.2-4.noarch.rpm

rpm -Uvh vzdump-1.2-4.noarch.rpm

1.2-6 version of vzdump, the location of the modules is not “automatic” so I need to export the location of the PVE libraries that vzdump requires

export PERL5LIB=/usr/share/perl5/

3. It is time to the backup process.

Checked your current VM veid first:

[root@openvz home]# vzlist -a
CTID      NPROC STATUS    IP_ADDR         HOSTNAME
101         12 running   192.168.2.127   subopenvz.com

4. Create a directory where you want to save the backup. Mine is /home/backup.

mkdir /home/backup

vzdump  –compress –dumpdir /home/backup –stop 101

/************the result should look like this***********/
[root@openvz backup]# vzdump  –compress –dumpdir /home/backup –stop 101
INFO: starting new backup job: vzdump –compress –dumpdir /home/backup –stop 101
INFO: Starting Backup of VM 101 (openvz)
INFO: CTID 101 exist mounted running
INFO: status = CTID 101 exist mounted running
INFO: backup mode: stop
INFO: bandwidth limit: 10240 KB/s
INFO: stopping vm
INFO: Stopping container …
INFO: Container was stopped
INFO: Container is unmounted
INFO: creating archive ‘/home/backup/vzdump-openvz-101-2012_12_07-12_44_15.tgz’
INFO: Total bytes written: 545996800 (521MiB, 3.5MiB/s)
INFO: archive file size: 197MB
INFO: restarting vm
INFO: Dump file /vz/dump/Dump.101 exists, trying to restore from it
INFO: Restoring container …
INFO: Container is mounted
INFO:     undump…
INFO: Container restore failed (try to check kernel messages, e.g. “dmesg | tail”)
INFO: Error: undump failed: Invalid argument
INFO: Restoring failed:
INFO: Error: Unknown image version: 304. Can’t restore.
INFO: Starting container…
INFO: Adding IP address(es): 192.168.2.127
INFO: Setting CPU units: 1000
INFO: Container start in progress…
INFO: vm is online again after 166 seconds
INFO: Finished Backup of VM 101 (00:02:46)
INFO: Backup job finished successfuly
/*************end of results**************************/

So now you backup files will be located at this path.
[root@openvz backup]# ls
vzdump-openvz-101-2012_12_07-12_44_15.log  vzdump-openvz-101-2012_12_07-12_44_15.tgz

To Restore.
Let say the CTID 101 corrupt for some server issues then we can use vzrestore.

yum install vzrestore

cd /home/backup
vzrestore vzdump-openvz-101-yourfilename.tgz 101

Start the vz service to run the restored vm.

[root@openvz private]# service vz restart
Bringing down interface venet0:                            [  OK  ]
Stopping OpenVZ:                                           [  OK  ]
Starting OpenVZ:                                           [  OK  ]
Bringing up interface venet0:                              [  OK  ]
Starting CT 101:                                           [  OK  ]

To uninstall openvz and all the components.

1. To see the list of the packages related to vz.
[root@openvz backup]# rpm -qa | grep vz
vzctl-core-4.1-1
vzquota-3.1-1
vzdump-1.2-4
ovzkernel-2.6.18-308.8.2.el5.028stab101.1
vzkernel-2.6.32-042stab065.3
vzctl-4.1-1
vzkernel-firmware-2.6.32-042stab065.3
ovzkernel-2.6.18-53.1.6.el5.028stab053.6

2. Remove the packages.

[root@openvz backup]# rpm -e vzctl-core-4.1-1 vzquota-3.1-1 vzdump-1.2-4 ovzkernel-2.6.18-308.8.2.el5.028stab101.1 vzkernel-2.6.32-042stab065.3 vzctl-4.1-1 vzkernel-firmware-2.6.32-042stab065.3 ovzkernel-2.6.18-53.1.6.el5.028stab053.6

How to install OpenVZ in CentOS 5.6

Follow the steps below.
1. Turn off SELinux

vi /etc/selinux/config

/************************************************************************/
SELINUX=disabled
SELINUXTYPE=targeted
SETLOCALDEFS=0
/************************************************************************/

2. Reboot the machine then type the command below to see the status of the selinux if it is completely disabled.

Reboot

3. Remove the firewall

chkconfig iptables –level 2345 off
chkconfig iptables –list

cd /etc/yum.repos.d

wget http://download.openvz.org/openvz.repo
rpm –import  http://download.openvz.org/RPM-GPG-Key-OpenVZ

vi openvz.repo  <– to see which repo you want to enable. I just use the rhel5 “[openvz-kernel-rhel5]” as the rhel6 make the kernel of centos 5.6 corrupt. I think rhel6 is for centos 6 and above.

/************************************************************************/
[openvz-utils]
name=OpenVZ utilities
mirrorlist=http://download.openvz.org/mirrors-current
enabled=1
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ

# Stable branches
[openvz-kernel-rhel5]
name=OpenVZ RHEL5-based kernel
#baseurl=http://download.openvz.org/kernel/branches/rhel5-2.6.18/current/
mirrorlist=http://download.openvz.org/kernel/mirrors-rhel5-2.6.18
enabled=1
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ
/************************************************************************/

yum update

yum install openvz-kernel-rhel5 vzctl vzquota bridge-utils -y

Or

Manually install of ovzkernel
wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab101.1/ovzkernel-2.6.18-308.8.2.el5.028stab101.1.i686.rpm
yum install ovzkernel-2.6.18-308.8.2.el5.028stab101.1.i686.rpm

vi /boot/grub/grub.conf

/************************************************************************/
default 0
title OpenVZ (…)
—–
default=0
….
title OpenVz (2.6.18-128.2.1.el5.028stab064.7)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.2.1.el5.028stab064.7 ro root=LABEL=/
initrd /initrd-2.6.18-128.2.1.el5.028stab064.7.img
title CentOS (2.6.18-128.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=/
initrd /initrd-2.6.18-128.el5.img
—–
/************************************************************************/

vi /etc/sysctl.conf

/************************************************************************/
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
kernel.core_uses_pid = 1
/************************************************************************/

Next is to install a template for the distribution.

You may follow the link below to download your desired template.

http://wiki.openvz.org/Download/template/precreated

cd /vz/template/cache
wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-default.tar.gz

 

To set up a VPS from the default CentOS 5 template, run:

vzctl create 101 –ostemplate centos-5-i386-default –config vps.basic

 

Set to start on boot. Type the commands below to the terminal.

vzctl set 101 –onboot yes –save

vzctl set 101 –hostname openvz.com –save
vzctl set 101 –ipadd 192.168.2.127 –save

Set the number of sockets to 120 and assign a few nameservers to the vm:

vzctl set 101 –numothersock 120 –save

vzctl set 101 –nameserver 8.8.8.8  –save

I just use google name server for this example.

vzctl start 101

vzctl exec 101 passwd

You can now connect using ssh or terminal client.

You may also try to upload your website at this location

/vz/private/101/var/www/html

/*****index.html*********/

<html>
<body>
This is my test index file inside my /vz/private/101/var/www/html
</body>
</html>

/****end of my code******/

This is my test index file inside my /vz/private/101/var/www/html

then type the ip address that you have assigned in your openvz.

http://192.168.2.127

How to reset or view your current admin password in PLESK 11 or any version.

You may need to have a root access to the main server where the PLESK have been installed.

Please type the command below to show your current password.

[root@centos ]# /usr/local/psa/bin/admin –show-password
sKyMI8DrPa6B

Below is the command to reset the ‘admin’ user password.

[root@centos ]# /usr/local/psa/bin//init_conf -u -passwd

Raw SMTP Sending

[root@centos home]# telnet 127.0.0.1 25
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
220 centos.centos.com ESMTP Postfix

HELO webserverpage.com
250 mail.webserverpage.com

MAIL FROM: <barrack.obama@usa.com>
250 ok
RCPT TO: <choi@webserverpage.com>
250 ok
DATA
354 go ahead
From: “Barrack Obama”
Subject: President Message

Peace!
.
250 ok 1354599764 qp 21307