Latest Post

🚨 BẢO MẬT WEB THỜI ĐẠI AI: HACKER DÙNG AI, BẠN VẪN BẢO VỆ WEBSITE THEO CÁCH CŨ? 🚨 CẢNH BÁO BẢO MẬT: HACKER CÓ THỂ ĐANG NHẮM ĐẾN FILE config.php CHỨA MẬT KHẨU DATABASE! UEFI Package sử dụng thư viện xử lý hình ảnh có rất nhiều lỗ hỏng bảo mật. Wireless LAN Router của ELECOM có lỗ hỏng bảo mật OS Command injection Note: setting days for Crontab Launching AWS EC2 Instance using Python Tự động phát hành SSL Certificate hết hạn Let’s Encrypt Verify if crontab works Cách xem thời hạn của Let’s Encrypt SSL Certificate AWS EC2 Instance: jum update failure: repodata/repomd.xml from rpmforge: [Errno 256] No more mirrors to try. Nhập môn Python: Chương 2 Hello World thử viết chương trình python đơn giản. Python – Anaconda: Cài đặt Anaconda môi trường lập trình python Nhập môn Python: Chương 1 Python là gì? MySQL – GRANT: Tạo user, set lại password, xem và cấp quyền cho user. Python – Multithread – Queue – File: Xử lý đa luồng dùng chung dữ liệu trên cùng một file dùng hàng đợi(Queue) ⑤Ubuntu – Postfix – Dovecot : Mail server setting, một phát ăn ngay . ④Ubuntu – Postfix – Dovecot : SSL/TSL security mail server setting, một phát ăn ngay. ③Ubuntu – Postfix – Dovecot : Mail server setting, một phát ăn ngay. ②Ubuntu – Postfix – Dovecot : Mail server setting, một phát ăn ngay. ① Ubuntu – Postfix – Dovecot : Mail server setting, một phát ăn ngay. Python – Pandas: lấy data từ file csv. Newbie – Python – Selenium: Tự động login Facebook với trình duyệt Chrome Newbie – Python – Skype: Gửi Message tới Skype chat group hoặc user bằng ngôn ngữ Python. Newbie – Python – PostgreSQL: Kết nối với cơ sở dữ liêu PostgreSQL bằng ngôn ngữ Python. Newbie – Python – SQL Server: Kết nối với cơ sở dữ liệu SQL Server bằng ngôn ngữ Python. Newbie – Python – Mysql: Kết nối với cơ sở dữ liêu MySQL bằng ngôn ngữ Python. Basic Authentication Setting How to setup AWS VPN Client 【GCP】Compute Engine’s Disk Expansion Linux Commands WordPress 404 Page Error (Post)
0 0
Read Time:2 Minute, 17 Second

Mục lục

Ubuntu 22.04: Mail server.

Install và cấu hình cho Postfix.

Instal Postfix, cấu hình SMTP server sử dụng SMTP port 25/TCP.

root@mail:~# apt -y install postfix sasl2-bin

# Thường thì sẽ cấu hình mặc định. Nhưng ở bài viết này sẽ hướng dẫn config
# từng bước bằng tay. Nên ta chọn [No Configuration] 

+------+ Postfix Configuration +-------+
| General type of mail configuration:  |
|                                      |
|       No configuration               |
|       Internet Site                  |
|       Internet with smarthost        |
|       Satellite system               |
|       Local only                     |
|                                      |
|       <Ok>           <Cancel>        |
|                                      |
+--------------------------------------+ 

root@mail:~# cp /usr/share/postfix/main.cf.dist /etc/postfix/main.cf 
root@mail:~# vi /etc/postfix/main.cf

# Dòng 78: Xóa comment out
mail_owner = postfix 

# Dòng 94: Xóa comment out và chỉ định host name. 
myhostname = mail.vidu.com 

# Dòng 102: Xóa comment out và chỉ đinh domain name
mydomain = vidu.com 

# Dòng 123: Xóa comment out 
myorigin = $mydomain 

# Dòng 137: Xóa comment out
inet_interfaces = all 

# Dòng 185: Xóa comment out
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain 

# Dòng 228: Xóa comment out
local_recipient_maps = unix:passwd.byname $alias_maps 

# Dòng 270: Xóa comment out 
mynetworks_style = subnet 

# Dòng 287: Xóa comment out và add vào phía sau.
mynetworks = 127.0.0.0/8 , 10.0.0.0/24 

# Dòng 407: Xóa comment out 
alias_maps = hash:/etc/aliases 

# Dòng 418: Xóa comment out
alias_database = hash:/etc/aliases 

# Dòng 440: Xóa comment out 
home_mailbox = Maildir/ 

# Dòng 576: Comment out và add thêm dòng phía dưới 
#smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) 
smtpd_banner = $myhostname ESMTP 

# Dòng 650: Set giá trị cho biến.
sendmail_path = /usr/sbin/postfix 

# Dòng 655: Set giá trị cho biến.
newaliases_path = /usr/bin/newaliases 

# Dòng 660: Set giá trị cho biến. 
mailq_path = /usr/bin/mailq 

# Dòng 666: Set giá trị cho biến.
setgid_group = postdrop 

# Dòng 670: Comment out 
#html_directory = 

# Dòng 674: Comment out  
#manpage_directory = 

# Dòng 679: Comment out 
#sample_directory = 

# Dòng 683: Comment out 
#readme_directory = 

# Dòng 684: Nếu sử dụng IPv6 nữa thì set là [all]. Không thì cứ set ipv4 
inet_protocols = ipv4 

# Add vào cuối file. 
# Giới hạn dung lương gửi nhận mail là 10M 
message_size_limit = 10485760 

# Setting SMTP-Auth
smtpd_sasl_type = dovecot 
smtpd_sasl_path = private/auth 
smtpd_sasl_auth_enable = yes 
smtpd_sasl_security_options = noanonymous 
smtpd_sasl_local_domain = $myhostname 
smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject 

root@mail:~# newaliases 
# Khởi động lại Postfix
root@mail:~# systemctl restart postfix

Video hướng dẫn từng bước cụ thể.

Đang chuẩn bị

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
100 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *