SlideShare una empresa de Scribd logo
1 de 6
Trung Tâm Đào Tạo
Quản Trị Mạng Và An Ninh Mạng Quốc Tế Athena
Báo Cáo Thực Tập Tuần II
Sinh viên thực tập: Nguyễn Trần Minh Tiến
Khoa: Công nghệ thông tin
Trường: ĐH Quốc Tế - ĐH Quốc Gia Tp Hồ Chí Minh
Ngành thực tập: Công nghệ thông tin
Đề tài thực tập: Xây dựng hệ thống mail server
(Postfix, Dovecot) doanh nghiệp trên Linux
Giáo viên hướng dẫn: Võ Đỗ Thắng
Tuần 2: 23/06/2014 – 27/06/2014
Nội Dung
I. Cấu hình IP static và Hostname.................................................................................3
1. Gán IP static ...........................................................................................................3
2. Cấu hình Hostname................................................................................................3
II. Cấu hình DNS...............................................................................................................3
1. Cài đặt DNS ............................................................................................................3
2. Cấu hình DNS..........................................................................................................4
III. Khởi động các dịch vụ và tắt fire wall.........................................................................6
1. Khởi động các dịch vụ............................................................................................6
2. Tắt firewall .............................................................................................................6
I. Cấu hình IP static và Hostname:
1. Cấu hình IP static:
Gán IP Staticcho serverlà: 192.168.1.245 theolệnh:
[root@server~]#vi /etc/sysconfig/network-scripts/ifcfg-eth1
Sau đó thêmvào các dòng sau:
DEVICE="eth1"
HWADDR=""
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=static
IPADDR=192.168.1.245
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
DNS1=8.8.8.8
2. Cấu hình Hostname:
Sửa file /etc/hostschúngtadùnglệnhvàthêmvào dòngsau:
[root@server]#vi /etc/hosts
127.0.0.1 mail.server.athena.lab
192.168.1.245 mail.server.athena.lab
Và lệnh:
[root@server~]#vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server.athena.lab
II. Cấu hình DNS:
1. Cài đặt DNS:
[root@server~]# rpm –ivhbind-libs-9.3.3-10.el5.i386.rpm
[root@server~]#rpm –ivhbind-9.3.3-10.el5,i386.rpm
[root@server~]#rpm –ivhbind-utils-9.3.3-10.el5.i386.rpm
2. Cấu hình DNS:
[root@server~]#vi /etc/named.conf
Và thêmcác dòng sau:
Options
{
Query-source port 53;
Query-source port 53;
Directory “/var/named”;//the default
Dump-file “/var/named/data/cache_dump.db”;
Statistics-file “/var/named/data/named_stats.txt”;
Memstatistics-file “/var/named/data/named_mem_stats.txt”;
Notify yes;
};
Zone “.” In{
Type=master;
File “server.athena.lab.db”;
};
Zone “server.athena.lab”{
Type master;
File “server.athena.lab.db”
}
Zone “1.168.192.in-addr.arpa” {
Type master;
File “1.168.192.in-addr.arpa.db”;
}
- Tạo file /var/named/named.rootbằngcáchdownloadtrênmạngnhư sau:
[root@server/]#cd /var/named
Chú ý:Serverphải kếtnối tới Internet.
- Tạo fie /var/named/localhost.db:
[root@servernamed]#vi /var/named/server.athena.lab.db
$TTL 86400 ;1 day
@ IN S0A dns1.server.athena.lab. root(
20080213 ; serial
10800 ; refresh(3 hours)
3600 ; retry (1 hour)
604800 ; expire (1week)
86400 ; minimum(1day
)
IN NS dns1.server.athena.lab.
Mail IN A 192.168.1.245
- Tạo file /var/named/1.168.192.in-addr.arpa.db:
[root@servernamed]#vi /var/named/1.168.192.in-addr.arpa.db
$TTL 86400 ;1 day
@ IN S0A dns1.server.athena.lab. root(
20080213 ; serial
10800 ; refresh(3 hours)
3600 ; retry (1 hour)
604800 ; expire (1week)
86400 ; minimum(1day
)
IN NS dns1.server.athena.lab.
245 IN PTR mail.athena.edu.vn
III. Khởi độngdịch vụ và tắt firewall:
-Start nameddaemon:
[root@servernamed]#service namedstart
Terminnal sẽ hiểnthị:
Startingnamed: [OK]
-Stopfirewall
[root@servernamed]#service iptablesstop
Terminal sẽ hiểnthị:
Flushingfirewallrules: [OK]
SettingchainstopolicyACCEPT:filter [OK]
Uploadingiptablesmodules: [OK]

Más contenido relacionado

La actualidad más candente

Lesson 3 - Linux File System
Lesson 3 - Linux File SystemLesson 3 - Linux File System
Lesson 3 - Linux File SystemThang Man
 
Cac lenh co_ban_linux
Cac lenh co_ban_linuxCac lenh co_ban_linux
Cac lenh co_ban_linuxgofriv
 
Báo cáo thực tập tuần - VPS (slide)
Báo cáo thực tập tuần - VPS (slide)Báo cáo thực tập tuần - VPS (slide)
Báo cáo thực tập tuần - VPS (slide)Quân Quạt Mo
 
Php03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdongPhp03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdongconglongit90
 
Cấu hình Postgresql căn bản trong 20 phút
Cấu hình Postgresql căn bản trong 20 phútCấu hình Postgresql căn bản trong 20 phút
Cấu hình Postgresql căn bản trong 20 phútTechMaster Vietnam
 
Cau hinh dns centos
Cau hinh dns centosCau hinh dns centos
Cau hinh dns centosthienma217
 
It monitoring with nagios lac tien man thang
It monitoring with nagios lac tien man thangIt monitoring with nagios lac tien man thang
It monitoring with nagios lac tien man thanglaonap166
 
03 installing linux as a server
03  installing linux as a server03  installing linux as a server
03 installing linux as a serverCơn Gió
 
Cauhinhdnscentos 140419221022-phpapp01
Cauhinhdnscentos 140419221022-phpapp01Cauhinhdnscentos 140419221022-phpapp01
Cauhinhdnscentos 140419221022-phpapp01lehuyvinh
 
Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5thienma217
 
Tóm tắt lệnh Ubuntu
Tóm tắt lệnh UbuntuTóm tắt lệnh Ubuntu
Tóm tắt lệnh UbuntuQuang Ngoc
 
Báo cáo thực tập tuần 7 - 8 tại athena - đàm văn sáng
Báo cáo thực tập tuần 7 - 8 tại athena - đàm văn sángBáo cáo thực tập tuần 7 - 8 tại athena - đàm văn sáng
Báo cáo thực tập tuần 7 - 8 tại athena - đàm văn sángĐàm Văn Sáng
 
Squirrelmail centos 6.5
Squirrelmail centos 6.5Squirrelmail centos 6.5
Squirrelmail centos 6.5thienma217
 
Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)
Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)
Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)Vu Hung Nguyen
 
HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)
HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)
HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)Tú Cao
 
Báo cáo thực tập doanh nghiệp-Athena
Báo cáo thực tập doanh nghiệp-AthenaBáo cáo thực tập doanh nghiệp-Athena
Báo cáo thực tập doanh nghiệp-Athenaquocluong
 
Slide Báo cáo thực tập athena
Slide Báo cáo thực tập athenaSlide Báo cáo thực tập athena
Slide Báo cáo thực tập athenaCon Ranh
 
Hướng dẫn cài đặt centOS 6.5-Thực Tập Athena
Hướng dẫn cài đặt centOS 6.5-Thực Tập AthenaHướng dẫn cài đặt centOS 6.5-Thực Tập Athena
Hướng dẫn cài đặt centOS 6.5-Thực Tập Athenaquocluong
 

La actualidad más candente (18)

Lesson 3 - Linux File System
Lesson 3 - Linux File SystemLesson 3 - Linux File System
Lesson 3 - Linux File System
 
Cac lenh co_ban_linux
Cac lenh co_ban_linuxCac lenh co_ban_linux
Cac lenh co_ban_linux
 
Báo cáo thực tập tuần - VPS (slide)
Báo cáo thực tập tuần - VPS (slide)Báo cáo thực tập tuần - VPS (slide)
Báo cáo thực tập tuần - VPS (slide)
 
Php03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdongPhp03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdong
 
Cấu hình Postgresql căn bản trong 20 phút
Cấu hình Postgresql căn bản trong 20 phútCấu hình Postgresql căn bản trong 20 phút
Cấu hình Postgresql căn bản trong 20 phút
 
Cau hinh dns centos
Cau hinh dns centosCau hinh dns centos
Cau hinh dns centos
 
It monitoring with nagios lac tien man thang
It monitoring with nagios lac tien man thangIt monitoring with nagios lac tien man thang
It monitoring with nagios lac tien man thang
 
03 installing linux as a server
03  installing linux as a server03  installing linux as a server
03 installing linux as a server
 
Cauhinhdnscentos 140419221022-phpapp01
Cauhinhdnscentos 140419221022-phpapp01Cauhinhdnscentos 140419221022-phpapp01
Cauhinhdnscentos 140419221022-phpapp01
 
Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5
 
Tóm tắt lệnh Ubuntu
Tóm tắt lệnh UbuntuTóm tắt lệnh Ubuntu
Tóm tắt lệnh Ubuntu
 
Báo cáo thực tập tuần 7 - 8 tại athena - đàm văn sáng
Báo cáo thực tập tuần 7 - 8 tại athena - đàm văn sángBáo cáo thực tập tuần 7 - 8 tại athena - đàm văn sáng
Báo cáo thực tập tuần 7 - 8 tại athena - đàm văn sáng
 
Squirrelmail centos 6.5
Squirrelmail centos 6.5Squirrelmail centos 6.5
Squirrelmail centos 6.5
 
Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)
Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)
Nguyễn Vũ Hưng: Basic Linux Tutorial (Linux cơ bản bằng Tiếng Việt)
 
HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)
HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)
HTTP POST DOS (Denial Of Service) (Demo tấn công DOS, phòng chống)
 
Báo cáo thực tập doanh nghiệp-Athena
Báo cáo thực tập doanh nghiệp-AthenaBáo cáo thực tập doanh nghiệp-Athena
Báo cáo thực tập doanh nghiệp-Athena
 
Slide Báo cáo thực tập athena
Slide Báo cáo thực tập athenaSlide Báo cáo thực tập athena
Slide Báo cáo thực tập athena
 
Hướng dẫn cài đặt centOS 6.5-Thực Tập Athena
Hướng dẫn cài đặt centOS 6.5-Thực Tập AthenaHướng dẫn cài đặt centOS 6.5-Thực Tập Athena
Hướng dẫn cài đặt centOS 6.5-Thực Tập Athena
 

Similar a Baocaotuan2 Mail server Linux

Cấu hình và bảo mật cho Ubuntu Server
Cấu hình và bảo mật cho Ubuntu Server Cấu hình và bảo mật cho Ubuntu Server
Cấu hình và bảo mật cho Ubuntu Server Ho Quang Thanh
 
Tom tat lenh_ubuntu
Tom tat lenh_ubuntuTom tat lenh_ubuntu
Tom tat lenh_ubuntuthanhhokh03
 
Tom tat lenh ubuntu
Tom tat lenh ubuntuTom tat lenh ubuntu
Tom tat lenh ubuntunghoanganh
 
Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2TngH36
 
Baocaotuan1
Baocaotuan1Baocaotuan1
Baocaotuan1miti2712
 
Quản trị mạng linux full
Quản trị mạng linux fullQuản trị mạng linux full
Quản trị mạng linux fulljackjohn45
 
Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Son Giap
 
Báo cáo thực tập
Báo cáo thực tậpBáo cáo thực tập
Báo cáo thực tậpNhật Trinh
 
Slide Báo Cáo Cuối Kỳ
Slide Báo Cáo Cuối KỳSlide Báo Cáo Cuối Kỳ
Slide Báo Cáo Cuối KỳLy ND
 
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬPHƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬPdvms
 
Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...
Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...
Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...Dịch vụ viết bài trọn gói ZALO: 0909232620
 
Báo Cáo Thực Tập PowerPoint
Báo Cáo Thực Tập PowerPointBáo Cáo Thực Tập PowerPoint
Báo Cáo Thực Tập PowerPointKhôi Nguyễn
 
Báo Cáo Cuối Kỳ
Báo Cáo Cuối KỳBáo Cáo Cuối Kỳ
Báo Cáo Cuối KỳLy ND
 
Lab linux phần iv- Internet Services
Lab linux phần iv- Internet ServicesLab linux phần iv- Internet Services
Lab linux phần iv- Internet Servicesxeroxk
 

Similar a Baocaotuan2 Mail server Linux (20)

Cấu hình và bảo mật cho Ubuntu Server
Cấu hình và bảo mật cho Ubuntu Server Cấu hình và bảo mật cho Ubuntu Server
Cấu hình và bảo mật cho Ubuntu Server
 
Tom tat lenh_ubuntu
Tom tat lenh_ubuntuTom tat lenh_ubuntu
Tom tat lenh_ubuntu
 
Tom tat lenh ubuntu
Tom tat lenh ubuntuTom tat lenh ubuntu
Tom tat lenh ubuntu
 
TỰ HỌC LPI 2
TỰ HỌC LPI 2TỰ HỌC LPI 2
TỰ HỌC LPI 2
 
Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2
 
Baocaotuan1
Baocaotuan1Baocaotuan1
Baocaotuan1
 
Bai bao cao 3
Bai bao cao 3Bai bao cao 3
Bai bao cao 3
 
Quản trị mạng linux full
Quản trị mạng linux fullQuản trị mạng linux full
Quản trị mạng linux full
 
Tailieu
TailieuTailieu
Tailieu
 
Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879
 
Báo cáo thực tập
Báo cáo thực tậpBáo cáo thực tập
Báo cáo thực tập
 
Slide Báo Cáo Cuối Kỳ
Slide Báo Cáo Cuối KỳSlide Báo Cáo Cuối Kỳ
Slide Báo Cáo Cuối Kỳ
 
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬPHƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
 
Báo cáo tuần đồ án
Báo cáo tuần đồ ánBáo cáo tuần đồ án
Báo cáo tuần đồ án
 
Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...
Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...
Đề tài: Tìm hiểu và triển khai quản trị mạng trên Ubuntu Server, 9đ - Gửi miễ...
 
Báo Cáo Thực Tập PowerPoint
Báo Cáo Thực Tập PowerPointBáo Cáo Thực Tập PowerPoint
Báo Cáo Thực Tập PowerPoint
 
Báo Cáo Cuối Kỳ
Báo Cáo Cuối KỳBáo Cáo Cuối Kỳ
Báo Cáo Cuối Kỳ
 
9 application layer
9 application layer9 application layer
9 application layer
 
Lab linux phần iv- Internet Services
Lab linux phần iv- Internet ServicesLab linux phần iv- Internet Services
Lab linux phần iv- Internet Services
 
Bai bao cao 4
Bai bao cao 4Bai bao cao 4
Bai bao cao 4
 

Baocaotuan2 Mail server Linux

  • 1. Trung Tâm Đào Tạo Quản Trị Mạng Và An Ninh Mạng Quốc Tế Athena Báo Cáo Thực Tập Tuần II Sinh viên thực tập: Nguyễn Trần Minh Tiến Khoa: Công nghệ thông tin Trường: ĐH Quốc Tế - ĐH Quốc Gia Tp Hồ Chí Minh Ngành thực tập: Công nghệ thông tin Đề tài thực tập: Xây dựng hệ thống mail server (Postfix, Dovecot) doanh nghiệp trên Linux Giáo viên hướng dẫn: Võ Đỗ Thắng Tuần 2: 23/06/2014 – 27/06/2014
  • 2. Nội Dung I. Cấu hình IP static và Hostname.................................................................................3 1. Gán IP static ...........................................................................................................3 2. Cấu hình Hostname................................................................................................3 II. Cấu hình DNS...............................................................................................................3 1. Cài đặt DNS ............................................................................................................3 2. Cấu hình DNS..........................................................................................................4 III. Khởi động các dịch vụ và tắt fire wall.........................................................................6 1. Khởi động các dịch vụ............................................................................................6 2. Tắt firewall .............................................................................................................6
  • 3. I. Cấu hình IP static và Hostname: 1. Cấu hình IP static: Gán IP Staticcho serverlà: 192.168.1.245 theolệnh: [root@server~]#vi /etc/sysconfig/network-scripts/ifcfg-eth1 Sau đó thêmvào các dòng sau: DEVICE="eth1" HWADDR="" NM_CONTROLLED="yes" ONBOOT="yes" BOOTPROTO=static IPADDR=192.168.1.245 NETMASK=255.255.255.0 GATEWAY=192.168.1.254 DNS1=8.8.8.8 2. Cấu hình Hostname: Sửa file /etc/hostschúngtadùnglệnhvàthêmvào dòngsau: [root@server]#vi /etc/hosts 127.0.0.1 mail.server.athena.lab 192.168.1.245 mail.server.athena.lab Và lệnh: [root@server~]#vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=server.athena.lab II. Cấu hình DNS: 1. Cài đặt DNS: [root@server~]# rpm –ivhbind-libs-9.3.3-10.el5.i386.rpm [root@server~]#rpm –ivhbind-9.3.3-10.el5,i386.rpm [root@server~]#rpm –ivhbind-utils-9.3.3-10.el5.i386.rpm 2. Cấu hình DNS:
  • 4. [root@server~]#vi /etc/named.conf Và thêmcác dòng sau: Options { Query-source port 53; Query-source port 53; Directory “/var/named”;//the default Dump-file “/var/named/data/cache_dump.db”; Statistics-file “/var/named/data/named_stats.txt”; Memstatistics-file “/var/named/data/named_mem_stats.txt”; Notify yes; }; Zone “.” In{ Type=master; File “server.athena.lab.db”; }; Zone “server.athena.lab”{ Type master; File “server.athena.lab.db” } Zone “1.168.192.in-addr.arpa” { Type master; File “1.168.192.in-addr.arpa.db”; } - Tạo file /var/named/named.rootbằngcáchdownloadtrênmạngnhư sau: [root@server/]#cd /var/named Chú ý:Serverphải kếtnối tới Internet.
  • 5. - Tạo fie /var/named/localhost.db: [root@servernamed]#vi /var/named/server.athena.lab.db $TTL 86400 ;1 day @ IN S0A dns1.server.athena.lab. root( 20080213 ; serial 10800 ; refresh(3 hours) 3600 ; retry (1 hour) 604800 ; expire (1week) 86400 ; minimum(1day ) IN NS dns1.server.athena.lab. Mail IN A 192.168.1.245 - Tạo file /var/named/1.168.192.in-addr.arpa.db: [root@servernamed]#vi /var/named/1.168.192.in-addr.arpa.db $TTL 86400 ;1 day @ IN S0A dns1.server.athena.lab. root( 20080213 ; serial 10800 ; refresh(3 hours) 3600 ; retry (1 hour) 604800 ; expire (1week) 86400 ; minimum(1day ) IN NS dns1.server.athena.lab. 245 IN PTR mail.athena.edu.vn
  • 6. III. Khởi độngdịch vụ và tắt firewall: -Start nameddaemon: [root@servernamed]#service namedstart Terminnal sẽ hiểnthị: Startingnamed: [OK] -Stopfirewall [root@servernamed]#service iptablesstop Terminal sẽ hiểnthị: Flushingfirewallrules: [OK] SettingchainstopolicyACCEPT:filter [OK] Uploadingiptablesmodules: [OK]