SlideShare a Scribd company logo
1 of 5
TRUNG TÂM ĐÀO TẠO QUẢN TRỊ MẠNG & AN NINH MẠNG QUỐC TẾ
ATHENA
--------------------
BÁO CÁO TUẦN 3 & 4
THỰC TẬP
Đề tài:
XÂY DỰNG HỆ THỐNG MAIL SERVER
DOANH NGHIỆP TRÊN LINUX
Ngành : Công Nghệ Thông Tin
GIÁO VIÊN HƯỚNG DẪN: VÕ ĐỖ THẮNG
SINH VIÊN THỰC HIỆN: Nguyễn Lê Chánh Duy
Thành Phố Hồ Chí Minh
2014
1. Cấu hình IP tĩnh cho máy ảo server và client:
Từ terminal ta truy cập vào mode superuser vớilệnh: su
Ta cấu hình IP tĩnh cho Ethernet với lệnh:
vi /etc/sysconfig/network-scripts/ifcfg-eth (có thể là eth0, eth1…tùy vào
máy)
Trong file ifcfg-eth ta sẽ thêm 5 dòng sau:
BOOTPROTO=static
IPADDR=192.168.1.245
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
DNS1=8.8.8.8
Tương tự máy client ta cũng làm như các bước trên với IP tĩnh cùng lớp
mạng vớimáy server
2. Cấu hình hosts:
Từ terminal ta truy cập vào mode superuser vớilệnh: su
Ta cấu hình hosts với lệnh:
vi /etc/hosts
Trong file hosts ta thêm vào dòng: 192.168.1.245 server.athena.lab
3. Cài đặt thunderbird trên máy client:
Từ terminal ta truy cập vào mode superuser vớilệnh: su
Ta sẽ cài đặt tự động mozzila thunderbird với lệnh:
yuminstall thunderbird
4. Tạo mail account với thunderbird:
Trên máy server ta tiến hành tạo 2 users mới để sử dụng vớilệnh:
useradd user và passwd user
Trong thunderbird ta sẽtạo 2 email accounts trùng với 2 users vừa tạo
mới trên server (vídụ: user1 và user2)
Trên client tiến hành truy cập vào thunderbird với các bước:
Applications > Internet> Thunserbird Email
Trên thunderbird ta sẽ tạo email account với các bước sau:
Trong mục Accounts , Create a new account chọn Email
Yourname: user1
Email address: user1@athena.lab
Password: 1234
Bấm chọn: Remember password
Nhấn chọn continue
Chọn Manual config
Incoming: 192.168.1.245(IP server)
Outgoing: 192.168.1.245
Nhấn chọn Re-test để chương trình tự động nhận Port, SSL và
Authentication
Khi có thông báo về bảo mật thì nhấn chọn confirm security > done
Sau khihoàn thành tạo user1@athena.lab, ta tiến hành tạo
user2@athena.lab vớicác bước như trên
5. Kiểm tra hoạt động của thunderbird:
Ta sẽ khởi động dovecotvới postfix trên server vớilệnh:
servicepostfix restart
servicedovecot restart
Ta cần phải dừng iptables trên cả máy server và client với lệnh:
serviceiptables stop
Trên client tiến hành truy cập vào thunderbird với các bước:
Applications > Internet> Thunserbird Email
Lúc này trong thunderbird đã có 2 accounts:
user1@athena.lab và user2@athena.lab
Ta tiến hành gừi messagetừ user1 cho user2:
chọn Write a new message> To user2@athena.lab > Send
sau khi gửi ta kiểm tra inbox của user2 sẽ thấy 1 mail mới được gửi từ
use1@athena.lab
6. Cài đặt squirrelmail:
Để cài đặt squirrelmail ta thực hiện các bước sau:
Truy nhập vào mode superuser: su
Dùng 2 lệnh sau để cài đặt squirrelmail:
rpm–Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-
release-6-8.noarch.rpm
Yum install squirrelmail
7. Cấu hình squirrelmail:
Ta cấu hình squirrelmail bằng lệnh:
/usr/share/sbin/squirrelmail/config/conf.pl
Trong file conf.plta tiến hành cấu hình như sau:
Chọn 2 > chọn 1 > đổi domain name thành athena.lab > chọn R để
return
Chọn 3 > chọn SMTP > chọn R
Chọn D > type dovecot > enter
Chọn S > chọn Q để savevà quit
8. Cài đặt cyrus và httpd service:
yuminstall httpd
yum -y install cyrus-saslcyrus-sasl-develcyrus-sasl-gssapicyrus-sasl-md5
cyrus-sasl-plain
mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
opensslgenrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
opensslreq -new -key smtpd.key -outsmtpd.csr
opensslx509 -req -days 365 -in smtpd.csr -signkey smtpd.key -out
smtpd.crt
opensslrsa -in smtpd.key -outsmtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
opensslreq -new -x509 -extensions v3_ca -keyoutcakey.pem -out
cacert.pem -days 365
9. Kiểm tra hoạt động của squirrelmail:
Từ máy client truy cập vào 192.168.1.245/webmail vớifirefox
Giao diện login của squirrelmailsẽ hiện ra > tiến hành login với user và
password đã được tạo trong server
Tiến hành kiểm tra mail trong squirrelmail
10. Đăng ký VPS tại văn phòng athena:
bao cao tuan 34

More Related Content

What's hot

Lab direct access service
Lab direct access serviceLab direct access service
Lab direct access service
laonap166
 
Part 38 isa server - vpn gateway to gateway -www.key4_vip.info
Part 38   isa server - vpn gateway to gateway -www.key4_vip.infoPart 38   isa server - vpn gateway to gateway -www.key4_vip.info
Part 38 isa server - vpn gateway to gateway -www.key4_vip.info
laonap166
 
Part 48 upgrade server 2008 - windows server core - wsc -www.key4_vip.info
Part 48   upgrade server 2008 - windows server core - wsc -www.key4_vip.infoPart 48   upgrade server 2008 - windows server core - wsc -www.key4_vip.info
Part 48 upgrade server 2008 - windows server core - wsc -www.key4_vip.info
laonap166
 
Vpn client to site và vpn site to site
Vpn client to site và vpn site to siteVpn client to site và vpn site to site
Vpn client to site và vpn site to site
woonshine
 
Part 28 windows internet name system - wins -www.key4_vip.info
Part 28   windows internet name system - wins -www.key4_vip.infoPart 28   windows internet name system - wins -www.key4_vip.info
Part 28 windows internet name system - wins -www.key4_vip.info
laonap166
 
Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5
thienma217
 
Network address translatio
Network address translatioNetwork address translatio
Network address translatio
tranlethuynga
 
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdfLab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Pham Viet Dung
 
Squirrelmail centos 6.5
Squirrelmail centos 6.5Squirrelmail centos 6.5
Squirrelmail centos 6.5
thienma217
 
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-AthenaCài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
Hoàng Phúc Phạm
 
Part 38 isa server - server publishing - configuration -www.key4_vip.info
Part 38   isa server - server publishing - configuration -www.key4_vip.infoPart 38   isa server - server publishing - configuration -www.key4_vip.info
Part 38 isa server - server publishing - configuration -www.key4_vip.info
laonap166
 

What's hot (20)

Lab direct access service
Lab direct access serviceLab direct access service
Lab direct access service
 
Part 38 isa server - vpn gateway to gateway -www.key4_vip.info
Part 38   isa server - vpn gateway to gateway -www.key4_vip.infoPart 38   isa server - vpn gateway to gateway -www.key4_vip.info
Part 38 isa server - vpn gateway to gateway -www.key4_vip.info
 
Part 48 upgrade server 2008 - windows server core - wsc -www.key4_vip.info
Part 48   upgrade server 2008 - windows server core - wsc -www.key4_vip.infoPart 48   upgrade server 2008 - windows server core - wsc -www.key4_vip.info
Part 48 upgrade server 2008 - windows server core - wsc -www.key4_vip.info
 
Vpn client to site và vpn site to site
Vpn client to site và vpn site to siteVpn client to site và vpn site to site
Vpn client to site và vpn site to site
 
Part 28 windows internet name system - wins -www.key4_vip.info
Part 28   windows internet name system - wins -www.key4_vip.infoPart 28   windows internet name system - wins -www.key4_vip.info
Part 28 windows internet name system - wins -www.key4_vip.info
 
Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5
 
Network address translatio
Network address translatioNetwork address translatio
Network address translatio
 
Vpn site to site
Vpn site to siteVpn site to site
Vpn site to site
 
Athena tuần 5
Athena tuần 5Athena tuần 5
Athena tuần 5
 
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdfLab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
 
Squirrelmail centos 6.5
Squirrelmail centos 6.5Squirrelmail centos 6.5
Squirrelmail centos 6.5
 
DHCP
DHCPDHCP
DHCP
 
Chuẩn bị kế hoạch nâng cấp domain controller windows 2003 lên 2008 2012
Chuẩn bị kế hoạch nâng cấp domain controller windows 2003 lên 2008 2012Chuẩn bị kế hoạch nâng cấp domain controller windows 2003 lên 2008 2012
Chuẩn bị kế hoạch nâng cấp domain controller windows 2003 lên 2008 2012
 
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-AthenaCài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
 
Scop full realtime solutions yeucau mohinh_tiendo setup bbb
Scop full realtime solutions yeucau mohinh_tiendo setup bbbScop full realtime solutions yeucau mohinh_tiendo setup bbb
Scop full realtime solutions yeucau mohinh_tiendo setup bbb
 
New (1)
New (1)New (1)
New (1)
 
DNS
DNSDNS
DNS
 
Part 38 isa server - server publishing - configuration -www.key4_vip.info
Part 38   isa server - server publishing - configuration -www.key4_vip.infoPart 38   isa server - server publishing - configuration -www.key4_vip.info
Part 38 isa server - server publishing - configuration -www.key4_vip.info
 
vpn and nat
vpn and  natvpn and  nat
vpn and nat
 
Báo cáo tuần
Báo cáo tuần Báo cáo tuần
Báo cáo tuần
 

Similar to bao cao tuan 34

(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02
lehuyvinh
 
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
Nhật Trinh
 
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
Nhật Trinh
 
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
Nhật Trinh
 
Báo cáo thực tập (hàng tuần)
Báo cáo thực tập (hàng tuần)Báo cáo thực tập (hàng tuần)
Báo cáo thực tập (hàng tuần)
Ly1473
 
Báo Cáo Hàng Tuần
Báo Cáo Hàng TuầnBáo Cáo Hàng Tuần
Báo Cáo Hàng Tuần
Bin Hoo
 
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
Nhật Trinh
 
Bao cao tuan 4
Bao cao tuan 4Bao cao tuan 4
Bao cao tuan 4
vu1008
 
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
 
Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2
TngH36
 

Similar to bao cao tuan 34 (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
 
(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02
 
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
 
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
 
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
 
Báo cáo thực tập (hàng tuần)
Báo cáo thực tập (hàng tuần)Báo cáo thực tập (hàng tuần)
Báo cáo thực tập (hàng tuần)
 
Bai bao cao 3
Bai bao cao 3Bai bao cao 3
Bai bao cao 3
 
Bao cao thuc_tap_athena_cuoi_ky_hoang_phuc
Bao cao thuc_tap_athena_cuoi_ky_hoang_phucBao cao thuc_tap_athena_cuoi_ky_hoang_phuc
Bao cao thuc_tap_athena_cuoi_ky_hoang_phuc
 
TỰ HỌC LPI 2
TỰ HỌC LPI 2TỰ HỌC LPI 2
TỰ HỌC LPI 2
 
Vpn
VpnVpn
Vpn
 
Báo Cáo Hàng Tuần
Báo Cáo Hàng TuầnBáo Cáo Hàng Tuần
Báo Cáo Hàng Tuần
 
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
 
Bao cao tuan 4
Bao cao tuan 4Bao cao tuan 4
Bao cao tuan 4
 
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ỳ
 
De cuongthuchanhct221 hk2_1920_n1
De cuongthuchanhct221 hk2_1920_n1De cuongthuchanhct221 hk2_1920_n1
De cuongthuchanhct221 hk2_1920_n1
 
client to site
 client to site client to site
client to site
 
Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2Openvpn nhóm-dbrr-update2
Openvpn nhóm-dbrr-update2
 
Athena - Nghiên cứu và triển khai các dịch vụ mạng trên windows sever 2008 (...
Athena - Nghiên cứu và triển khai các dịch vụ mạng trên windows sever 2008  (...Athena - Nghiên cứu và triển khai các dịch vụ mạng trên windows sever 2008  (...
Athena - Nghiên cứu và triển khai các dịch vụ mạng trên windows sever 2008 (...
 
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
 
Dhcp nat out ubuntu
Dhcp nat out ubuntuDhcp nat out ubuntu
Dhcp nat out ubuntu
 

bao cao tuan 34

  • 1. TRUNG TÂM ĐÀO TẠO QUẢN TRỊ MẠNG & AN NINH MẠNG QUỐC TẾ ATHENA -------------------- BÁO CÁO TUẦN 3 & 4 THỰC TẬP Đề tài: XÂY DỰNG HỆ THỐNG MAIL SERVER DOANH NGHIỆP TRÊN LINUX Ngành : Công Nghệ Thông Tin GIÁO VIÊN HƯỚNG DẪN: VÕ ĐỖ THẮNG SINH VIÊN THỰC HIỆN: Nguyễn Lê Chánh Duy Thành Phố Hồ Chí Minh 2014
  • 2. 1. Cấu hình IP tĩnh cho máy ảo server và client: Từ terminal ta truy cập vào mode superuser vớilệnh: su Ta cấu hình IP tĩnh cho Ethernet với lệnh: vi /etc/sysconfig/network-scripts/ifcfg-eth (có thể là eth0, eth1…tùy vào máy) Trong file ifcfg-eth ta sẽ thêm 5 dòng sau: BOOTPROTO=static IPADDR=192.168.1.245 NETMASK=255.255.255.0 GATEWAY=192.168.1.254 DNS1=8.8.8.8 Tương tự máy client ta cũng làm như các bước trên với IP tĩnh cùng lớp mạng vớimáy server 2. Cấu hình hosts: Từ terminal ta truy cập vào mode superuser vớilệnh: su Ta cấu hình hosts với lệnh: vi /etc/hosts Trong file hosts ta thêm vào dòng: 192.168.1.245 server.athena.lab 3. Cài đặt thunderbird trên máy client: Từ terminal ta truy cập vào mode superuser vớilệnh: su Ta sẽ cài đặt tự động mozzila thunderbird với lệnh: yuminstall thunderbird 4. Tạo mail account với thunderbird: Trên máy server ta tiến hành tạo 2 users mới để sử dụng vớilệnh: useradd user và passwd user Trong thunderbird ta sẽtạo 2 email accounts trùng với 2 users vừa tạo mới trên server (vídụ: user1 và user2) Trên client tiến hành truy cập vào thunderbird với các bước: Applications > Internet> Thunserbird Email Trên thunderbird ta sẽ tạo email account với các bước sau: Trong mục Accounts , Create a new account chọn Email Yourname: user1
  • 3. Email address: user1@athena.lab Password: 1234 Bấm chọn: Remember password Nhấn chọn continue Chọn Manual config Incoming: 192.168.1.245(IP server) Outgoing: 192.168.1.245 Nhấn chọn Re-test để chương trình tự động nhận Port, SSL và Authentication Khi có thông báo về bảo mật thì nhấn chọn confirm security > done Sau khihoàn thành tạo user1@athena.lab, ta tiến hành tạo user2@athena.lab vớicác bước như trên 5. Kiểm tra hoạt động của thunderbird: Ta sẽ khởi động dovecotvới postfix trên server vớilệnh: servicepostfix restart servicedovecot restart Ta cần phải dừng iptables trên cả máy server và client với lệnh: serviceiptables stop Trên client tiến hành truy cập vào thunderbird với các bước: Applications > Internet> Thunserbird Email Lúc này trong thunderbird đã có 2 accounts: user1@athena.lab và user2@athena.lab Ta tiến hành gừi messagetừ user1 cho user2: chọn Write a new message> To user2@athena.lab > Send sau khi gửi ta kiểm tra inbox của user2 sẽ thấy 1 mail mới được gửi từ use1@athena.lab 6. Cài đặt squirrelmail: Để cài đặt squirrelmail ta thực hiện các bước sau: Truy nhập vào mode superuser: su Dùng 2 lệnh sau để cài đặt squirrelmail: rpm–Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel- release-6-8.noarch.rpm Yum install squirrelmail 7. Cấu hình squirrelmail:
  • 4. Ta cấu hình squirrelmail bằng lệnh: /usr/share/sbin/squirrelmail/config/conf.pl Trong file conf.plta tiến hành cấu hình như sau: Chọn 2 > chọn 1 > đổi domain name thành athena.lab > chọn R để return Chọn 3 > chọn SMTP > chọn R Chọn D > type dovecot > enter Chọn S > chọn Q để savevà quit 8. Cài đặt cyrus và httpd service: yuminstall httpd yum -y install cyrus-saslcyrus-sasl-develcyrus-sasl-gssapicyrus-sasl-md5 cyrus-sasl-plain mkdir /etc/postfix/ssl cd /etc/postfix/ssl/ opensslgenrsa -des3 -rand /etc/hosts -out smtpd.key 1024 chmod 600 smtpd.key opensslreq -new -key smtpd.key -outsmtpd.csr opensslx509 -req -days 365 -in smtpd.csr -signkey smtpd.key -out smtpd.crt opensslrsa -in smtpd.key -outsmtpd.key.unencrypted mv -f smtpd.key.unencrypted smtpd.key opensslreq -new -x509 -extensions v3_ca -keyoutcakey.pem -out cacert.pem -days 365 9. Kiểm tra hoạt động của squirrelmail: Từ máy client truy cập vào 192.168.1.245/webmail vớifirefox Giao diện login của squirrelmailsẽ hiện ra > tiến hành login với user và password đã được tạo trong server Tiến hành kiểm tra mail trong squirrelmail 10. Đăng ký VPS tại văn phòng athena: