ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Nguy?n Duy ??t - SVTT Page 1
C?I ??T V? C?U H?NH POSTFIX/DOVECOT
1,C?u h¨¬nh Postfix
M? file /etc/postfix/main.cs, s?a nh?ng d¨°ng sau:
Kh?i ??ng l?i postfix, ki?m tra port:
## D¨°ng 75 ¨C Uncomment, ??t hostname
myhostname = mail.athena.edu.vn
## D¨°ng 83 ¨C Uncomment, ??t t¨ºn domain
mydomain = athena.edu.vn
## D¨°ng 99 - Uncomment
myorigin = $mydomain
## D¨°ng 116 ¨C S?a localhost th¨¤nh all
inet_interfaces = all
## D¨°ng 164 ¨Cth¨ºm $mycomain v¨¤o sau
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
## D¨°ng 250 - Uncomment
mynetworks_style = subnet
## D¨°ng 264 ¨C Uncomment, th¨ºm ???ng m?ng
mynetworks = 192.168.1.0/24, 127.0.0.0/8
## D¨°ng 419 ¨C Uncomment
home_mailbox = Maildir/
Nguy?n Duy ??t - SVTT Page 2
C¨¤i telnet:
T?o user:
Telnet ??n server
G?i E-mail t? u1 qua u2:
Nguy?n Duy ??t - SVTT Page 3
Ki?m tra maillog, ta th?y qu¨¢ tr¨¬nh g?i/nh?n mail c?a 2 user
2,C?u h¨¬nh Dovecot
M? file /etc/dovecot/dovecot.conf, s?a nh?ng d¨°ng sau:
M? file /etc/dovecot/conf.d/10-auth.conf, s?a nh?ng d¨°ng sau:
M? file /etc/dovecot/conf.d/10-mail.conf, s?a nh?ng d¨°ng sau:
## D¨°ng 20 ¨C Uncomment
protocols = imap pop3 lmtp
## D¨°ng 26 ¨C Uncomment, b? ¡°,::¡±
listen = *
## D¨°ng 9 ¨C Uncomment, s?a ¡°yes¡± th¨¤nh ¡°no¡±
disable_plaintext_auth = no
## D¨°ng 97 ¨C S?a ¡°plain¡± th¨¤nh ¡°plain login¡±
auth_mechanisms = plain login
## D¨°ng 24 ¨C Uncomment
mail_location = maildir:~/Maildir
Nguy?n Duy ??t - SVTT Page 4
M? file /etc/dovecot/conf.d/10-master.conf, s?a nh?ng d¨°ng sau:
Kh?i ??ng l?i Dovecot:
# service dovecot restart
## D¨°ng 19 ¨C Uncomment
port = 143
## D¨°ng 22 ¨C Uncomment
port = 993
## D¨°ng 40 ¨C Uncomment
port = 110
## D¨°ng 43 ¨C Uncomment
port = 995
## D¨°ng 82 ¨C Uncomment
mode = 0600
## D¨°ng 83 ¨C Uncomment, s?a l?i th¨¤nh:
user = postfix
## D¨°ng 84 ¨C Uncomment, s?a l?i th¨¤nh:
group = postfix
Nguy?n Duy ??t - SVTT Page 5
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
Nguy?n Duy ??t - SVTT Page 6
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
Nguy?n Duy ??t - SVTT Page 7
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
th¨¤nh c?ng

More Related Content

Postfix dovecot

  • 1. Nguy?n Duy ??t - SVTT Page 1 C?I ??T V? C?U H?NH POSTFIX/DOVECOT 1,C?u h¨¬nh Postfix M? file /etc/postfix/main.cs, s?a nh?ng d¨°ng sau: Kh?i ??ng l?i postfix, ki?m tra port: ## D¨°ng 75 ¨C Uncomment, ??t hostname myhostname = mail.athena.edu.vn ## D¨°ng 83 ¨C Uncomment, ??t t¨ºn domain mydomain = athena.edu.vn ## D¨°ng 99 - Uncomment myorigin = $mydomain ## D¨°ng 116 ¨C S?a localhost th¨¤nh all inet_interfaces = all ## D¨°ng 164 ¨Cth¨ºm $mycomain v¨¤o sau mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain ## D¨°ng 250 - Uncomment mynetworks_style = subnet ## D¨°ng 264 ¨C Uncomment, th¨ºm ???ng m?ng mynetworks = 192.168.1.0/24, 127.0.0.0/8 ## D¨°ng 419 ¨C Uncomment home_mailbox = Maildir/
  • 2. Nguy?n Duy ??t - SVTT Page 2 C¨¤i telnet: T?o user: Telnet ??n server G?i E-mail t? u1 qua u2:
  • 3. Nguy?n Duy ??t - SVTT Page 3 Ki?m tra maillog, ta th?y qu¨¢ tr¨¬nh g?i/nh?n mail c?a 2 user 2,C?u h¨¬nh Dovecot M? file /etc/dovecot/dovecot.conf, s?a nh?ng d¨°ng sau: M? file /etc/dovecot/conf.d/10-auth.conf, s?a nh?ng d¨°ng sau: M? file /etc/dovecot/conf.d/10-mail.conf, s?a nh?ng d¨°ng sau: ## D¨°ng 20 ¨C Uncomment protocols = imap pop3 lmtp ## D¨°ng 26 ¨C Uncomment, b? ¡°,::¡± listen = * ## D¨°ng 9 ¨C Uncomment, s?a ¡°yes¡± th¨¤nh ¡°no¡± disable_plaintext_auth = no ## D¨°ng 97 ¨C S?a ¡°plain¡± th¨¤nh ¡°plain login¡± auth_mechanisms = plain login ## D¨°ng 24 ¨C Uncomment mail_location = maildir:~/Maildir
  • 4. Nguy?n Duy ??t - SVTT Page 4 M? file /etc/dovecot/conf.d/10-master.conf, s?a nh?ng d¨°ng sau: Kh?i ??ng l?i Dovecot: # service dovecot restart ## D¨°ng 19 ¨C Uncomment port = 143 ## D¨°ng 22 ¨C Uncomment port = 993 ## D¨°ng 40 ¨C Uncomment port = 110 ## D¨°ng 43 ¨C Uncomment port = 995 ## D¨°ng 82 ¨C Uncomment mode = 0600 ## D¨°ng 83 ¨C Uncomment, s?a l?i th¨¤nh: user = postfix ## D¨°ng 84 ¨C Uncomment, s?a l?i th¨¤nh: group = postfix
  • 5. Nguy?n Duy ??t - SVTT Page 5 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
  • 6. Nguy?n Duy ??t - SVTT Page 6 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
  • 7. Nguy?n Duy ??t - SVTT Page 7 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 th¨¤nh c?ng