Showing posts with label CentOS 6.3. Show all posts
Showing posts with label CentOS 6.3. Show all posts

How to Yum on RHEL 6.3 or Scientific Linux 6.3 or Centos 6.3


Here is my final Script
At first Insert  Your RHEL 6.3 or Scientific Linux 6.3 or Centos 6.3 DVD your DVD ROM
# df -h [show where your dvd are mounted,i used here /dev/sr0 to /mnt]

please copy this script and Save as
yum.sh
after save this script plz set permission
#chmod +x yum.sh
#./yum.sh
df -h
cd /etc/yum.repos.d/
rm -rf *
touch /etc/yum.repos.d/rhel6.repo
Details Here: Read More

How to Yum on RHEL 6.3 or Scientific Linux 6.3 or Centos 6.3


Here is my final Script
At first Insert  Your RHEL 6.3 or Scientific Linux 6.3 or Centos 6.3 DVD your DVD ROM
# df -h [show where your dvd are mounted,i used here /dev/sr0 to /mnt]

please copy this script and Save as
yum.sh
after save this script plz set permission
#chmod +x yum.sh
#./yum.sh
df -h
cd /etc/yum.repos.d/
rm -rf *
touch /etc/yum.repos.d/rhel6.repo
Details Here: Read More

How to Ekiga on RHEL 6.3 or Centos 6.3 or Scientific Linux 6.3


Ekiga

Ekiga (formely known as GnomeMeeting) is an open source VoIP and video conferencing application for GNOME. Ekiga uses both the H.323 and SIP protocols.
Ekiga is compatible with any software, device or router supporting SIP or H.323. It includes SwissVoice, CISCO, SNOM, ... IP Phones, but also software like Windows Messenger, Netmeeting, SJPhone, Eyebeam, X-Lite, ... or also the Asterisk popular IPBX, as well as any other commercial or Open Source IPBX. Ekiga is not compatible with Skype.
It supports all major features defined by those protocols like call hold, call transfer, call forwarding, ... It also supports basic instant messaging, and has advanced support for NAT traversal. Ekiga supports the best free audio and video codecs, and has wideband support for a superior audio quality, together with echo cancellation.
Ekiga has been designed for the GNOME desktop but it works very well with the KDEdesktop too. For example, Ekiga provides an animated icon automatically added in the KDEsystem tray.

How to Ekiga on RHEL 6.3 or Centos 6.3 or Scientific Linux 6.3


Ekiga

Ekiga (formely known as GnomeMeeting) is an open source VoIP and video conferencing application for GNOME. Ekiga uses both the H.323 and SIP protocols.
Ekiga is compatible with any software, device or router supporting SIP or H.323. It includes SwissVoice, CISCO, SNOM, ... IP Phones, but also software like Windows Messenger, Netmeeting, SJPhone, Eyebeam, X-Lite, ... or also the Asterisk popular IPBX, as well as any other commercial or Open Source IPBX. Ekiga is not compatible with Skype.
It supports all major features defined by those protocols like call hold, call transfer, call forwarding, ... It also supports basic instant messaging, and has advanced support for NAT traversal. Ekiga supports the best free audio and video codecs, and has wideband support for a superior audio quality, together with echo cancellation.
Ekiga has been designed for the GNOME desktop but it works very well with the KDEdesktop too. For example, Ekiga provides an animated icon automatically added in the KDEsystem tray.

How to NIS server on RHEL 6.4 or Centos 6.4 or Scientific Linux 6.4

    It is very easy to Implement a Network Information Service (NIS).Do not worry., It is work 100%.                        
                                                         Selinux must be Permissive or Disable
[root@muraditbd ~]# getenforce
Enforcing
[root@muraditbd ~]# setenforce 0
[root@muraditbd ~]# getenforce
Permissive
[root@muraditbd ~]# service iptables status
iptables: Firewall is not running.

[root@muraditbd ~]# yum install yp* -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yp-tools.i686 0:2.9-12.el6 will be installed
---> Package ypbind.i686 3:1.20.4-29.el6 will be installed
---> Package ypserv.i686 0:2.19-22.el6 will be installed
--> Finished Dependency Resolution


Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
yp-tools i686 2.9-12.el6 base 63 k
ypbind i686 3:1.20.4-29.el6 base 50 k
ypserv i686 2.19-22.el6 base 127 k

