SlideShare a Scribd company logo
1 of 7
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 – Uncomment, đặt hostname
myhostname = mail.athena.edu.vn
## Dòng 83 – Uncomment, đặt tên domain
mydomain = athena.edu.vn
## Dòng 99 - Uncomment
myorigin = $mydomain
## Dòng 116 – Sửa localhost thành all
inet_interfaces = all
## Dòng 164 –thêm $mycomain vào sau
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
## Dòng 250 - Uncomment
mynetworks_style = subnet
## Dòng 264 – Uncomment, thêm đường mạng
mynetworks = 192.168.1.0/24, 127.0.0.0/8
## Dòng 419 – 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 – Uncomment
protocols = imap pop3 lmtp
## Dòng 26 – Uncomment, bỏ “,::”
listen = *
## Dòng 9 – Uncomment, sửa “yes” thành “no”
disable_plaintext_auth = no
## Dòng 97 – Sửa “plain” thành “plain login”
auth_mechanisms = plain login
## Dòng 24 – 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 – Uncomment
port = 143
## Dòng 22 – Uncomment
port = 993
## Dòng 40 – Uncomment
port = 110
## Dòng 43 – Uncomment
port = 995
## Dòng 82 – Uncomment
mode = 0600
## Dòng 83 – Uncomment, sửa lại thành:
user = postfix
## Dòng 84 – 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

Viewers also liked

Dovecot
DovecotDovecot
DovecotTiago
 
Nginx - The webserver you might actually like
Nginx - The webserver you might actually likeNginx - The webserver you might actually like
Nginx - The webserver you might actually likeEdorian
 
Dovecot Director 概要
Dovecot Director 概要Dovecot Director 概要
Dovecot Director 概要SATOH Fumiyasu
 
NginX - good practices, tips and advanced techniques
NginX - good practices, tips and advanced techniquesNginX - good practices, tips and advanced techniques
NginX - good practices, tips and advanced techniquesClaudio Borges
 
Nginx conference 2015
Nginx conference 2015Nginx conference 2015
Nginx conference 2015ING-IT
 
Load Balancing and Scaling with NGINX
Load Balancing and Scaling with NGINXLoad Balancing and Scaling with NGINX
Load Balancing and Scaling with NGINXNGINX, Inc.
 
What's New in NGINX Plus R10?
What's New in NGINX Plus R10?What's New in NGINX Plus R10?
What's New in NGINX Plus R10?NGINX, Inc.
 
Mail server on linux
Mail server on linux Mail server on linux
Mail server on linux Roshni17
 
Mail Server Project Report
Mail Server Project ReportMail Server Project Report
Mail Server Project ReportKavita Sharma
 
The 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference ArchitectureThe 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference ArchitectureNGINX, Inc.
 

Viewers also liked (12)

Dovecot
DovecotDovecot
Dovecot
 
Nginx - The webserver you might actually like
Nginx - The webserver you might actually likeNginx - The webserver you might actually like
Nginx - The webserver you might actually like
 
Dovecot
DovecotDovecot
Dovecot
 
Dovecot Director 概要
Dovecot Director 概要Dovecot Director 概要
Dovecot Director 概要
 
NginX - good practices, tips and advanced techniques
NginX - good practices, tips and advanced techniquesNginX - good practices, tips and advanced techniques
NginX - good practices, tips and advanced techniques
 
Nginx conference 2015
Nginx conference 2015Nginx conference 2015
Nginx conference 2015
 
Load Balancing and Scaling with NGINX
Load Balancing and Scaling with NGINXLoad Balancing and Scaling with NGINX
Load Balancing and Scaling with NGINX
 
What's New in NGINX Plus R10?
What's New in NGINX Plus R10?What's New in NGINX Plus R10?
What's New in NGINX Plus R10?
 
Postfix
PostfixPostfix
Postfix
 
Mail server on linux
Mail server on linux Mail server on linux
Mail server on linux
 
Mail Server Project Report
Mail Server Project ReportMail Server Project Report
Mail Server Project Report
 
The 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference ArchitectureThe 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference Architecture
 

Similar to Postfix dovecot

Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5thienma217
 
(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02lehuyvinh
 
Báo Cáo Hàng Tuần
Báo Cáo Hàng TuầnBáo Cáo Hàng Tuần
Báo Cáo Hàng TuầnBin Hoo
 
Squirrelmail centos 6.5
Squirrelmail centos 6.5Squirrelmail centos 6.5
Squirrelmail centos 6.5thienma217
 
bao cao tuan 34
bao cao tuan 34bao cao tuan 34
bao cao tuan 34chanhduy
 

Similar to Postfix dovecot (8)

Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5Postfix Dovecot CentOS 6.5
Postfix Dovecot CentOS 6.5
 
(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02(274364013) baibaocaogiuaky 140505213913-phpapp02
(274364013) baibaocaogiuaky 140505213913-phpapp02
 
Báo cáo thực tập giữa kỳ
Báo cáo thực tập giữa kỳBáo cáo thực tập giữa kỳ
Báo cáo thực tập giữa kỳ
 
Báo cáo thực tập giữa kỳ
Báo cáo thực tập giữa kỳBáo cáo thực tập giữa kỳ
Báo cáo thực tập giữa kỳ
 
Báo cáo thực tập giữa kỳ
Báo cáo thực tập giữa kỳBáo cáo thực tập giữa kỳ
Báo cáo thực tập giữa kỳ
 
Báo Cáo Hàng Tuần
Báo Cáo Hàng TuầnBáo Cáo Hàng Tuần
Báo Cáo Hàng Tuần
 
Squirrelmail centos 6.5
Squirrelmail centos 6.5Squirrelmail centos 6.5
Squirrelmail centos 6.5
 
bao cao tuan 34
bao cao tuan 34bao cao tuan 34
bao cao tuan 34
 

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 – Uncomment, đặt hostname myhostname = mail.athena.edu.vn ## Dòng 83 – Uncomment, đặt tên domain mydomain = athena.edu.vn ## Dòng 99 - Uncomment myorigin = $mydomain ## Dòng 116 – Sửa localhost thành all inet_interfaces = all ## Dòng 164 –thêm $mycomain vào sau mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain ## Dòng 250 - Uncomment mynetworks_style = subnet ## Dòng 264 – Uncomment, thêm đường mạng mynetworks = 192.168.1.0/24, 127.0.0.0/8 ## Dòng 419 – 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 – Uncomment protocols = imap pop3 lmtp ## Dòng 26 – Uncomment, bỏ “,::” listen = * ## Dòng 9 – Uncomment, sửa “yes” thành “no” disable_plaintext_auth = no ## Dòng 97 – Sửa “plain” thành “plain login” auth_mechanisms = plain login ## Dòng 24 – 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 – Uncomment port = 143 ## Dòng 22 – Uncomment port = 993 ## Dòng 40 – Uncomment port = 110 ## Dòng 43 – Uncomment port = 995 ## Dòng 82 – Uncomment mode = 0600 ## Dòng 83 – Uncomment, sửa lại thành: user = postfix ## Dòng 84 – 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