Hướng dẫn cài đặt mail server trên centos

Zimbra Collaboration là giải pháp Email Server nguồn mở hàng đầu thế giới về tính năng, độ ổn định và bảo mật cao. Ngoài ra, Zimbra không chỉ là một ứng dụng về email server mà nó còn là một giải pháp hoàn chỉnh để triển khai môi trường chia sẻ phục vụ cho quản lý và công việc nội bộ của mỗi doanh nghiệp.

Các tính năng chính của Zimbra Mail Server:

  • Thư điện tử
  • Lịch
  • Sổ địa chỉ
  • Danh mục công việc (task cá nhân, nhóm)
  • Tài liệu lưu dưới dạng wiki
  • Cặp hồ sơ lưu file dùng chung hoặc riêng
  • Chat
  • Client desktop hoặc web
  • Hỗ trợ trên điện thoại
  • Nhiều Zimlet (tương tự như extension )

Zimbra ban đầu được phát triển bởi LiquidSys, công ty đổi tên thành Zimbra, Inc. vào ngày 26 tháng 7 năm 2005. Zimbra Collaboration Suite được phát hành lần đầu tiên vào năm 2005.

+ 17 tháng 9 năm 2007 công ty được Yahoo! mua lại.

+ 12 tháng 1 năm 2010 được bán cho VMware.

+ Tháng 7 năm 2013, VMware bán cho Telligent Systems, công ty đổi tên thành Zimbra, Inc. vào tháng 9 năm 2013.

+ 18 tháng 8 năm 2015, Synacor mua lại vào ngày 18 tháng 8 năm 2015 và hoạt động cho đến nay.

Với hơn 100 triệu người dùng cuối tại hơn 150 quốc gia, Zimbra Collaboration là giải pháp Email Server nguồn mở hàng đầu thế giới. Đây là giải pháp Email doanh nghiệp hoàn hảo với những tính năng tuyệt vời cho người dùng.

Hướng dẫn cách cài đặt Zimbra Mail Server

1. Chuẩn bị

– Phiên bản: zimbra 8.8 trên CentOS 7

– Cấu hình tối thiểu: RAM: 2GB, Disk: 30GB, CPU: 3 core

– Chuẩn bị tên miền: Một tên miền đã trỏ bản ghi mail (điều này là cần thiết vì trong quá trình cài đặt sẽ yêu cầu tên miền phân giải được bản ghi mail).

Tên miền: congtynhanhoa.space

Hướng dẫn cài đặt mail server trên centos

– Update OS

yum install epel-release -y yum update -y

– Cài đặt NTP đồng bộ thời gian

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

– Cài đặt cmdlog

curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

Exit phiên kết nối ssh ra và truy cập lại.

– Thiết lập Firewall, selinux và một số package cơ bản

sudo systemctl disable firewalld sudo systemctl stop firewalld sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config yum install -y git wget byobu service sendmail stop service iptables stop service ip6tables stop chkconfig sendmail off chkconfig iptables off chkconfig ip6tables off service httpd stop chkconfig httpd off init 6

2. Cài đặt email server zimbra

– Cài package cần thiết

yum install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 nano wget -y

– Đổi host name, add hostname

hostnamectl set-hostname mail.congtynhanhoa.space cat << EOF >> /etc/hosts 103.101.163.27 mail.congtynhanhoa.space mail EOF init 6

Hướng dẫn cài đặt mail server trên centos

Lưu ý: File

ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

5 phải khai báo

ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

6 để có thể connect tới server download bộ cài zimbra.

– Download bộ cài đặt zimbra 8.8

wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz

– Giải nén và cài đặt

tar -xvf zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz cd zcs-8.8.15_GA_3869.RHEL7_64.20190918004220 ./install.sh

Ở bước này lưu ý một số tùy chọn cài đặt như sau:

Do you agree with the terms of the software license agreement? [N] Y Use Zimbra's package repository [Y] Y Select the packages to install Install zimbra-ldap [Y] Y Install zimbra-logger [Y] Y Install zimbra-mta [Y] Y Install zimbra-dnscache [Y] N Install zimbra-snmp [Y] Y Install zimbra-store [Y] Y Install zimbra-apache [Y] Y Install zimbra-spell [Y] Y Install zimbra-memcached [Y] Y Install zimbra-proxy [Y] Y Install zimbra-drive [Y] Y Install zimbra-imapd (BETA - for evaluation only) [N] N The system will be modified. Continue? [N] Y

Hướng dẫn cài đặt mail server trên centos

Hướng dẫn cài đặt mail server trên centos

Xác nhận thay đổi tên domain và nhập domain

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

0

Hướng dẫn cài đặt mail server trên centos

– Hệ thống sẽ báo password account admin zimbra chưa được nhập, cần đặt lại password admin zimbra

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

1

Chọn

ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

7 để quay lại menu chính

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

2

Chọn

ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

8 để apply cấu hình

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

3

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

4

Hướng dẫn cài đặt mail server trên centos

Chờ quá trình lưu cấu hình hoàn tất.

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

5

yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

6

  • Blocking Memcached Exploit

    yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

    7

    yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

    8

    – Truy cập

    yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl restart chronyd chronyc sources -v

    9

    Hoặc

    ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

    0

    Hướng dẫn cài đặt mail server trên centos

    Hướng dẫn cài đặt mail server trên centos

    3. Kiểm tra gửi – nhận

    Đảm bảo các server zimbra chạy

    Hướng dẫn cài đặt mail server trên centos

    • Đảm bảo đầy đủ các bản ghi MX, PTR, SPF, DKIM, DMARC

    +Thêm bản ghi A: Tên

    ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

    9 loại bản

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    0 giá trị

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    1

    +Thêm bản ghi MX: Tên

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    2 loại bản ghi

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    3 giá trị

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    4

    +Thêm bản ghi _dmarc:

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    5 loại bản ghi

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    6 giá trị

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    7

    +Thêm bản ghi SPF:

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    2 loại bản ghi

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    6 giá trị

    sudo systemctl disable firewalld sudo systemctl stop firewalld sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config yum install -y git wget byobu service sendmail stop service iptables stop service ip6tables stop chkconfig sendmail off chkconfig iptables off chkconfig ip6tables off service httpd stop chkconfig httpd off init 6

    0

    + Thêm bản ghi PTR ở DNS server của hệ thống DNS Nhân Hòa.

    +Thêm bản ghi DKIM các thông số lấy từ email server

    Active dkim cho domain congtynhanhoa.space

    ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

    1

    Hướng dẫn cài đặt mail server trên centos

    Get dkim record

    ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

    2

    ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

    3

    Bản ghi DKIM: Tên

    sudo systemctl disable firewalld sudo systemctl stop firewalld sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config yum install -y git wget byobu service sendmail stop service iptables stop service ip6tables stop chkconfig sendmail off chkconfig iptables off chkconfig ip6tables off service httpd stop chkconfig httpd off init 6

    1 loại bản ghi

    curl -Lso- https://raw.githubusercontent.com/nhanhoadocs/ghichep-cmdlog/master/cmdlog.sh | bash

    6 giá trị

    ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

    4

    Khi get giá trị đoạn dkim chia thành các dấu

    sudo systemctl disable firewalld sudo systemctl stop firewalld sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config yum install -y git wget byobu service sendmail stop service iptables stop service ip6tables stop chkconfig sendmail off chkconfig iptables off chkconfig ip6tables off service httpd stop chkconfig httpd off init 6

    3 bỏ các dấu

    sudo systemctl disable firewalld sudo systemctl stop firewalld sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config yum install -y git wget byobu service sendmail stop service iptables stop service ip6tables stop chkconfig sendmail off chkconfig iptables off chkconfig ip6tables off service httpd stop chkconfig httpd off init 6

    3 ở giữa để ghép lại thành chuỗi.

    Hướng dẫn cài đặt mail server trên centos

    Đăng nhập client để Cài đặt email server zimbra

    Hướng dẫn cài đặt mail server trên centos

    Hướng dẫn cài đặt mail server trên centos

    Hướng dẫn cài đặt mail server trên centos

    Hướng dẫn cài đặt mail server trên centos

    Khi cần hỗ trợ xin liên hệ với chúng tôi: Công ty phần mềm Nhân Hòa Trụ sở Hà Nội: Tầng 4 – Toà nhà 97 – 99 Láng Hạ, Đống Đa, Hà Nội

    Chi nhánh HCM: 270 Cao Thắng (nối dài), Phường 12, Quận 10, TP HCM

    Chi nhánh Vinh – Nghệ An: Tầng 2 Tòa nhà Sài Gòn Sky, ngõ 26 Nguyễn Thái Học, phường Đội Cung, TP. Vinh, Nghệ An Hotline: 19006680