Transaction Summary
================================================================================
Install 3 Package(s)

Total download size: 240 k
Installed size: 532 k
Downloading Packages:
--------------------------------------------------------------------------------
Total 19 MB/s | 240 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 3:ypbind-1.20.4-29.el6.i686 1/3
Installing : yp-tools-2.9-12.el6.i686 2/3
Installing : ypserv-2.19-22.el6.i686 3/3
Verifying : yp-tools-2.9-12.el6.i686 1/3
Verifying : ypserv-2.19-22.el6.i686 2/3
Verifying : 3:ypbind-1.20.4-29.el6.i686 3/3

Installed:
yp-tools.i686 0:2.9-12.el6 ypbind.i686 3:1.20.4-29.el6 ypserv.i686 0:2.19-22.el6

Complete!

[root@muraditbd ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=muraditbd.com
NISDOMAIN=muraditbd.com
[root@muraditbd ~]# nisdomainname muraditbd.com
Read More

How to NIS server on RHEL 6.4 or Centos 6.4 or Scientific Linux 6.4

    It is very easy to Implement a Network Information Service (NIS).Do not worry., It is work 100%.                        
                                                         Selinux must be Permissive or Disable
[root@muraditbd ~]# getenforce
Enforcing
[root@muraditbd ~]# setenforce 0
[root@muraditbd ~]# getenforce
Permissive
[root@muraditbd ~]# service iptables status
iptables: Firewall is not running.

[root@muraditbd ~]# yum install yp* -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yp-tools.i686 0:2.9-12.el6 will be installed
---> Package ypbind.i686 3:1.20.4-29.el6 will be installed
---> Package ypserv.i686 0:2.19-22.el6 will be installed
--> Finished Dependency Resolution


Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
yp-tools i686 2.9-12.el6 base 63 k
ypbind i686 3:1.20.4-29.el6 base 50 k
ypserv i686 2.19-22.el6 base 127 k

Transaction Summary
================================================================================
Install 3 Package(s)

Total download size: 240 k
Installed size: 532 k
Downloading Packages:
--------------------------------------------------------------------------------
Total 19 MB/s | 240 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 3:ypbind-1.20.4-29.el6.i686 1/3
Installing : yp-tools-2.9-12.el6.i686 2/3
Installing : ypserv-2.19-22.el6.i686 3/3
Verifying : yp-tools-2.9-12.el6.i686 1/3
Verifying : ypserv-2.19-22.el6.i686 2/3
Verifying : 3:ypbind-1.20.4-29.el6.i686 3/3

Installed:
yp-tools.i686 0:2.9-12.el6 ypbind.i686 3:1.20.4-29.el6 ypserv.i686 0:2.19-22.el6

Complete!

[root@muraditbd ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=muraditbd.com
NISDOMAIN=muraditbd.com
[root@muraditbd ~]# nisdomainname muraditbd.com
Read More

How to PXE on RHEL 6.4 or Centos 6.4 or Scientific Linux 6.4

Here is Final PXE & Kickstart Configuration.It is 100% work.
Coverage this tutorila
(1) DHCP SERVER (2) TFTP SERVER (3) NFS SERVER (4) PXE & KICKSTART CONFIGURATION

[SELINUX MUST BE permissive or disabled]
#vim /etc/sysconfig/selinux
selinux=disabled
save & exit
# reboot
#getenforce
[note if show selinux is disabled fine or if show selinux status enforcing or Permissive follow those Instruction]
if show Enforcing
to set selinux=Permissive
#setenforce 0
you can show selinux status
#getenforce

'1' for Enforcing '0' for Permissive

Set your Local LAN Static IP
I used Here: 192.168.0.254
#serrvice NetworkManager stop;
#chkconfig NetworkManager off;
#ifdown eth0;
#ifup eth0;
#yum install dhcp* -y
#vim /etc/dhcp/dhcpd.conf

all content are remove & Insert all line
----------------------------------------------------------------
ddns-update-style interim;
ignore client-updates;
authoritative;
allow booting;
allow bootp;
allow unknown-clients;
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.1 192.168.0.253;
  option domain-name-servers 192.168.0.254;
  option domain-name "server1.example.com";
  option routers 192.168.0.254;
  option broadcast-address 10.5.5.31;
  default-lease-time 600;
  max-lease-time 7200;

# PXE SERVER IP

next-server 192.168.0.254;
filename "pxelinux.0";
}

Save & Exit

Read More

How to PXE on RHEL 6.4 or Centos 6.4 or Scientific Linux 6.4

Here is Final PXE & Kickstart Configuration.It is 100% work.
Coverage this tutorila
(1) DHCP SERVER (2) TFTP SERVER (3) NFS SERVER (4) PXE & KICKSTART CONFIGURATION

[SELINUX MUST BE permissive or disabled]
#vim /etc/sysconfig/selinux
selinux=disabled
save & exit
# reboot
#getenforce
[note if show selinux is disabled fine or if show selinux status enforcing or Permissive follow those Instruction]
if show Enforcing
to set selinux=Permissive
#setenforce 0
you can show selinux status
#getenforce

'1' for Enforcing '0' for Permissive

Set your Local LAN Static IP
I used Here: 192.168.0.254
#serrvice NetworkManager stop;
#chkconfig NetworkManager off;
#ifdown eth0;
#ifup eth0;
#yum install dhcp* -y
#vim /etc/dhcp/dhcpd.conf

all content are remove & Insert all line
----------------------------------------------------------------
ddns-update-style interim;
ignore client-updates;
authoritative;
allow booting;
allow bootp;
allow unknown-clients;
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.1 192.168.0.253;
  option domain-name-servers 192.168.0.254;
  option domain-name "server1.example.com";
  option routers 192.168.0.254;
  option broadcast-address 10.5.5.31;
  default-lease-time 600;
  max-lease-time 7200;

# PXE SERVER IP

next-server 192.168.0.254;
filename "pxelinux.0";
}

Save & Exit

Read More

how to Configure proxy (Squid) on RHEL 6.3 & Centos 6.3

# install squid* -y
# vim /etc/squid/squid.conf


1 visible_hostname Murad Proxy server

30 acl mynetworks src 192.168.0.0/24
31 acl badsite dstdomain "/etc/squid/badsite.conf"
35 http_access deny badsite
36 http_access allow mynetworks
66 http_port 3128 transparent

Read More

how to Configure proxy (Squid) on RHEL 6.3 & Centos 6.3

# install squid* -y
# vim /etc/squid/squid.conf


1 visible_hostname Murad Proxy server

30 acl mynetworks src 192.168.0.0/24
31 acl badsite dstdomain "/etc/squid/badsite.conf"
35 http_access deny badsite
36 http_access allow mynetworks
66 http_port 3128 transparent

Read More

How to install wine on RHEL 6.3 & Centos 6.3

Install Howto

  1. Download the latest epel-release rpm from
    (a) http://dl.fedoraproject.org/pub/epel/6/SRPMS/epel-release-6-8.src.rpm
    (b) http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  2. Install epel-release rpm:
    # rpm -Uvh epel-release*rpm
  3. Install epel-release rpm package:
    # yum install epel-release
     
    #yum list all;
    #yum update all;
    #yum install wine* -y;
     
     Read More:
    ###################### GET Magic ######################## 

How to install wine on RHEL 6.3 & Centos 6.3

Install Howto

  1. Download the latest epel-release rpm from
    (a) http://dl.fedoraproject.org/pub/epel/6/SRPMS/epel-release-6-8.src.rpm
    (b) http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  2. Install epel-release rpm:
    # rpm -Uvh epel-release*rpm
  3. Install epel-release rpm package:
    # yum install epel-release
     
    #yum list all;
    #yum update all;
    #yum install wine* -y;
     
     Read More:
    ###################### GET Magic ######################## 

RHEL 6.3,Centos 6.3 ,Scientific Linux 6.3 Shutdown, Restart and Logout of a system Command

 

Command
Description
# init 0
shutdown system
# logout
leaving session  
# reboot
reboot
# shutdown -h now
shutdown system
# shutdown -h 16:30 &
planned shutdown of the system  
# shutdown -c
cancel a planned shutdown of the system  
# shutdown -r now
reboot  
# telinit 0
shutdown system
# halt
 For shutdown system

RHEL 6.3,Centos 6.3 ,Scientific Linux 6.3 Shutdown, Restart and Logout of a system Command

 

Command
Description
# init 0
shutdown system
# logout
leaving session  
# reboot
reboot
# shutdown -h now
shutdown system
# shutdown -h 16:30 &
planned shutdown of the system  
# shutdown -c
cancel a planned shutdown of the system  
# shutdown -r now
reboot  
# telinit 0
shutdown system
# halt
 For shutdown system

RHEL 6.3 ,CentOS 6.3 ,Scientific Linux 6.3 Advanced Linux Command

Advanced Command

Command
Description
[root@server1 /]# ls
[root@server1 ~]# ls
anaconda-ks.cfg  Documents  file1  install.log.syslog  Pictures  TemplatesDesktop  Downloads  install.log  Music      Public    Videos
Show list of directory
[root@server1 ~]# ls –a
[root@server1 ~]# su user1
[user1@server1 root]$ cd
[user1@server1 ~]$ ls -a
.  ..  .bash_history  .bash_logout  .bash_profile  .bashrc  .gnome2  .mozilla  .viminfo
 Show hidden content of a directory
[user1@server1 ~]$ su root
Password:
[root@server1 user1]# cd
[root@server1 ~]# ls -l
total 104
-rw-------. 1 root root  2467 Dec 15 20:25 anaconda-ks.cfg
drwxr-xr-x. 2 root root  4096 Dec 18 02:04 Desktop
drwxr-xr-x. 2 root root  4096 Dec 16 00:34 Documents
drwxr-xr-x. 2 root root  4096 Dec 16 00:34 Downloads
Show Content list with Permission
[root@server1 ~]# ls -lh
total 104K
-rw-------. 1 root root 2.5K Dec 15 20:25 anaconda-ks.cfg
drwxr-xr-x. 2 root root 4.0K Dec 18 02:04 Desktop
drwxr-xr-x. 2 root root 4.0K Dec 16 00:34 Documents
drwxr-xr-x. 2 root root 4.0K Dec 16 00:34 Downloads

Show content total & Individual
 Content size.
[root@server1 ~]# ls -lt
total 148
-rw-r--r--  1 root root 46974 Dec 18 04:02 install.log
 List by Modification
[root@server1 ~]# ls
install.log         Music     Public     Videos
anaconda-ks.cfg  Documents  file1      install.log.syslog  Pictures  Templates
[root@server1 ~]# more install.log
 Show content with list
Then press Enter
[root@server1 ~]# clear
Clear Screen
[root@server1 ~]# tree
Content show with tree diagram
[root@server1 ~]# rmdir
[root@server1 ~]# mkdir 1
[root@server1 ~]# rmdir 1
 Remove Emtpy directory
[root@server1 ~]# hwclock
Tue 18 Dec 2012 04:20:34 AM BDT  -0.924766 seconds
  Show DATE & TIME
[root@server1 ~]# history 10
Show content history
[root@server1 ~]# mail
 mail from /var/spool/mail
[root@server1 ~]# locate resolv.conf
/etc/resolv.conf
/etc/sysconfig/networking/profiles/default/resolv.conf
/usr/share/man/man5/resolv.conf.5.gz
Search file or service from full system
Last update #updatedb


RHEL 6.3 ,CentOS 6.3 ,Scientific Linux 6.3 Advanced Linux Command

Advanced Command

Command
Description
[root@server1 /]# ls
[root@server1 ~]# ls
anaconda-ks.cfg  Documents  file1  install.log.syslog  Pictures  TemplatesDesktop  Downloads  install.log  Music      Public    Videos
Show list of directory
[root@server1 ~]# ls –a
[root@server1 ~]# su user1
[user1@server1 root]$ cd
[user1@server1 ~]$ ls -a
.  ..  .bash_history  .bash_logout  .bash_profile  .bashrc  .gnome2  .mozilla  .viminfo
 Show hidden content of a directory
[user1@server1 ~]$ su root
Password:
[root@server1 user1]# cd
[root@server1 ~]# ls -l
total 104
-rw-------. 1 root root  2467 Dec 15 20:25 anaconda-ks.cfg
drwxr-xr-x. 2 root root  4096 Dec 18 02:04 Desktop
drwxr-xr-x. 2 root root  4096 Dec 16 00:34 Documents
drwxr-xr-x. 2 root root  4096 Dec 16 00:34 Downloads
Show Content list with Permission
[root@server1 ~]# ls -lh
total 104K
-rw-------. 1 root root 2.5K Dec 15 20:25 anaconda-ks.cfg
drwxr-xr-x. 2 root root 4.0K Dec 18 02:04 Desktop
drwxr-xr-x. 2 root root 4.0K Dec 16 00:34 Documents
drwxr-xr-x. 2 root root 4.0K Dec 16 00:34 Downloads

Show content total & Individual
 Content size.
[root@server1 ~]# ls -lt
total 148
-rw-r--r--  1 root root 46974 Dec 18 04:02 install.log
 List by Modification
[root@server1 ~]# ls
install.log         Music     Public     Videos
anaconda-ks.cfg  Documents  file1      install.log.syslog  Pictures  Templates
[root@server1 ~]# more install.log
 Show content with list
Then press Enter
[root@server1 ~]# clear
Clear Screen
[root@server1 ~]# tree
Content show with tree diagram
[root@server1 ~]# rmdir
[root@server1 ~]# mkdir 1
[root@server1 ~]# rmdir 1
 Remove Emtpy directory
[root@server1 ~]# hwclock
Tue 18 Dec 2012 04:20:34 AM BDT  -0.924766 seconds
  Show DATE & TIME
[root@server1 ~]# history 10
Show content history
[root@server1 ~]# mail
 mail from /var/spool/mail
[root@server1 ~]# locate resolv.conf
/etc/resolv.conf
/etc/sysconfig/networking/profiles/default/resolv.conf
/usr/share/man/man5/resolv.conf.5.gz
Search file or service from full system
Last update #updatedb


Postfix,SMTP Email Server on CentOS 6.3 OR Scientific Linux 6.3,RHEl 6.3

Final  Postfix dovcot Server configure & test

[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 Desktop]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 yum install postfix dovecot squirrelmail -y
Loaded plugins: refresh-packagekit, security
other                                                                                                 | 1.3 kB     00:00 ...
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be installed
---> Package squirrelmail.noarch 0:1.4.22-3.el6 will be installed
--> Processing Dependency: php for package: squirrelmail-1.4.22-3.el6.noarch
--> Running transaction check
---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                        Arch                     Version                                Repository              Size
=============================================================================================================================
Installing:
 dovecot                        x86_64                   1:2.0.9-2.el6_1.1                      base                   1.9 M
 postfix                        x86_64                   2:2.6.6-2.2.el6_1                      base                   2.0 M
 squirrelmail                   noarch                   1.4.22-3.el6                           base                   4.1 M
Installing for dependencies:
 php                            x86_64                   5.3.3-3.el6_2.8                        base                   1.1 M

Transaction Summary
=============================================================================================================================
Install       4 Package(s)

Total download size: 9.2 M
Installed size: 39 M
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                         34 MB/s | 9.2 MB     00:00   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                          1/4
  Installing : php-5.3.3-3.el6_2.8.x86_64                                                                                2/4
  Installing : squirrelmail-1.4.22-3.el6.noarch                                                                          3/4
  Installing : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                                                          4/4
  Verifying  : squirrelmail-1.4.22-3.el6.noarch                                                                          1/4
  Verifying  : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                                                          2/4
  Verifying  : php-5.3.3-3.el6_2.8.x86_64                                                                                3/4
  Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                          4/4

Installed:
  dovecot.x86_64 1:2.0.9-2.el6_1.1        postfix.x86_64 2:2.6.6-2.2.el6_1        squirrelmail.noarch 0:1.4.22-3.el6     

Dependency Installed:
  php.x86_64 0:5.3.3-3.el6_2.8                                                                                             

Complete!
############################### STEP 02 ##################################
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
################################## STEP 03 #####################################
[root@server1 ~]# vim /etc/postfix/main.cf

Change

From

75 #myhostname = host.domain.tld
83 #mydomain = domain.tld
99 #myorigin = $mydomain
113 #inet_interfaces = all
116 inet_interfaces = localhost
164 mydestination = $myhostname, localhost.$mydomain, localhost
165 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 #home_mailbox = Maildir/


To

75 myhostname = mail.example.com
83 mydomain = example.com
99 myorigin = $mydomain
113 inet_interfaces = all
116 #inet_interfaces = localhost
164 #mydestination = $myhostname, localhost.$mydomain, localhost
165 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 home_mailbox = Maildir/
:wq save and quit

[root@server1 ~]# service postfix restart;chkconfig postfix on;service postfix status;
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
master (pid  3604) is running...

Read more

Postfix,SMTP Email Server on CentOS 6.3 OR Scientific Linux 6.3,RHEl 6.3

Final  Postfix dovcot Server configure & test

[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 Desktop]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 yum install postfix dovecot squirrelmail -y
Loaded plugins: refresh-packagekit, security
other                                                                                                 | 1.3 kB     00:00 ...
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be installed
---> Package squirrelmail.noarch 0:1.4.22-3.el6 will be installed
--> Processing Dependency: php for package: squirrelmail-1.4.22-3.el6.noarch
--> Running transaction check
---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                        Arch                     Version                                Repository              Size
=============================================================================================================================
Installing:
 dovecot                        x86_64                   1:2.0.9-2.el6_1.1                      base                   1.9 M
 postfix                        x86_64                   2:2.6.6-2.2.el6_1                      base                   2.0 M
 squirrelmail                   noarch                   1.4.22-3.el6                           base                   4.1 M
Installing for dependencies:
 php                            x86_64                   5.3.3-3.el6_2.8                        base                   1.1 M

Transaction Summary
=============================================================================================================================
Install       4 Package(s)

Total download size: 9.2 M
Installed size: 39 M
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                         34 MB/s | 9.2 MB     00:00   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                          1/4
  Installing : php-5.3.3-3.el6_2.8.x86_64                                                                                2/4
  Installing : squirrelmail-1.4.22-3.el6.noarch                                                                          3/4
  Installing : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                                                          4/4
  Verifying  : squirrelmail-1.4.22-3.el6.noarch                                                                          1/4
  Verifying  : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                                                          2/4
  Verifying  : php-5.3.3-3.el6_2.8.x86_64                                                                                3/4
  Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                          4/4

Installed:
  dovecot.x86_64 1:2.0.9-2.el6_1.1        postfix.x86_64 2:2.6.6-2.2.el6_1        squirrelmail.noarch 0:1.4.22-3.el6     

Dependency Installed:
  php.x86_64 0:5.3.3-3.el6_2.8                                                                                             

Complete!
############################### STEP 02 ##################################
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
################################## STEP 03 #####################################
[root@server1 ~]# vim /etc/postfix/main.cf

Change

From

75 #myhostname = host.domain.tld
83 #mydomain = domain.tld
99 #myorigin = $mydomain
113 #inet_interfaces = all
116 inet_interfaces = localhost
164 mydestination = $myhostname, localhost.$mydomain, localhost
165 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 #home_mailbox = Maildir/


To

75 myhostname = mail.example.com
83 mydomain = example.com
99 myorigin = $mydomain
113 inet_interfaces = all
116 #inet_interfaces = localhost
164 #mydestination = $myhostname, localhost.$mydomain, localhost
165 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 home_mailbox = Maildir/
:wq save and quit

[root@server1 ~]# service postfix restart;chkconfig postfix on;service postfix status;
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
master (pid  3604) is running...

Read more

How to Configure DNS on CentOS 6.3 & RHEL 6.3,Scientific Linux 6.3

############################# STEP-01 ##########################
[root@localhost ~]# hostname
localhost.localdomain
root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server1.example.com

[root@server1 Desktop]# yum install bind -y
Loaded plugins: refresh-packagekit, security
other                                                                                                                  20/20
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package bind.x86_64 32:9.8.2-0.10.rc1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                 Arch                      Version                                     Repository               Size
=============================================================================================================================
Installing:
 bind                    x86_64                    32:9.8.2-0.10.rc1.el6                       base                    4.0 M

Transaction Summary
=============================================================================================================================
Install       1 Package(s)

Total download size: 4.0 M
Installed size: 7.2 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1
  Verifying  : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1

Installed:
  bind.x86_64 32:9.8.2-0.10.rc1.el6                                                                                        

Complete!


################################ STEP-02 ########################################

[root@server1 Desktop]# mkdir -p /bakup/dns
[root@server1 Desktop]# cp /etc/named.conf /bakup/dns/named.conf.original
[root@server1 Desktop]# cp /etc/named.rfc1912.zones /bakup/dns/named.rfc1912.zones.original
[root@server1 Desktop]# vim /etc/named.conf
From

11         listen-on port 53 { 127.0.0.1; };

            To

11         listen-on port 53 { 192.168.0.254; };

17         allow-query     { any; };

Save&exit
[root@server1 Desktop]# vim /etc/named.rfc1912.zones

From

 13 zone "localhost.localdomain" IN {
 14         type master;
 15         file "named.localhost";
 16         allow-update { none; };
 17 };

31 zone "1.0.0.127.in-addr.arpa" IN {
 32         type master;
 33         file "named.loopback";
 34         allow-update { none; };
 35 };


To

13 zone "example.com" IN {
 14         type master;
 15         file "forward.zone";
 16         allow-update { none; };
 17 };

31 zone "0.168.192.in-addr.arpa" IN {
 32         type master;
 33         file "reverse.zone";
 34         allow-update { none; };
 35 };
Read More

How to Configure DNS on CentOS 6.3 & RHEL 6.3,Scientific Linux 6.3

############################# STEP-01 ##########################
[root@localhost ~]# hostname
localhost.localdomain
root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server1.example.com

[root@server1 Desktop]# yum install bind -y
Loaded plugins: refresh-packagekit, security
other                                                                                                                  20/20
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package bind.x86_64 32:9.8.2-0.10.rc1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                 Arch                      Version                                     Repository               Size
=============================================================================================================================
Installing:
 bind                    x86_64                    32:9.8.2-0.10.rc1.el6                       base                    4.0 M

Transaction Summary
=============================================================================================================================
Install       1 Package(s)

Total download size: 4.0 M
Installed size: 7.2 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1
  Verifying  : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1

Installed:
  bind.x86_64 32:9.8.2-0.10.rc1.el6                                                                                        

Complete!


################################ STEP-02 ########################################

[root@server1 Desktop]# mkdir -p /bakup/dns
[root@server1 Desktop]# cp /etc/named.conf /bakup/dns/named.conf.original
[root@server1 Desktop]# cp /etc/named.rfc1912.zones /bakup/dns/named.rfc1912.zones.original
[root@server1 Desktop]# vim /etc/named.conf
From

11         listen-on port 53 { 127.0.0.1; };

            To

11         listen-on port 53 { 192.168.0.254; };

17         allow-query     { any; };

Save&exit
[root@server1 Desktop]# vim /etc/named.rfc1912.zones

From

 13 zone "localhost.localdomain" IN {
 14         type master;
 15         file "named.localhost";
 16         allow-update { none; };
 17 };

31 zone "1.0.0.127.in-addr.arpa" IN {
 32         type master;
 33         file "named.loopback";
 34         allow-update { none; };
 35 };


To

13 zone "example.com" IN {
 14         type master;
 15         file "forward.zone";
 16         allow-update { none; };
 17 };

31 zone "0.168.192.in-addr.arpa" IN {
 32         type master;
 33         file "reverse.zone";
 34         allow-update { none; };
 35 };
Read More