SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
Nguyễn Duy Đạt - SVTT Page 1
CÀI ĐẶT VÀ CẤU HÌNH SQUIRRELMAIL
Yêu cầu: Máy đã cài đặt DNS, postfix, dovecot
1, Cài đặt:
Cài đặt online
# yum install epel squirrelmail -y
Cài đặt bằng gói: Download và cài đặt các gói sau:
epel-release-6-8.noarch.rpm
php-common-5.3.3-27.el6_5.i686.rpm
php-cli-5.3.3-27.el6_5.i686.rpm
php-5.3.3-27.el6_5.i686.rpm
php-mbstring-5.3.3-27.el6_5.i686.rpm
php-pear-1.9.4-4.el6.noarch.rpm
php-pear-DB-1.7.13-3.el6.noarch.rpm
squirrelmail-1.4.22-4.el6.noarch.rpm
2,Cấu hình:
Di chuyển đến /usr/share/squirrelmail/config/ rồi chạy file conf.pl
# cd /usr/share/squirrelmail/config/
# ./conf.pl
Nguyễn Duy Đạt - SVTT Page 2
Bảng cấu hình của Squirrelmail xuất hiện, nhập “2” → Enter để cài đặt cho server
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color off
S Save data
Q Quit
Command >> 2
Nguyễn Duy Đạt - SVTT Page 3
Trong mục Server Settings, nhập “1” → Enter → nhập mail domain → Enter
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : localhost
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (uw)
B. Change Sendmail Config : /usr/sbin/sendmail
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 1
The domain name is the suffix at the end of all email addresses. If
for example, your email address is jdoe@example.com, then your domain
would be example.com.
[localhost]: athena.edu.vn
Nguyễn Duy Đạt - SVTT Page 4
Nhập “3” → Enter và đổi từ Sendmail sang SMTP
Nhập “2” → Enter để chuyển từ Sendmail sang SMTP
Nhập “s” → Enter để lưu lại, sau đó “q” → Enter để trở về menu chính
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : athena.edu.vn
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (uw)
B. Change Sendmail Config : /usr/sbin/sendmail
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 3
You now need to choose the method that you will use for sending
messages in SquirrelMail. You can either connect to an SMTP server
or use sendmail directly.
1. Sendmail
2. SMTP
Your choice [1/2] [1]: 2
Nguyễn Duy Đạt - SVTT Page 5
Tại menu chính, nhập “d” → Enter để chọn IMAP server
Nhập “dovecot” → Enter để chọn dovecot làm IMAP server
Nhập “s” → Enter để lưu cấu hình, sau đó nhập “q” → Enter để thoát menu cấu hình
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color off
S Save data
Q Quit
Command >> d
Please select your IMAP server:
bincimap = Binc IMAP server
courier = Courier IMAP server
cyrus = Cyrus IMAP server
dovecot = Dovecot Secure IMAP server
exchange = Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx = Mac OS X Mailserver
mercury32 = Mercury/32
uw = University of Washington's IMAP server
gmail = IMAP access to Google mail (Gmail) accounts
quit = Do not change anything
Command >> dovecot
Nguyễn Duy Đạt - SVTT Page 6
Mở file /etc/httpd/conf.d/squirrelmail.conf để sửa những cấu hình sau:
Dòng 8: sửa Deny from all thành Allow from all
Comment các dòing: 14, 15, 16, 17, 18
Để cho phép client đăng nhập bằng http, nhập câu lệnh sau:
# setsebool -P httpd_can_network_connect=1
Khởi động lại các dịch vụ:
# service httpd restart
# service postfix restart
# service dovecot restart
1 #
2 # SquirrelMail is a webmail package written in PHP.
3 #
4
5 Alias /webmail /usr/share/squirrelmail
6
7 <Directory "/usr/share/squirrelmail/plugins/squirrelspell/modules">
8 Allow from all
9 </Directory>
10
11 # this section makes squirrelmail use https connections only, for this you
12 # need to have mod_ssl installed. If you want to use unsecure http
13 # connections, just remove this section:
14 #<Directory /usr/share/squirrelmail>
15 # RewriteEngine on
16 # RewriteCond %{HTTPS} !=on
17 # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
18 #</Directory>
19
Nguyễn Duy Đạt - SVTT Page 7
3, Kiểm tra tại client:
Để truy cập vào web mail, ta truy cập với địa chỉ:
http://<ipaddress>/webmail hoặc http://<domain-name>/webmail
Nhập username và password tại màn hình đăng nhập
Tại giao diện account, nhấn Compose để tạo và gứi một email mới sang u2@athena.edu.vn
Nguyễn Duy Đạt - SVTT Page 8
Đăng nhập u2 kiểm tra email vừa gửi từ u1:

Más contenido relacionado

La actualidad más candente

Php03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdongPhp03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdongconglongit90
 
Fire wall
Fire wallFire wall
Fire wallICTU
 
Cai dat squid proxy trong suot
Cai dat  squid proxy trong suotCai dat  squid proxy trong suot
Cai dat squid proxy trong suotTHT
 
Dịch vụ squid server
Dịch vụ squid serverDịch vụ squid server
Dịch vụ squid serverTan Phat Phung
 
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 .pdfPham Viet Dung
 
17 ftp & ssh server
17  ftp & ssh server17  ftp & ssh server
17 ftp & ssh serverCơn Gió
 
Dhcp nat out ubuntu
Dhcp nat out ubuntuDhcp nat out ubuntu
Dhcp nat out ubuntukarickhuy
 
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
 
Cài đặt dịch vụ ssh trên local - Thực tập Athena
Cài đặt dịch vụ ssh trên local - Thực tập AthenaCài đặt dịch vụ ssh trên local - Thực tập Athena
Cài đặt dịch vụ ssh trên local - Thực tập Athenaquocluong
 
Mô hình demo giữa cisco router
Mô hình demo giữa cisco routerMô hình demo giữa cisco router
Mô hình demo giữa cisco routerlOng DưƠng
 
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 2012laonap166
 
cai dat va quan tri Zpanel
cai dat va quan tri Zpanelcai dat va quan tri Zpanel
cai dat va quan tri Zpanellaonap166
 
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-AthenaHoàng Phúc Phạm
 
Cấu hình căn bản trên GNS3
Cấu hình căn bản trên GNS3Cấu hình căn bản trên GNS3
Cấu hình căn bản trên GNS3hoangtuvit123
 
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
 
On thi tot nghiep 2011 cva
On thi tot nghiep 2011 cvaOn thi tot nghiep 2011 cva
On thi tot nghiep 2011 cvatranlethuynga
 
Triển khai load balancing và failover cho nhiều line adsl bằng kerio winroute
Triển khai load balancing và failover cho nhiều line adsl bằng kerio winrouteTriển khai load balancing và failover cho nhiều line adsl bằng kerio winroute
Triển khai load balancing và failover cho nhiều line adsl bằng kerio winroutelaonap166
 

La actualidad más candente (20)

Php03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdongPhp03 php trong-laptrinhwebdong
Php03 php trong-laptrinhwebdong
 
Fire wall
Fire wallFire wall
Fire wall
 
Cai dat squid proxy trong suot
Cai dat  squid proxy trong suotCai dat  squid proxy trong suot
Cai dat squid proxy trong suot
 
Dịch vụ squid server
Dịch vụ squid serverDịch vụ squid server
Dịch vụ squid server
 
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
 
17 ftp & ssh server
17  ftp & ssh server17  ftp & ssh server
17 ftp & ssh server
 
Tailieu
TailieuTailieu
Tailieu
 
Dhcp nat out ubuntu
Dhcp nat out ubuntuDhcp nat out ubuntu
Dhcp nat out ubuntu
 
Lab 11 ftp server
Lab 11 ftp server  Lab 11 ftp server
Lab 11 ftp server
 
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
 
On tap (nat dhcp)
On tap (nat   dhcp)On tap (nat   dhcp)
On tap (nat dhcp)
 
Cài đặt dịch vụ ssh trên local - Thực tập Athena
Cài đặt dịch vụ ssh trên local - Thực tập AthenaCài đặt dịch vụ ssh trên local - Thực tập Athena
Cài đặt dịch vụ ssh trên local - Thực tập Athena
 
Mô hình demo giữa cisco router
Mô hình demo giữa cisco routerMô hình demo giữa cisco router
Mô hình demo giữa cisco router
 
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
 
cai dat va quan tri Zpanel
cai dat va quan tri Zpanelcai dat va quan tri Zpanel
cai dat va quan tri Zpanel
 
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
 
Cấu hình căn bản trên GNS3
Cấu hình căn bản trên GNS3Cấu hình căn bản trên GNS3
Cấu hình căn bản trên GNS3
 
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
 
On thi tot nghiep 2011 cva
On thi tot nghiep 2011 cvaOn thi tot nghiep 2011 cva
On thi tot nghiep 2011 cva
 
Triển khai load balancing và failover cho nhiều line adsl bằng kerio winroute
Triển khai load balancing và failover cho nhiều line adsl bằng kerio winrouteTriển khai load balancing và failover cho nhiều line adsl bằng kerio winroute
Triển khai load balancing và failover cho nhiều line adsl bằng kerio winroute
 

Similar a Squirrelmail centos 6.5

bao cao tuan 34
bao cao tuan 34bao cao tuan 34
bao cao tuan 34chanhduy
 
Tai lieu quan tri he thong erp oracle
Tai lieu quan tri he thong erp oracleTai lieu quan tri he thong erp oracle
Tai lieu quan tri he thong erp oracleKiet Tran
 
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
 
Cài đặt exchange server 2013 cùng domain với exchange server 2007
Cài đặt exchange server 2013 cùng domain với exchange server 2007Cài đặt exchange server 2013 cùng domain với exchange server 2007
Cài đặt exchange server 2013 cùng domain với exchange server 2007laonap166
 
Lab 8 dhcp server
Lab 8 dhcp server Lab 8 dhcp server
Lab 8 dhcp server tinhban269
 
Cài đặt và cấu hình căn bản hệ điều hành.pptx
Cài đặt và cấu hình căn bản hệ điều hành.pptxCài đặt và cấu hình căn bản hệ điều hành.pptx
Cài đặt và cấu hình căn bản hệ điều hành.pptxchamkhe
 
Lab 7 windows server 2008 server core
Lab 7 windows server 2008 server core Lab 7 windows server 2008 server core
Lab 7 windows server 2008 server core tinhban269
 
On tap ccna_version4
On tap ccna_version4On tap ccna_version4
On tap ccna_version4liemgpc2
 
Cài đặt exchange server 2013
Cài đặt exchange server 2013Cài đặt exchange server 2013
Cài đặt exchange server 2013laonap166
 
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
 
Mo hinh thuc te pfsense
Mo hinh thuc te pfsenseMo hinh thuc te pfsense
Mo hinh thuc te pfsenselaonap166
 
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
 
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
 
Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Son Giap
 
Server chuc nang.pptx
Server chuc nang.pptxServer chuc nang.pptx
Server chuc nang.pptxson2483
 

Similar a Squirrelmail centos 6.5 (20)

bao cao tuan 34
bao cao tuan 34bao cao tuan 34
bao cao tuan 34
 
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
 
Tai lieu quan tri he thong erp oracle
Tai lieu quan tri he thong erp oracleTai lieu quan tri he thong erp oracle
Tai lieu quan tri he thong erp oracle
 
Bai bao cao 3
Bai bao cao 3Bai bao cao 3
Bai bao cao 3
 
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
 
Cài đặt exchange server 2013 cùng domain với exchange server 2007
Cài đặt exchange server 2013 cùng domain với exchange server 2007Cài đặt exchange server 2013 cùng domain với exchange server 2007
Cài đặt exchange server 2013 cùng domain với exchange server 2007
 
New (1)
New (1)New (1)
New (1)
 
Lab 8 dhcp server
Lab 8 dhcp server Lab 8 dhcp server
Lab 8 dhcp server
 
Lab 8 dhcp server
Lab 8 dhcp server Lab 8 dhcp server
Lab 8 dhcp server
 
Cài đặt và cấu hình căn bản hệ điều hành.pptx
Cài đặt và cấu hình căn bản hệ điều hành.pptxCài đặt và cấu hình căn bản hệ điều hành.pptx
Cài đặt và cấu hình căn bản hệ điều hành.pptx
 
Lab 7 windows server 2008 server core
Lab 7 windows server 2008 server core Lab 7 windows server 2008 server core
Lab 7 windows server 2008 server core
 
On tap ccna_version4
On tap ccna_version4On tap ccna_version4
On tap ccna_version4
 
Cài đặt exchange server 2013
Cài đặt exchange server 2013Cài đặt exchange server 2013
Cài đặt exchange server 2013
 
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
 
TỰ HỌC LPI 2
TỰ HỌC LPI 2TỰ HỌC LPI 2
TỰ HỌC LPI 2
 
Mo hinh thuc te pfsense
Mo hinh thuc te pfsenseMo hinh thuc te pfsense
Mo hinh thuc te pfsense
 
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
 
Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879
 
Server chuc nang.pptx
Server chuc nang.pptxServer chuc nang.pptx
Server chuc nang.pptx
 

Más de thienma217

Postfix dovecot
Postfix dovecotPostfix dovecot
Postfix dovecotthienma217
 
Cau hinh dns centos
Cau hinh dns centosCau hinh dns centos
Cau hinh dns centosthienma217
 
Hướng dẫn cài đặt cent os 6.5
Hướng dẫn cài đặt cent os 6.5Hướng dẫn cài đặt cent os 6.5
Hướng dẫn cài đặt cent os 6.5thienma217
 

Más de thienma217 (6)

Vps
VpsVps
Vps
 
Mailserver
MailserverMailserver
Mailserver
 
Mailserver
MailserverMailserver
Mailserver
 
Postfix dovecot
Postfix dovecotPostfix dovecot
Postfix dovecot
 
Cau hinh dns centos
Cau hinh dns centosCau hinh dns centos
Cau hinh dns centos
 
Hướng dẫn cài đặt cent os 6.5
Hướng dẫn cài đặt cent os 6.5Hướng dẫn cài đặt cent os 6.5
Hướng dẫn cài đặt cent os 6.5
 

Squirrelmail centos 6.5

  • 1. Nguyễn Duy Đạt - SVTT Page 1 CÀI ĐẶT VÀ CẤU HÌNH SQUIRRELMAIL Yêu cầu: Máy đã cài đặt DNS, postfix, dovecot 1, Cài đặt: Cài đặt online # yum install epel squirrelmail -y Cài đặt bằng gói: Download và cài đặt các gói sau: epel-release-6-8.noarch.rpm php-common-5.3.3-27.el6_5.i686.rpm php-cli-5.3.3-27.el6_5.i686.rpm php-5.3.3-27.el6_5.i686.rpm php-mbstring-5.3.3-27.el6_5.i686.rpm php-pear-1.9.4-4.el6.noarch.rpm php-pear-DB-1.7.13-3.el6.noarch.rpm squirrelmail-1.4.22-4.el6.noarch.rpm 2,Cấu hình: Di chuyển đến /usr/share/squirrelmail/config/ rồi chạy file conf.pl # cd /usr/share/squirrelmail/config/ # ./conf.pl
  • 2. Nguyễn Duy Đạt - SVTT Page 2 Bảng cấu hình của Squirrelmail xuất hiện, nhập “2” → Enter để cài đặt cho server SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Main Menu -- 1. Organization Preferences 2. Server Settings 3. Folder Defaults 4. General Options 5. Themes 6. Address Books 7. Message of the Day (MOTD) 8. Plugins 9. Database 10. Languages D. Set pre-defined settings for specific IMAP servers C Turn color off S Save data Q Quit Command >> 2
  • 3. Nguyễn Duy Đạt - SVTT Page 3 Trong mục Server Settings, nhập “1” → Enter → nhập mail domain → Enter SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : localhost 2. Invert Time : false 3. Sendmail or SMTP : Sendmail A. Update IMAP Settings : localhost:143 (uw) B. Change Sendmail Config : /usr/sbin/sendmail R Return to Main Menu C Turn color off S Save data Q Quit Command >> 1 The domain name is the suffix at the end of all email addresses. If for example, your email address is jdoe@example.com, then your domain would be example.com. [localhost]: athena.edu.vn
  • 4. Nguyễn Duy Đạt - SVTT Page 4 Nhập “3” → Enter và đổi từ Sendmail sang SMTP Nhập “2” → Enter để chuyển từ Sendmail sang SMTP Nhập “s” → Enter để lưu lại, sau đó “q” → Enter để trở về menu chính SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : athena.edu.vn 2. Invert Time : false 3. Sendmail or SMTP : Sendmail A. Update IMAP Settings : localhost:143 (uw) B. Change Sendmail Config : /usr/sbin/sendmail R Return to Main Menu C Turn color off S Save data Q Quit Command >> 3 You now need to choose the method that you will use for sending messages in SquirrelMail. You can either connect to an SMTP server or use sendmail directly. 1. Sendmail 2. SMTP Your choice [1/2] [1]: 2
  • 5. Nguyễn Duy Đạt - SVTT Page 5 Tại menu chính, nhập “d” → Enter để chọn IMAP server Nhập “dovecot” → Enter để chọn dovecot làm IMAP server Nhập “s” → Enter để lưu cấu hình, sau đó nhập “q” → Enter để thoát menu cấu hình SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Main Menu -- 1. Organization Preferences 2. Server Settings 3. Folder Defaults 4. General Options 5. Themes 6. Address Books 7. Message of the Day (MOTD) 8. Plugins 9. Database 10. Languages D. Set pre-defined settings for specific IMAP servers C Turn color off S Save data Q Quit Command >> d Please select your IMAP server: bincimap = Binc IMAP server courier = Courier IMAP server cyrus = Cyrus IMAP server dovecot = Dovecot Secure IMAP server exchange = Microsoft Exchange IMAP server hmailserver = hMailServer macosx = Mac OS X Mailserver mercury32 = Mercury/32 uw = University of Washington's IMAP server gmail = IMAP access to Google mail (Gmail) accounts quit = Do not change anything Command >> dovecot
  • 6. Nguyễn Duy Đạt - SVTT Page 6 Mở file /etc/httpd/conf.d/squirrelmail.conf để sửa những cấu hình sau: Dòng 8: sửa Deny from all thành Allow from all Comment các dòing: 14, 15, 16, 17, 18 Để cho phép client đăng nhập bằng http, nhập câu lệnh sau: # setsebool -P httpd_can_network_connect=1 Khởi động lại các dịch vụ: # service httpd restart # service postfix restart # service dovecot restart 1 # 2 # SquirrelMail is a webmail package written in PHP. 3 # 4 5 Alias /webmail /usr/share/squirrelmail 6 7 <Directory "/usr/share/squirrelmail/plugins/squirrelspell/modules"> 8 Allow from all 9 </Directory> 10 11 # this section makes squirrelmail use https connections only, for this you 12 # need to have mod_ssl installed. If you want to use unsecure http 13 # connections, just remove this section: 14 #<Directory /usr/share/squirrelmail> 15 # RewriteEngine on 16 # RewriteCond %{HTTPS} !=on 17 # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 18 #</Directory> 19
  • 7. Nguyễn Duy Đạt - SVTT Page 7 3, Kiểm tra tại client: Để truy cập vào web mail, ta truy cập với địa chỉ: http://<ipaddress>/webmail hoặc http://<domain-name>/webmail Nhập username và password tại màn hình đăng nhập Tại giao diện account, nhấn Compose để tạo và gứi một email mới sang u2@athena.edu.vn
  • 8. Nguyễn Duy Đạt - SVTT Page 8 Đăng nhập u2 kiểm tra email vừa gửi từ u1: