Transform any presentation into a summarized study guide, highlighting the most important points and key insights.
1 of 21
Downloaded 164 times
More Related Content
Postfix Dovecot CentOS 6.5
1. Nguy畛n Duy 畉t - SVTT Page 1
CI 畉T POSTFIX/DOVECOT TRN CENTOS 6.5
M担 h狸nh bi lab:
Y棚u c畉u:
Ci 畉t DNS cho server 畛 ph但n gi畉i 畛a ch畛 IP cho client
Ci 畉t Postfix/Dovecot tr棚n server v c畉u h狸nh user tr棚n client 畛 client c坦 th畛 g畛i/nh畉n Email
Ci 畉t Squirrelmail tr棚n server 畛 client c坦 th畛 g畛i/nh畉n Email qua tr狸nh duy畛t web
2. Nguy畛n Duy 畉t - SVTT Page 2
I/ C畉u h狸nh Hostname:
S畛a file /etc/hosts:
# vi /etc/hosts
S畛a file /etc/sysconfig/network
# vi /etc/sysconfig/network
Restart h畛 th畛ng: init 6
Ki畛m tra Hostname:
II/ C畉u h狸nh DNS:
1/ Ci 畉t DNS:
D湛ng c但u l畛nh: rpm ivh <t棚n g坦i> 畛 ci 畉t c叩c g坦i sau:
bind-9.8.2-0.17.rc1.el6_4.6.i686.rpm
bind-libs-9.8.2-0.17.rc1.el6_4.6.i686.rpm
bind-utils-9.8.2-0.17.rc1.el6_4.6.i686.rpm
Ta c坦 th畛 t狸m c叩c g畛i tr棚n trong DVD ci 畉t CentOS
11. Nguy畛n Duy 畉t - SVTT Page 11
3/ Ki畛m tra t畉i Client:
T畉i Client, t畉o 2 user u1v u2,
Log on U1 ,kh畛i 畛ng Outlook
Expres c畉u h狸nh Mail client
B1. Nh畉p t棚n ng動畛i d湛ng
B2. Nh畉p account mail
12. Nguy畛n Duy 畉t - SVTT Page 12
B3. Nh畉p 畛a ch畛 c畛a Incoming mail
server v Outgoing mail server
B4. Nh畉p user account v password
達 t畉o t畉i server
B5.Nh畉n Finish
13. Nguy畛n Duy 畉t - SVTT Page 13
B6. T畉o 1 email g畛i qua cho u2
B7. ng nh畉p u2, c畉u h狸nh t動董ng
t畛 nh動 u1, ki畛m tra mail 達 nh畉n
thnh c担ng
14. Nguy畛n Duy 畉t - SVTT Page 14
V/ C畉u h狸nh Squirrelmail:
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
15. Nguy畛n Duy 畉t - SVTT Page 15
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
16. Nguy畛n Duy 畉t - SVTT Page 16
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
17. Nguy畛n Duy 畉t - SVTT Page 17
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
18. Nguy畛n Duy 畉t - SVTT Page 18
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
19. Nguy畛n Duy 畉t - SVTT Page 19
M畛 file /etc/httpd/conf.d/squirrelmail.conf v s畛a l畉i 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
20. Nguy畛n Duy 畉t - SVTT Page 20
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
21. Nguy畛n Duy 畉t - SVTT Page 21
ng nh畉p u2 ki畛m tra email v畛a g畛i t畛 u1: