Centos 7 Builds Zimbra Mail Server and foxmail Configuration

Keywords: DNS network SELinux yum

Reference resources: https://blog.csdn.net/linuxnews/article/details/51106905

Environment Configuration:

Local ip:
Set Host Name

hostnamectl set-hostname mail.jlkj.com

Add hosts

echo "  mail.jlkj.com" >> /etc/hosts

Turn off the firewall:

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
setenforce 0
systemctl stop iptables
systemctl disable iptables
systemctl stop firewalld
systemctl disable firewalld

Turn off other mail services

systemctl stop postfix.service
systemctl disable postfix.service

Installation Dependency:

yum update -y
yum -y install perl perl-core nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc

Set up local dns:

Configure dns server
1. Install bind

yum -y install bind bind-utils

2. Modify the main profile
vim /etc/named.conf
Add the following configuration:

zone "jlkj.com" IN {
        type master;
        file "jlkj.com";
        allow-update { none; };
zone "1.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.1.arpa";
        allow-update { none; };

2. Configuration Zone Profile
vim /var/named/jlkj.com

@   IN SOA  @ rname.invalid. (
                    0   ; serial
                    1D  ; refresh
                    1H  ; retry
                    1W  ; expire
                    3H )    ; minimum
    NS  ns.jlkj.com.
    MX 10   mail.jlkj.com.
ns  A
mail    A

vim /var/named/192.168.1.arpa

@       IN SOA  @ rname.invalid. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
        NS      ns.jlkj.com.
109     PTR     ns.jlkj.com.
109     PTR     mail.jlkj.com.

3. Restart bind

systemctl restart named.service

4. Use a local dns server

# [root@mail named]# cat /etc/resolv.conf
# Generated by NetworkManager
search jlkj.com

Test MX parsing:

[root@mail ~]# nslookup -qt=mx mail.zimbra.com
*** Invalid option: qt=mx

Name:   mail.zimbra.com

Now it's normal

Install zimbrta

 wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
tar -zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
 mv zcs-8.6.0_GA_1153.RHEL7_64.20141215151110 zimbra
cd zimbrta
#Turn on one-click foolish installation
./install.sh --platform-override

The steps for determining and choosing these are as follows: https://blog.csdn.net/linuxnews/article/details/51106905 Install zimbra

After installation:

Management server:
At this time, internal network experts can send and external network can send and receive, which requires a public network for external network to send and receive.And configure MX records at the dns manufacturer

foxmail configuration:

Posted by dv6cougar on Mon, 10 Feb 2020 08:21:33 -0800