Read Time:1 Minute, 22 Second
Mục lục
- Install và cấu hình cho Postfix.
- Install và cấu hình cho Dovecot.
- Tạo mail account.
- Setting SSL/TLS cho mail server.
- Install chương trình diệt virus Clamav và Amavisd.
- Video hướng dẫn từng bước cụ thể.
Ubuntu 22.04: Mail server.
Install chương trình duyệt virus Clamav và Amavisd.
①Dùng Let’s Encrypt để lấy file chứng thực (certification file).
# Install Clamav and Amavisd root@mail:~# apt -y install clamav-daemon amavisd-new root@mail:~# vi /etc/amavis/conf.d/15-content_filter_mode # Xóa comment out và available virus scan @bypass_virus_checks_maps = ( \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re); # Đăng ký domain root@mail:~# echo'vidu.com' > /etc/mailname root@mail:~# vi/etc/postfix/main.cf # Add vào cuối file content_filter=smtp-amavis:[127.0.0.1]:10024 root@mail:~# vi /etc/postfix/master.cf # Add vào cuối file. smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 root@mail:~# vi /etc/postfix/master.cf # Khởi động lại Postfix, clamav Amavis root@mail:~# systemctl restart clamav-daemon amavis postfix
Video hướng dẫn từng bước cụ thể.
Đang chuẩn bị