際際滷

際際滷Share a Scribd company logo
Nguy畛n Duy 畉t - SVTT Page 1
CI 畉T V C畉U HNH SQUIRRELMAIL
Y棚u c畉u: M叩y 達 ci 畉t DNS, postfix, dovecot
1, Ci 畉t:
Ci 畉t online
# yum install epel squirrelmail -y
Ci 畉t b畉ng g坦i: Download v ci 畉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 畛 ci 畉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 lm 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 thnh 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 vo 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 mn 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:

More Related Content

Squirrelmail centos 6.5

  • 1. Nguy畛n Duy 畉t - SVTT Page 1 CI 畉T V C畉U HNH SQUIRRELMAIL Y棚u c畉u: M叩y 達 ci 畉t DNS, postfix, dovecot 1, Ci 畉t: Ci 畉t online # yum install epel squirrelmail -y Ci 畉t b畉ng g坦i: Download v ci 畉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 畛 ci 畉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 lm 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 thnh 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 vo 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 mn 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: