SAINORA

HomeBlogsConfigure Mail Server in Linux

Configure Mail Server in Linux

[root@redhat ]# yum install bind

Loaded plugins: security

Server                                                        | 1.1 kB 00:00     

Server/primary                                                | 838 kB 00:00     

Server                                                                     2352/2352

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package bind.i386 30:9.3.6-4.P1.el5_4.2 set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


========================================================================================

Package     Arch        Version                        Repository     Size

========================================================================================

Installing:

bind        i386        30:9.3.6-4.P1.el5_4.2          Server        985 k


Transaction Summary

========================================================================================

Install    1 Package(s)

Upgrade    0 Package(s)


Total download size: 985 k

Is this ok [y/N]: y

Downloading Packages:

bind-9.3.6-4.P1.el5_4.2.i386.rpm                              | 985 kB 00:00     

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

 Installing : bind                                                          1/1


Installed:

 bind.i386 30:9.3.6-4.P1.el5_4.2                                                       


Complete!

[root@redhat ]#


[root@redhat ~]# yum install system-config-bind

Loaded plugins: security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package system-config-bind.noarch 0:4.0.3-4.0.1.el5 set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


========================================================================================

Package                 Arch        Version              Repository   Size

========================================================================================

Installing:

system-config-bind      noarch      4.0.3-4.0.1.el5      Server      5.3 M


Transaction Summary

========================================================================================

Install    1 Package(s)

Upgrade    0 Package(s)


Total download size: 5.3 M

Is this ok [y/N]: y

Downloading Packages:

system-config-bind-4.0.3-4.0.1.el5.noarch.rpm                 | 5.3 MB 00:00     

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

 Installing : system-config-bind                                            1/1


Installed:

 system-config-bind.noarch 0:4.0.3-4.0.1.el5                                           


Complete!

[root@redhat ~]#


[root@redhat ~]# vi /etc/resolv.conf

[root@redhat ~]# service named start

Starting named:                                         [  OK  ]

[root@redhat ~]# chkconfig --add named

[root@redhat ~]# yum install postfix

Loaded plugins: security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package postfix.i386 2:2.3.3-2.1.el5_2 set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

Package      Arch      Version                   Repository   Size

================================================================================

Installing:

postfix      i386      2:2.3.3-2.1.el5_2         Server      3.6 M


Transaction Summary

================================================================================

Install    1 Package(s)

Upgrade    0 Package(s)


Total download size: 3.6 M

Is this ok [y/N]: y

Downloading Packages:

postfix-2.3.3-2.1.el5_2.i386.rpm                      | 3.6 MB 00:00     

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

 Installing : postfix                                               1/1


Installed:

 postfix.i386 2:2.3.3-2.1.el5_2                                                


Complete!

[root@redhat ~]#


[root@redhat ~]# alternatives --config mta


There are 2 programs which provide 'mta'.


 Selection Command

-----------------------------------------------

*+ 1        /usr/sbin/sendmail.sendmail

  2        /usr/sbin/sendmail.postfix


Enter to keep the current selection[+], or type selection number: 2

[root@redhat ~]#

[root@redhat ~]# vi /etc/postfix/main.cf

[root@redhat ~]# service postfix start

Starting postfix:                                       [  OK  ]

[root@redhat ~]# chkconfig --add postfix

[root@redhat ~]#


Published on 18th June 2013

Published by Gopinathan D