際際滷

際際滷Share a Scribd company logo
Nguy畛n Duy 畉t - SVTT Page 1
TRI畛N KHAI MAIL SERVER TRN VPS LINUX
B動畛c 1: ng k箪 Domain:
Truy c畉p vo dot.tk 畛 ng k箪 domain mi畛n ph鱈:
Sau khi ch畛n xong domain ta click GO.Click vo s畛 d畛ng DNS, ch畛n tab D畛ch V畛 DNS
c畛a Dot.tk, nh畉p IP c畛a VPS vo 2 hng 畛a ch畛 IP
Nguy畛n Duy 畉t - SVTT Page 2
Sau 坦 ch畛n th畛i gian duy tr狸 domain
Nh畉p k箪 t畛 畛 x叩c nh畉n l ng動畛i s畛 d畛ng ch畛 kh担ng ph畉i robot, r畛i click : NG K
Nguy畛n Duy 畉t - SVTT Page 3
L畛a ch畛n ti kho畉ng qu畉n l箪 t棚n mi畛n
Click ng nh畉p vo MyDot 畛 t湛y ch畛nh c叩c th担ng s畛 cho domain
Sau khi ng nh畉p vo my.dot.tk. Ta click vo Go to domain ho畉c Domain panel 畛 vo
danh s叩ch c叩c domain 達 ng k箪.
Nguy畛n Duy 畉t - SVTT Page 4
L畛a ch畛n domain c畉n ng k箪 sau 坦 click Modify
Ta t畉o th棚m 2 record -> Save Changes
Ki畛m tra b畉ng nslookup:
Nguy畛n Duy 畉t - SVTT Page 5
Nguy畛n Duy 畉t - SVTT Page 6
B動畛c 2: S畛a c畉u h狸nh DNS
datn217.db
24.0.14.in-addr.arpa.db
Ci 畉t Postfix, Dovecot, Squirrelmail v c叩c g坦i ph畛 thu畛c:
# yum install postfix dovecot squirrelmail
Nguy畛n Duy 畉t - SVTT Page 7
B動畛c 3: S畛a c畉u h狸nh Postfix:
M畛 file /etc/postfic/main.cf, s畛a nh畛ng d嘆ng sau:
T畉t sendmail, chuy畛n MTA sang Postfix:
Kh畛i 畛ng l畉i Postfix:
## D嘆ng 70  Uncomment, 畉t hostname
myhostname = mail.datn217.tk
## D嘆ng 77  Uncomment, 畉t t棚n domain
mydomain = datn217.tk
## D嘆ng 93 - Uncomment
myorigin = $mydomain
## D嘆ng 110  S畛a localhost thnh all
inet_interfaces = all
## D嘆ng 155  th棚m $mydomain vo sau
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
## D嘆ng 255  Uncomment, th棚m 動畛ng m畉ng
mynetworks = 14.0.24.32/27, 127.0.0.0/8
## D嘆ng 410  Uncomment
home_mailbox = Maildir/
Nguy畛n Duy 畉t - SVTT Page 8
# service postfix restart
Nguy畛n Duy 畉t - SVTT Page 9
B動畛c 4: S畛a c畉u h狸nh dovecot
M畛 file /etc/dovecot.conf, s畛a nh畛ng d嘆ng sau:
Kh畛i 畛ng l畉i postfix, dovecot
# service postfix restart
# service dovecot restart
B動畛c 5: S畛a c畉u h狸nh Squirrelmail
M畛 file /etc/squirrelmail/config.php, s畛a nh畛ng d嘆ng sau:
M畛 file /etc/httpd/conf/httpd.conf, th棚m nh畛ng d嘆ng sau vo cu畛i:
<VirtualHost*:80>
ServerName mail.datn217.tk
DocumentRoot /usr/share/squirrelmail
</VirtualHost>
Kh畛i 畛ng l畉i httppd:
# service httpd restart
## D嘆ng 20  Uncomment
protocols = imap imaps pop3 pop3s
## D嘆ng 211  Uncomment, b畛 th棚m vo:
mail_location = maildir:~/Maildir
## D嘆ng 28  畉t domain
$domain = datn217.tk;
Nguy畛n Duy 畉t - SVTT Page 10
Ki畛m tra g畛i mail:
Truy c畉p vo mail.datn217.tk v nh畉p username/password:
T畛 user1, g畛i 1 email 畉n 畛a ch畛: user2@datn217.tk
Nguy畛n Duy 畉t - SVTT Page 11
Nguy畛n Duy 畉t - SVTT Page 12
ng nh畉p user2 v ki畛m tra mail:
 G畛i/nh畉n mail n畛i b畛 thnh c担ng
Nguy畛n Duy 畉t - SVTT Page 13
T畛 user2 g畛i 1 email 畉n gmail:
Ki畛m tra t畉i h畛p th動 c畛a gmail:
(V狸 t棚n mi畛n .tk l t棚n mi畛n free n棚n b畛 gmail nh畉n d畉ng l spam)
Nguy畛n Duy 畉t - SVTT Page 14
Nguy畛n Duy 畉t - SVTT Page 15
T畛 gmail g畛i 1 email 畉n user2:
Ki畛m tra t畉i h畛p th動 c畛a user2:
Nguy畛n Duy 畉t - SVTT Page 16
 G畛i/nh畉n mail 畉n gmail thnh c担ng
Nguy畛n Duy 畉t - SVTT Page 17
T畛 user1 g畛i 1 email 畉n yahoo:
Ki畛m tra t畉i yahoo mail:
Nguy畛n Duy 畉t - SVTT Page 18
T畛 yahoo g畛i 1 mail 畉n user1:
Ki畛m tra t畉i user1:
 G畛i/nh畉n mail 畉n yahoo mail thnh c担ng

More Related Content

Vps

  • 1. Nguy畛n Duy 畉t - SVTT Page 1 TRI畛N KHAI MAIL SERVER TRN VPS LINUX B動畛c 1: ng k箪 Domain: Truy c畉p vo dot.tk 畛 ng k箪 domain mi畛n ph鱈: Sau khi ch畛n xong domain ta click GO.Click vo s畛 d畛ng DNS, ch畛n tab D畛ch V畛 DNS c畛a Dot.tk, nh畉p IP c畛a VPS vo 2 hng 畛a ch畛 IP
  • 2. Nguy畛n Duy 畉t - SVTT Page 2 Sau 坦 ch畛n th畛i gian duy tr狸 domain Nh畉p k箪 t畛 畛 x叩c nh畉n l ng動畛i s畛 d畛ng ch畛 kh担ng ph畉i robot, r畛i click : NG K
  • 3. Nguy畛n Duy 畉t - SVTT Page 3 L畛a ch畛n ti kho畉ng qu畉n l箪 t棚n mi畛n Click ng nh畉p vo MyDot 畛 t湛y ch畛nh c叩c th担ng s畛 cho domain Sau khi ng nh畉p vo my.dot.tk. Ta click vo Go to domain ho畉c Domain panel 畛 vo danh s叩ch c叩c domain 達 ng k箪.
  • 4. Nguy畛n Duy 畉t - SVTT Page 4 L畛a ch畛n domain c畉n ng k箪 sau 坦 click Modify Ta t畉o th棚m 2 record -> Save Changes Ki畛m tra b畉ng nslookup:
  • 5. Nguy畛n Duy 畉t - SVTT Page 5
  • 6. Nguy畛n Duy 畉t - SVTT Page 6 B動畛c 2: S畛a c畉u h狸nh DNS datn217.db 24.0.14.in-addr.arpa.db Ci 畉t Postfix, Dovecot, Squirrelmail v c叩c g坦i ph畛 thu畛c: # yum install postfix dovecot squirrelmail
  • 7. Nguy畛n Duy 畉t - SVTT Page 7 B動畛c 3: S畛a c畉u h狸nh Postfix: M畛 file /etc/postfic/main.cf, s畛a nh畛ng d嘆ng sau: T畉t sendmail, chuy畛n MTA sang Postfix: Kh畛i 畛ng l畉i Postfix: ## D嘆ng 70 Uncomment, 畉t hostname myhostname = mail.datn217.tk ## D嘆ng 77 Uncomment, 畉t t棚n domain mydomain = datn217.tk ## D嘆ng 93 - Uncomment myorigin = $mydomain ## D嘆ng 110 S畛a localhost thnh all inet_interfaces = all ## D嘆ng 155 th棚m $mydomain vo sau mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain ## D嘆ng 255 Uncomment, th棚m 動畛ng m畉ng mynetworks = 14.0.24.32/27, 127.0.0.0/8 ## D嘆ng 410 Uncomment home_mailbox = Maildir/
  • 8. Nguy畛n Duy 畉t - SVTT Page 8 # service postfix restart
  • 9. Nguy畛n Duy 畉t - SVTT Page 9 B動畛c 4: S畛a c畉u h狸nh dovecot M畛 file /etc/dovecot.conf, s畛a nh畛ng d嘆ng sau: Kh畛i 畛ng l畉i postfix, dovecot # service postfix restart # service dovecot restart B動畛c 5: S畛a c畉u h狸nh Squirrelmail M畛 file /etc/squirrelmail/config.php, s畛a nh畛ng d嘆ng sau: M畛 file /etc/httpd/conf/httpd.conf, th棚m nh畛ng d嘆ng sau vo cu畛i: <VirtualHost*:80> ServerName mail.datn217.tk DocumentRoot /usr/share/squirrelmail </VirtualHost> Kh畛i 畛ng l畉i httppd: # service httpd restart ## D嘆ng 20 Uncomment protocols = imap imaps pop3 pop3s ## D嘆ng 211 Uncomment, b畛 th棚m vo: mail_location = maildir:~/Maildir ## D嘆ng 28 畉t domain $domain = datn217.tk;
  • 10. Nguy畛n Duy 畉t - SVTT Page 10 Ki畛m tra g畛i mail: Truy c畉p vo mail.datn217.tk v nh畉p username/password: T畛 user1, g畛i 1 email 畉n 畛a ch畛: user2@datn217.tk
  • 11. Nguy畛n Duy 畉t - SVTT Page 11
  • 12. Nguy畛n Duy 畉t - SVTT Page 12 ng nh畉p user2 v ki畛m tra mail: G畛i/nh畉n mail n畛i b畛 thnh c担ng
  • 13. Nguy畛n Duy 畉t - SVTT Page 13 T畛 user2 g畛i 1 email 畉n gmail: Ki畛m tra t畉i h畛p th動 c畛a gmail: (V狸 t棚n mi畛n .tk l t棚n mi畛n free n棚n b畛 gmail nh畉n d畉ng l spam)
  • 14. Nguy畛n Duy 畉t - SVTT Page 14
  • 15. Nguy畛n Duy 畉t - SVTT Page 15 T畛 gmail g畛i 1 email 畉n user2: Ki畛m tra t畉i h畛p th動 c畛a user2:
  • 16. Nguy畛n Duy 畉t - SVTT Page 16 G畛i/nh畉n mail 畉n gmail thnh c担ng
  • 17. Nguy畛n Duy 畉t - SVTT Page 17 T畛 user1 g畛i 1 email 畉n yahoo: Ki畛m tra t畉i yahoo mail:
  • 18. Nguy畛n Duy 畉t - SVTT Page 18 T畛 yahoo g畛i 1 mail 畉n user1: Ki畛m tra t畉i user1: G畛i/nh畉n mail 畉n yahoo mail thnh c担ng