Wednesday, August 1, 2018

ປ່ຽນ ServerName ໃນ Zimbra Server

Image does not exist: https://i.ytimg.com/vi/5KL1qtgVFO4/maxresdefault.jpg
ມີຂັ້ນຕອນການປ່ຽນດັ່ງນີ້:
1. ສ້າງ Certificate ໃຫ້ກັບໂດເມນໃໝ່

/opt/zimbra/bin/zmcertmgr createca -new
/opt/zimbra/bin/zmcertmgr createcrt -new -subjectAltNames <servername> -days 365
/opt/zimbra/bin/zmcertmgr deploycrt self
/opt/zimbra/bin/zmcertmgr deployca
/opt/zimbra/bin/zmcertmgr viewdeployedcrt
zmcontrol restart

2. ປ່ຽນ hostname ໃນເຊິເວີກ່ອນ

127.0.0.1       localhost.localdomain   localhost
192.168.211.20  NEWHOSTNAME.example.com        NEWHOSTNAME
192.168.211.20  OLDHOSTNAME.example.com        OLDHOSTNAME
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

3. ປ່ຽນ Hostname ທີ່ DNS
ແກ້ໄຂໄຟລ /etc/dnsmasq.conf

server=8.8.8.8
server=208.67.222.222
domain=example.com
mx-host=example.com,<servername>.example.com,5
listen-address=127.0.0.1

ຈາກນັ້ນ

service dnsmasq restart

4. ປ່ຽນ zimbra servername ດ້ວຍຄຳສັ່ງ zmsetservername

su - zimbra
/opt/zimbra/libexec/zmsetservername -n <servername>

5. Clean the zmloggerhostmap

zmloggerhostmap
 Zimbra Logger Service Hostname Map
---------------------    ---------------------
DNS Hostname             Zimbra Hostname
---------------------    ---------------------
zimbra-sn-u14-02.example.com    zimbra-sn-u14-02.example.com
zimbra-sn-u14-01.example.com    zimbra-sn-u14-01.example.com
zimbra-sn-u14-01    zimbra-sn-u14-02.example.com
zimbra-sn-u14-02    zimbra-sn-u14-02.example.com

Remove all the references to the old hostname:

zmloggerhostmap -d zimbra-sn-u14-01.example.com    zimbra-sn-u14-01.example.com
zmloggerhostmap -d zimbra-sn-u14-01    zimbra-sn-u14-02.example.com

6. ຫລັງຈາກນັ້ນ restart zimbra

zmcontrol restart

ທີ່ມາ: zimbra
[tag]Zimbra, mail, Mail Server[/tag]

Subscribe

  • RSS Atom

ອອນລາຍ: 1 | ມື້ນີ້: 13 | ວານນີ້: 25 | ທິດນີ້: 93 | ເດືອນນີ້: 872 | ປີນີ້: 11832 | ລວມ: 78935